Class PlaneRenderer
- java.lang.Object
-
- com.avaya.clientservices.media.gui.PlaneRenderer
-
- All Implemented Interfaces:
android.opengl.GLSurfaceView.Renderer,android.view.View.OnTouchListener
public class PlaneRenderer extends java.lang.Object implements android.opengl.GLSurfaceView.Renderer, android.view.View.OnTouchListener
-
-
Constructor Summary
Constructors Constructor Description PlaneRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRenderable(Renderable renderable)Adds aRenderableobject to a collection to be updated with surface events.PlanegetPlane()Gets the plane to be rendered.voidonDrawFrame(javax.microedition.khronos.opengles.GL10 gl)voidonSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height)voidonSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config)booleanonTouch(android.view.View view, android.view.MotionEvent event)voidremoveAllRenderables()Removes allRenderableobjects from a collection to be updated with surface events.voidremoveRenderable(Renderable renderable)Removes aRenderableobject from a collection to be updated with surface events.voidsetPlane(Plane plane)Sets the plane to be rendered.
-
-
-
Method Detail
-
getPlane
public Plane getPlane()
Gets the plane to be rendered.- Returns:
- the plane to be rendered.
-
setPlane
public void setPlane(Plane plane)
Sets the plane to be rendered.- Parameters:
plane- the plane to be rendered.
-
addRenderable
public void addRenderable(Renderable renderable)
Adds aRenderableobject to a collection to be updated with surface events. The object will be notified immediately of current surface state.- Parameters:
renderable- the object to be added.
-
removeRenderable
public void removeRenderable(Renderable renderable)
Removes aRenderableobject from a collection to be updated with surface events.- Parameters:
renderable- the object to be removed.
-
removeAllRenderables
public void removeAllRenderables()
Removes allRenderableobjects from a collection to be updated with surface events.
-
onSurfaceCreated
public void onSurfaceCreated(javax.microedition.khronos.opengles.GL10 gl, javax.microedition.khronos.egl.EGLConfig config)- Specified by:
onSurfaceCreatedin interfaceandroid.opengl.GLSurfaceView.Renderer
-
onSurfaceChanged
public void onSurfaceChanged(javax.microedition.khronos.opengles.GL10 gl, int width, int height)- Specified by:
onSurfaceChangedin interfaceandroid.opengl.GLSurfaceView.Renderer
-
onDrawFrame
public void onDrawFrame(javax.microedition.khronos.opengles.GL10 gl)
- Specified by:
onDrawFramein interfaceandroid.opengl.GLSurfaceView.Renderer
-
onTouch
public boolean onTouch(android.view.View view, android.view.MotionEvent event)- Specified by:
onTouchin interfaceandroid.view.View.OnTouchListener
-
-