|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neovisionaries.android.opengl.GLESRenderer
public abstract class GLESRenderer
Renderer for OpenGL ES.
Instances of this class should be set to GLESSurfaceView
so that their callback methods such as onKeyDown()
can be
called.
Constructor Summary | |
---|---|
GLESRenderer()
|
Method Summary | |
---|---|
Context |
getContext()
Get the context of the GLESSurfaceView to which this
renderer is set to. |
void |
onDrawFrame(GL10 gl10)
This method calls onDrawFrame(GLES) . |
abstract void |
onDrawFrame(GLES gles)
|
boolean |
onKeyDown(GLESSurfaceView view,
int keyCode,
KeyEvent event)
Callback method for KeyDown event. |
boolean |
onKeyLongPress(GLESSurfaceView view,
int keyCode,
KeyEvent event)
Callback method for KeyLongPress event. |
boolean |
onKeyUp(GLESSurfaceView view,
int keyCode,
KeyEvent event)
Callback method for KeyUp event. |
void |
onSurfaceChanged(GL10 gl10,
int width,
int height)
This method calls onSurfaceChanged(GLES, int, int) . |
abstract void |
onSurfaceChanged(GLES gles,
int width,
int height)
|
void |
onSurfaceCreated(GL10 gl10,
EGLConfig config)
This method calls onSurfaceCreated(GLES, EGLConfig) . |
abstract void |
onSurfaceCreated(GLES gles,
EGLConfig config)
|
boolean |
onTouchEvent(GLESSurfaceView view,
MotionEvent event)
Callback method for Touch event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GLESRenderer()
Method Detail |
---|
public final void onDrawFrame(GL10 gl10)
onDrawFrame(GLES)
.
onDrawFrame
in interface GLSurfaceView.Renderer
public final void onSurfaceChanged(GL10 gl10, int width, int height)
onSurfaceChanged(GLES, int, int)
.
onSurfaceChanged
in interface GLSurfaceView.Renderer
public final void onSurfaceCreated(GL10 gl10, EGLConfig config)
onSurfaceCreated(GLES, EGLConfig)
.
onSurfaceCreated
in interface GLSurfaceView.Renderer
public abstract void onDrawFrame(GLES gles) throws GLESException
GLESException
public abstract void onSurfaceChanged(GLES gles, int width, int height) throws GLESException
GLESException
public abstract void onSurfaceCreated(GLES gles, EGLConfig config) throws GLESException
GLESException
public Context getContext()
GLESSurfaceView
to which this
renderer is set to.
GLESSurfaceView
to which
this renderer is set to.public boolean onKeyDown(GLESSurfaceView view, int keyCode, KeyEvent event)
This method is called when the GLESSurfaceView
instance
which this renderer is set to receives a KeyDown event.
view
- The GLESSurfaceView instance which this renderer is set to.keyCode
- event
-
GLESSurfaceView.onKeyDown(int, KeyEvent)
public boolean onKeyLongPress(GLESSurfaceView view, int keyCode, KeyEvent event)
This method is called when the GLESSurfaceView
instance
which this renderer is set to receives a KeyLongPress event.
view
- The GLESSurfaceView instance which this renderer is set to.keyCode
- event
-
GLESSurfaceView.onKeyLongPress(int, KeyEvent)
public boolean onKeyUp(GLESSurfaceView view, int keyCode, KeyEvent event)
This method is called when the GLESSurfaceView
instance
which this renderer is set to receives a KeyUp event.
view
- The GLESSurfaceView instance which this renderer is set to.keyCode
- event
-
GLESSurfaceView.onKeyUp(int, KeyEvent)
public boolean onTouchEvent(GLESSurfaceView view, MotionEvent event)
This method is called when the GLESSurfaceView
instance
which this renderer is set to receives a Touch event.
view
- The GLESSurfaceView instance which this renderer is set to.event
-
GLESSurfaceView.onTouchEvent(MotionEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |