|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.dhbw.andar.AndARRenderer
public class AndARRenderer
Opens the camera and displays the output on a square (as a texture)
Constructor Summary | |
---|---|
AndARRenderer(Resources res,
ARToolkit markerInfo,
AndARActivity activity)
the default constructer |
Method Summary | |
---|---|
java.util.concurrent.locks.ReentrantLock |
getFrameLock()
|
void |
onDrawFrame(GL10 gl)
|
void |
onSurfaceChanged(GL10 gl,
int width,
int height)
|
void |
onSurfaceCreated(GL10 gl,
EGLConfig config)
|
void |
setMode(int pMode)
sets the mode(either GL10.GL_RGB or GL10.GL_LUMINANCE) |
void |
setNextFrame(java.nio.ByteBuffer buf)
|
void |
setNonARRenderer(OpenGLRenderer customRenderer)
|
void |
setPreviewFrameSize(int textureSize,
int realWidth,
int realHeight)
Set the size of the texture(must be power of two) |
Bitmap |
takeScreenshot()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AndARRenderer(Resources res, ARToolkit markerInfo, AndARActivity activity)
int
- the PixelFormat
of the Camera previewres
- ResourcescustomRenderer
- non AR renderer, may be nullMethod Detail |
---|
public final void onDrawFrame(GL10 gl)
public void onSurfaceChanged(GL10 gl, int width, int height)
public void onSurfaceCreated(GL10 gl, EGLConfig config)
public final void setNextFrame(java.nio.ByteBuffer buf)
setNextFrame
in interface PreviewFrameSink
public java.util.concurrent.locks.ReentrantLock getFrameLock()
getFrameLock
in interface PreviewFrameSink
public void setPreviewFrameSize(int textureSize, int realWidth, int realHeight)
PreviewFrameSink
setPreviewFrameSize
in interface PreviewFrameSink
public void setMode(int pMode)
setMode
in interface PreviewFrameSink
pMode
- public void setNonARRenderer(OpenGLRenderer customRenderer)
public Bitmap takeScreenshot()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |