|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.eside.flingbox.graphics.SceneRenderer
public class SceneRenderer
SceneRenderer handles functions to render
Scene into GLSurfaceView space by
Renderer interface.
Defines Renderizable interface witch should be
implemented by on scene bodys to be rendered.
| Constructor Summary | |
|---|---|
SceneRenderer()
|
|
| Method Summary | |
|---|---|
void |
add(RenderBody render)
Adds one object to be rendered. |
RenderCamera |
getCamera()
|
void |
onDrawFrame(GL10 gl)
Called to draw the current frame. |
void |
onSurfaceChanged(GL10 gl,
int width,
int height)
Called when the surface is resized and after onSurfaceCreated. |
void |
onSurfaceCreated(GL10 gl,
EGLConfig config)
First called when Surface is Created. |
boolean |
remove(RenderBody render)
Removes object from scene |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SceneRenderer()
| Method Detail |
|---|
public void add(RenderBody render)
render - objectpublic boolean remove(RenderBody render)
render - Render to be removed
public RenderCamera getCamera()
public void onDrawFrame(GL10 gl)
public void onSurfaceChanged(GL10 gl,
int width,
int height)
public void onSurfaceCreated(GL10 gl,
EGLConfig config)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||