Package com.io7m.jcamera.examples.jogl
Interface ExampleFPSStyleSimulationType
- All Known Implementing Classes:
ExampleFPSStyleSimulation
public interface ExampleFPSStyleSimulationType
The interface to simulations (with fps-style cameras) exposed to JOGL.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidcameraSetEnabled(boolean b) Enable/disable the camera.floatgetInput()
-
Method Details
-
cameraIsEnabled
boolean cameraIsEnabled()- Returns:
trueif the camera is enabled.
-
cameraSetEnabled
void cameraSetEnabled(boolean b) Enable/disable the camera.- Parameters:
b-trueif the camera should be enabled.
-
getCamera
JCameraFPSStyleType getCamera()- Returns:
- The camera used for the simulation.
-
getDeltaTime
float getDeltaTime()- Returns:
- The simulation delta time
-
getInput
JCameraFPSStyleInputType getInput()- Returns:
- The camera input
-
getIntegrator
JCameraFPSStyleIntegratorType getIntegrator()- Returns:
- The integrator used for the camera.
-
integrate
JCameraFPSStyleSnapshot integrate()- Returns:
- A new camera snapshot
-