public abstract class ARRenderer
extends java.lang.Object
supplyRenderer method.
configureARScene, which will be called by
the Activity when AR initialisation is complete. The Renderer can use this method
to add markers to the scene, and perform other scene initialisation.
draw() render} method should also be overridden to perform actual rendering. This is
in preference to directly overriding onDrawFrame, because ARRenderer will check
that the ARToolKitX is running before calling render.| Constructor and Description |
|---|
ARRenderer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
configureARScene()
Allows subclasses to load markers and prepare the scene.
|
void |
draw()
Should be overridden in subclasses and used to perform rendering.
|
ShaderProgram |
getSimpleShaderProgram() |
void |
onDrawFrame(GL10 unused) |
void |
onSurfaceChanged(GL10 unused,
int w,
int h) |
void |
onSurfaceCreated(GL10 unused,
EGLConfig config) |
void |
setCameraIndex(int cameraIndex) |
public boolean configureARScene()
public void onSurfaceCreated(GL10 unused,
EGLConfig config)
public void onSurfaceChanged(GL10 unused,
int w,
int h)
public void onDrawFrame(GL10 unused)
public void draw()
public ShaderProgram getSimpleShaderProgram()
public void setCameraIndex(int cameraIndex)