public class ARRenderer
extends java.lang.Object
supplyRenderer
method.
Subclasses should override 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.
The draw
method should also be override to perfom actual rendering. This is
in preference to directly overriding onDrawFrame
, because ARRenderer will check
that the ARToolKit is running before calling draw.Constructor and Description |
---|
ARRenderer() |
Modifier and Type | Method and Description |
---|---|
boolean |
configureARScene()
Allows subclasses to load markers and prepare the scene.
|
void |
draw(GL10 gl)
Should be overridden in subclasses and used to perform rendering.
|
void |
onDrawFrame(GL10 gl) |
void |
onSurfaceChanged(GL10 unused,
int w,
int h) |
void |
onSurfaceCreated(GL10 unused,
EGLConfig config) |
public boolean configureARScene()
public void onSurfaceCreated(GL10 unused, EGLConfig config)
public void onSurfaceChanged(GL10 unused, int w, int h)
public void onDrawFrame(GL10 gl)
public void draw(GL10 gl)