run GLSurfaceView twice

Tutorials concerning the OpenGL® ES cross-platform API for full-function 2D and 3D graphics on the Google-Android platform.

run GLSurfaceView twice

Postby humankim1 » Fri Jan 08, 2010 4:51 am

I want to run GLSurfaceView again while it's running like followings.

GLSurfaceView glView;
setRenderer(new GLSurfaceView.Renderer());

and then, I tried to stop Renderer and created "glView" and run "setRenderer" again.

so I called "glView.onPause()" to stop GLThread.
And I made glView (new GLSurfaceView) and run setRenderer() again.

But, second rendering thread didn't work properly.

Anyway I don't want to use glView.onResume() because I wanted to create glView-object again.

How can I kill glView or Renderer() perfectly?
(If my activity did not finish, is there no way to kill it?)


Thank you.
humankim1
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jan 08, 2010 3:55 am

Top

Return to Android 2D/3D Graphics - OpenGL Tutorials

Who is online

Users browsing this forum: No registered users and 2 guests