Basic Renderable for rendering simple 2D images. More...
Public Member Functions | |
boolean | update (long time, double distance, BeyondarObject beyondarObject) |
Update the renderer before the draw method is called. More... | |
void | draw (GL10 gl, Texture defaultTexture) |
The draw method for the square with the GL context. | |
Plane | getPlane () |
Get the plane that represents the Renderable. More... | |
void | setPosition (float x, float y, float z) |
Set the position where the Renderable needs to be rendered. More... | |
void | setAngle (float x, float y, float z) |
Set the angle of the Renderable. More... | |
Point3 | getAngle () |
Get the angle of the Renderable. More... | |
long | getTimeMark () |
Get the time mark. More... | |
Point3 | getPosition () |
Get the position where the Renderable will be rendered. More... | |
void | onNotRendered (double dst) |
This method is called when the Renderable is not rendered, for example because is too far. | |
Texture | getTexture () |
Get the texture object for the Renderable. More... | |
Static Public Member Functions | |
static synchronized Renderable | getInstance () |
Get unique instance of the SquareRenderable. More... | |
Basic Renderable for rendering simple 2D images.
Point3 com.beyondar.android.opengl.renderable.SquareRenderable.getAngle | ( | ) |
Get the angle of the Renderable.
Implements com.beyondar.android.opengl.renderable.Renderable.
|
static |
Get unique instance of the SquareRenderable.
Plane com.beyondar.android.opengl.renderable.SquareRenderable.getPlane | ( | ) |
Get the plane that represents the Renderable.
Used for collision detection.
Implements com.beyondar.android.opengl.renderable.Renderable.
Point3 com.beyondar.android.opengl.renderable.SquareRenderable.getPosition | ( | ) |
Get the position where the Renderable will be rendered.
Implements com.beyondar.android.opengl.renderable.Renderable.
Texture com.beyondar.android.opengl.renderable.SquareRenderable.getTexture | ( | ) |
Get the texture object for the Renderable.
Implements com.beyondar.android.opengl.renderable.Renderable.
long com.beyondar.android.opengl.renderable.SquareRenderable.getTimeMark | ( | ) |
void com.beyondar.android.opengl.renderable.SquareRenderable.setAngle | ( | float | x, |
float | y, | ||
float | z | ||
) |
Set the angle of the Renderable.
x | |
y | |
z |
Implements com.beyondar.android.opengl.renderable.Renderable.
void com.beyondar.android.opengl.renderable.SquareRenderable.setPosition | ( | float | x, |
float | y, | ||
float | z | ||
) |
Set the position where the Renderable needs to be rendered.
x | |
y | |
z |
Implements com.beyondar.android.opengl.renderable.Renderable.
boolean com.beyondar.android.opengl.renderable.SquareRenderable.update | ( | long | time, |
double | distance, | ||
BeyondarObject | beyondarObject | ||
) |
Update the renderer before the draw method is called.
time | The time mark. |
distance | The distance form the camera in meters. |
beyondarObject | The BeyondarObject represented by the Renderable. |
Implements com.beyondar.android.opengl.renderable.Renderable.