Package com.io7m.jcamera.examples.jogl
Class ExampleFPSStyleGLListener
java.lang.Object
com.io7m.jcamera.examples.jogl.ExampleFPSStyleGLListener
- All Implemented Interfaces:
com.jogamp.opengl.GLEventListener,EventListener
public final class ExampleFPSStyleGLListener
extends Object
implements com.jogamp.opengl.GLEventListener
The GL event listener used to handle rendering and driving of the
simulation.
-
Constructor Summary
ConstructorsConstructorDescriptionExampleFPSStyleGLListener(com.jogamp.newt.opengl.GLWindow in_window, JCameraFPSStyleSnapshot in_snap, ExampleFPSStyleSimulationType in_sim, AtomicReference<JCameraFPSStyleMouseRegion> in_mouse_region, ExampleRendererType in_renderer) -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplay(com.jogamp.opengl.GLAutoDrawable drawable) voiddispose(com.jogamp.opengl.GLAutoDrawable drawable) voidinit(com.jogamp.opengl.GLAutoDrawable drawable) Initialize the simulation.voidreshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height)
-
Constructor Details
-
ExampleFPSStyleGLListener
public ExampleFPSStyleGLListener(com.jogamp.newt.opengl.GLWindow in_window, JCameraFPSStyleSnapshot in_snap, ExampleFPSStyleSimulationType in_sim, AtomicReference<JCameraFPSStyleMouseRegion> in_mouse_region, ExampleRendererType in_renderer)
-
-
Method Details
-
init
public void init(com.jogamp.opengl.GLAutoDrawable drawable) Initialize the simulation.- Specified by:
initin interfacecom.jogamp.opengl.GLEventListener- Parameters:
drawable- The OpenGL drawable
-
dispose
public void dispose(com.jogamp.opengl.GLAutoDrawable drawable) - Specified by:
disposein interfacecom.jogamp.opengl.GLEventListener
-
display
public void display(com.jogamp.opengl.GLAutoDrawable drawable) - Specified by:
displayin interfacecom.jogamp.opengl.GLEventListener
-
reshape
public void reshape(com.jogamp.opengl.GLAutoDrawable drawable, int x, int y, int width, int height) - Specified by:
reshapein interfacecom.jogamp.opengl.GLEventListener
-