Basic interface to create a plugin to extend the OpenGL layer. More...
Public Member Functions | |
void | onDetached () |
This method is invoked when the plugin is removed. | |
boolean | isAttached () |
Check if the plugin is attached. More... | |
void | setup (World world, ARRenderer renderer) |
Setup the plugin according to the world. More... | |
void | onCameraPositionChanged (Point3 newCameraPos) |
Called when the camera position has been changed. More... | |
void | onDrawBeyondaarObject (GL10 gl, BeyondarObject beyondarObject, Texture defaultTexture) |
Called before a BeyondarObject is rendered. More... | |
void | onFrameRendered (GL10 gl) |
Called when a frame has been rendered. More... | |
void | onMaxDistanceSizeChanged (float newMaxDistance) |
void | onMinDistanceSizeChanged (float newMinDistance) |
void | onSurfaceChanged (GL10 gl, int width, int height) |
void | onSurfaceCreated (GL10 gl, EGLConfig config) |
void | loadAdditionalTextures (GL10 gl) |
This method is called to pre-load any additional textures that may be used in the plugin. More... | |
void | onPause () |
Called when the activity has been paused. | |
void | onResume () |
Called when the activity has been resumed. | |
Basic interface to create a plugin to extend the OpenGL layer.
boolean com.beyondar.android.plugin.GLPlugin.isAttached | ( | ) |
Check if the plugin is attached.
void com.beyondar.android.plugin.GLPlugin.loadAdditionalTextures | ( | GL10 | gl | ) |
This method is called to pre-load any additional textures that may be used in the plugin.
gl |
void com.beyondar.android.plugin.GLPlugin.onCameraPositionChanged | ( | Point3 | newCameraPos | ) |
Called when the camera position has been changed.
newCameraPos | new camera position. |
void com.beyondar.android.plugin.GLPlugin.onDrawBeyondaarObject | ( | GL10 | gl, |
BeyondarObject | beyondarObject, | ||
Texture | defaultTexture | ||
) |
Called before a BeyondarObject is rendered.
gl | |
beyondarObject | the BeyondarObject to be rendered. |
defaultTexture | The default texture to draw if the BeyondarObject's Texture is not loaded. |
void com.beyondar.android.plugin.GLPlugin.onFrameRendered | ( | GL10 | gl | ) |
Called when a frame has been rendered.
gl |
void com.beyondar.android.plugin.GLPlugin.setup | ( | World | world, |
ARRenderer | renderer | ||
) |
Setup the plugin according to the world.
This method is also call if a new world is set.
world | The World information |