GL2JNIViewpublic class GL2JNIView extends android.opengl.GLSurfaceView An implementation of SurfaceView that uses the dedicated surface for
displaying an OpenGL animation. This allows the animation to run in a
separate thread, without requiring that it be driven by the update mechanism
of the view hierarchy.
The application-specific rendering code is delegated to a GLView.Renderer
instance. |
Fields Summary |
---|
private static String | TAG |
Methods Summary |
---|
private static void | checkEglError(java.lang.String prompt, javax.microedition.khronos.egl.EGL10 egl)
int error;
while ((error = egl.eglGetError()) != EGL10.EGL_SUCCESS) {
Log.e(TAG, String.format("%s: EGL error: 0x%x", prompt, error));
}
| private void | init(boolean translucent, int depth, int stencil)
setEGLContextFactory(new ContextFactory());
setEGLConfigChooser( translucent ?
new ConfigChooser(8,8,8,8, depth, stencil) :
new ConfigChooser(5,6,5,0, depth, stencil));
setRenderer(new Renderer());
|
|