Interface that provides the needed methods that are called from the ARRenderer. More...
Public Member Functions | |
void | draw (GL10 gl, Texture defaultTexture) |
The draw method to be used by OpenGL. | |
boolean | update (long time, double distance, BeyondarObject beyondarObject) |
Update the renderer before the draw method is called. 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... | |
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... | |
Point3 | getPosition () |
Get the position where the Renderable will 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... | |
Interface that provides the needed methods that are called from the ARRenderer.
Point3 com.beyondar.android.opengl.renderable.Renderable.getAngle | ( | ) |
Get the angle of the Renderable.
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
Plane com.beyondar.android.opengl.renderable.Renderable.getPlane | ( | ) |
Get the plane that represents the Renderable.
Used for collision detection.
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
Point3 com.beyondar.android.opengl.renderable.Renderable.getPosition | ( | ) |
Get the position where the Renderable will be rendered.
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
Texture com.beyondar.android.opengl.renderable.Renderable.getTexture | ( | ) |
Get the texture object for the Renderable.
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
long com.beyondar.android.opengl.renderable.Renderable.getTimeMark | ( | ) |
void com.beyondar.android.opengl.renderable.Renderable.setAngle | ( | float | x, |
float | y, | ||
float | z | ||
) |
Set the angle of the Renderable.
x | |
y | |
z |
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
void com.beyondar.android.opengl.renderable.Renderable.setPosition | ( | float | x, |
float | y, | ||
float | z | ||
) |
Set the position where the Renderable needs to be rendered.
x | |
y | |
z |
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.
boolean com.beyondar.android.opengl.renderable.Renderable.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. |
Implemented in com.beyondar.android.opengl.renderable.SquareRenderable.