Package com.io7m.jcamera.examples.jogl
Interface ExampleRendererType
- All Superinterfaces:
ExampleRendererControllerType
- All Known Implementing Classes:
ExampleRenderer
The interface exposed by the renderer to JOGL.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target) Draw the scene.voidinit(com.jogamp.newt.opengl.GLWindow in_window, com.jogamp.opengl.GL3 in_gl) Initialize the scene, using the given window and OpenGL interface.voidreshape(int width, int height) Indicate that the screen has been resized.Methods inherited from interface com.io7m.jcamera.examples.jogl.ExampleRendererControllerType
sendWantWarpPointer
-
Method Details
-
init
void init(com.jogamp.newt.opengl.GLWindow in_window, com.jogamp.opengl.GL3 in_gl) throws IOException Initialize the scene, using the given window and OpenGL interface.- Parameters:
in_window- The windowin_gl- The OpenGL interface- Throws:
IOException- On I/O errors
-
draw
void draw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target) Draw the scene.- Parameters:
s- A camera snapshottarget- An optional target to be drawn
-
reshape
void reshape(int width, int height) Indicate that the screen has been resized.- Parameters:
width- The new widthheight- The new height
-