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
-~----------~----~----~----~------~----~------~--~---

Reply via email to