Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.plugin.GLPlugin Interface Reference

Basic interface to create a plugin to extend the OpenGL layer. More...

Inheritance diagram for com.beyondar.android.plugin.GLPlugin:
Collaboration diagram for com.beyondar.android.plugin.GLPlugin:

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.
 

Detailed Description

Basic interface to create a plugin to extend the OpenGL layer.

Member Function Documentation

boolean com.beyondar.android.plugin.GLPlugin.isAttached ( )

Check if the plugin is attached.

Returns
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.

Parameters
gl
void com.beyondar.android.plugin.GLPlugin.onCameraPositionChanged ( Point3  newCameraPos)

Called when the camera position has been changed.

Parameters
newCameraPosnew camera position.
void com.beyondar.android.plugin.GLPlugin.onDrawBeyondaarObject ( GL10  gl,
BeyondarObject  beyondarObject,
Texture  defaultTexture 
)

Called before a BeyondarObject is rendered.

Parameters
gl
beyondarObjectthe BeyondarObject to be rendered.
defaultTextureThe 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.

Parameters
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.

Parameters
worldThe World information

The documentation for this interface was generated from the following file: