Class BitmapLayer
- java.lang.Object
-
- com.avaya.clientservices.media.gui.NativeObject
-
- com.avaya.clientservices.media.gui.BitmapLayer
-
- All Implemented Interfaces:
Destroyable,Positionable,Renderable
public class BitmapLayer extends NativeObject implements Positionable, Renderable
Renders a bitmap at a given position within an opengl context. The bitmap will be loaded via:
GLUtils.texImage2D(int target, int level, Bitmap bitmap, int border)
-
-
Constructor Summary
Constructors Constructor Description BitmapLayer()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonDrawFrame(double time)voidonSurfaceChanged(int width, int height)voidonSurfaceCreated()voidsetBitmap(android.graphics.Bitmap bitmap)Sets the bitmap to be rendered.voidsetBounds(int x, int y, int width, int height)voidsetPosition(int x, int y)-
Methods inherited from class com.avaya.clientservices.media.gui.NativeObject
destroy
-
-
-
-
Method Detail
-
setBitmap
public void setBitmap(android.graphics.Bitmap bitmap)
Sets the bitmap to be rendered. The bitmap will fill the bounds.- Parameters:
bitmap- The bitmap to be rendered.
-
setBounds
public void setBounds(int x, int y, int width, int height)- Specified by:
setBoundsin interfacePositionable
-
setPosition
public void setPosition(int x, int y)- Specified by:
setPositionin interfacePositionable
-
onSurfaceCreated
public void onSurfaceCreated()
- Specified by:
onSurfaceCreatedin interfaceRenderable
-
onSurfaceChanged
public void onSurfaceChanged(int width, int height)- Specified by:
onSurfaceChangedin interfaceRenderable
-
onDrawFrame
public void onDrawFrame(double time)
- Specified by:
onDrawFramein interfaceRenderable
-
-