public static interface OpenGLCanvas.RenderCallback
Modifier and Type | Method and Description |
---|---|
void |
onDrawFrame(GL gl)
Invoked in the OpenGL thread to re-draw (render) the OpenGL surface.
|
void |
onSurfaceChanged(GL gl,
int width,
int height)
Invoked when the OpenGL surface has changed.
|
void |
onSurfaceCreate(GL gl)
Invoked when the OpenGL surface is created.
|
void onDrawFrame(GL gl)
gl
- the OpenGL contextvoid onSurfaceChanged(GL gl, int width, int height)
gl
- the OpenGL contextwidth
- width of the surfaceheight
- height of the surfacevoid onSurfaceCreate(GL gl)
gl
- the OpenGL context