public class ModelRenderer
extends java.lang.Object
implements android.opengl.GLSurfaceView.Renderer
| Constructor and Description |
|---|
ModelRenderer(android.content.Context activityContext) |
| Modifier and Type | Method and Description |
|---|---|
Camera |
getCamera()
Returns this renderer's camera object
|
int |
getHeight()
Return's the height of this renderer's surface
|
int |
getWidth()
Return's the width of this renderer's surface
|
void |
onDrawFrame(javax.microedition.khronos.opengles.GL10 gl) |
void |
onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height) |
void |
onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config) |
void |
setModel(Model model) |
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl,
javax.microedition.khronos.egl.EGLConfig config)
onSurfaceCreated in interface android.opengl.GLSurfaceView.Rendererpublic void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl,
int width,
int height)
onSurfaceChanged in interface android.opengl.GLSurfaceView.Rendererpublic void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
onDrawFrame in interface android.opengl.GLSurfaceView.Rendererpublic Camera getCamera()
public int getWidth()
public int getHeight()
public void setModel(Model model)