Yeah, it would be nice to tell people how you did it.
On May 3, 12:30 am, "Carl H." <[email protected]> wrote:
> Hello Julius,
>
> did you manage to make it work? The following post doubts the
> possibility of enabling 2
> SurfaceViews:http://groups.google.com/group/android-developers/browse_thread/threa...
>
> Could you post your code by any chance.
>
> Cheers,
> Carl
>
> On Apr 27, 3:41 am, Julius Spencer <[email protected]> wrote:
>
> > Hi,
>
> > Apologies - no sooner than I send it and I get it going. :)
>
> > Julius.
>
> > On 27/04/2009, at 1:32 PM, Julius Spencer wrote:
>
> > > Hi,
>
> > > I am trying to add an OpenGL View on top of a camera preview View but
> > > I'm getting unexpected results (I can't see the OpenGL object).
>
> > > I'm probably missing (not understanding) something obvious. :)
>
> > > Either View works on its own and I can add a simple Canvas to the
> > > preview just not the OpenGL View.
>
> > > super.onCreate(savedInstanceState);
>
> > > // Hide the window title.
> > > requestWindowFeature(Window.FEATURE_NO_TITLE);
>
> > > // Create our Preview view and set it as the content of our activity.
> > > mPreview = new Preview(this);
> > > mGLView = new GLSurfaceView(this);
> > > mGLView.setRenderer(new CubeRenderer(true));
>
> > > setContentView(mPreview);
>
> > > addContentView(mGLView, new LayoutParams(LayoutParams.WRAP_CONTENT,
> > > LayoutParams.WRAP_CONTENT));
>
> > > Thanks for any help / education.
>
> > > Cheers,
> > > Julius.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---