Reputation: 197
Can I reset the GLSurfaceView.Renderer object for GLSurfaceView ?
Upvotes: 0
Views: 822
Reputation: 52353
You can't. The API doesn't work that way.
Instead, use a single method with an if/then or switch statement that causes it to change behavior.
If you don't like that approach, use a plain SurfaceView and provide your own EGL setup and threading classes. Then you can render however you like, and can even take advantage of things like Choreographer to reduce latency. See Grafika for examples.
Upvotes: 1