Package com.io7m.jcamera.examples.jogl
Class ExampleRenderer
java.lang.Object
com.io7m.jcamera.examples.jogl.ExampleRenderer
- All Implemented Interfaces:
ExampleRendererControllerType,ExampleRendererType
-
Constructor Summary
Constructors -
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.voidTell the renderer/windowing system that it should warp the pointer to the center of the screen.
-
Constructor Details
-
ExampleRenderer
public ExampleRenderer()
-
-
Method Details
-
draw
public void draw(JCameraReadableSnapshotType s, Optional<com.io7m.jtensors.core.unparameterized.vectors.Vector3D> target) Description copied from interface:ExampleRendererTypeDraw the scene.- Specified by:
drawin interfaceExampleRendererType- Parameters:
s- A camera snapshottarget- An optional target to be drawn
-
init
public void init(com.jogamp.newt.opengl.GLWindow in_window, com.jogamp.opengl.GL3 in_gl) throws IOException Description copied from interface:ExampleRendererTypeInitialize the scene, using the given window and OpenGL interface.- Specified by:
initin interfaceExampleRendererType- Parameters:
in_window- The windowin_gl- The OpenGL interface- Throws:
IOException- On I/O errors
-
reshape
public void reshape(int width, int height) Description copied from interface:ExampleRendererTypeIndicate that the screen has been resized.- Specified by:
reshapein interfaceExampleRendererType- Parameters:
width- The new widthheight- The new height
-
sendWantWarpPointer
public void sendWantWarpPointer()Description copied from interface:ExampleRendererControllerTypeTell the renderer/windowing system that it should warp the pointer to the center of the screen.- Specified by:
sendWantWarpPointerin interfaceExampleRendererControllerType
-