Using GLView in xml file

Started by JKumar, October 12, 2010, 10:19:32 AM

Previous topic - Next topic

JKumar

Hi,

            I am using GLView in xml with some image buttons on it. I am finding problem in recreating it on onResume as not being a part of jPCT.

Can any one guide me as how to utilize jPCT for recreating the GLContext where GLView being in the xml file.

EgonOlsen

In Alien Runner, i'm using a GlSurfaceView in my mail.xml, too. In onCreate(..), i'm doing the complete setup-work (like shown in my example sources) each time that method is being called with the difference that i'm getting the surface view from the layout instead of creating my own. Like so:


mGLView = (GLSurfaceView) this.findViewById(R.id.surface_view);


Works fine for me so far...