FileDocCategorySizeDatePackage
GLJNIView.javaAPI DocAndroid 5.1 API2841Thu Mar 12 22:22:48 GMT 2015com.android.gljni

GLJNIView

public class GLJNIView 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
Constructors Summary
GLJNIView(android.content.Context context)

        super(context);
        init();
    
public GLJNIView(android.content.Context context, android.util.AttributeSet attrs)

        super(context, attrs);
        init();
    
Methods Summary
private voidinit()

        setRenderer(new Renderer());
    
public booleanonKeyDown(int keyCode, android.view.KeyEvent event)

        GLJNILib.changeBackground();
        return true;