public final class ExampleRenderer extends Object implements ExampleRendererType
| Constructor and Description |
|---|
ExampleRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
draw(JCameraReadableSnapshotType s,
Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target)
Draw the scene.
|
void |
init(com.jogamp.newt.opengl.GLWindow in_window,
com.jogamp.opengl.GL3 in_gl)
Initialize the scene, using the given window and OpenGL interface.
|
void |
reshape(int width,
int height)
Indicate that the screen has been resized.
|
void |
sendWantWarpPointer()
Tell the renderer/windowing system that it should warp the pointer to the
center of the screen.
|
public void draw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target)
ExampleRendererTypedraw in interface ExampleRendererTypes - A camera snapshottarget - An optional target to be drawnpublic void init(com.jogamp.newt.opengl.GLWindow in_window,
com.jogamp.opengl.GL3 in_gl)
throws IOException
ExampleRendererTypeinit in interface ExampleRendererTypein_window - The windowin_gl - The OpenGL interfaceIOException - On I/O errorspublic void reshape(int width,
int height)
ExampleRendererTypereshape in interface ExampleRendererTypewidth - The new widthheight - The new heightpublic void sendWantWarpPointer()
ExampleRendererControllerTypesendWantWarpPointer in interface ExampleRendererControllerTypeCopyright © 2017 <code@io7m.com> http://io7m.com