Application with an interactive camera.
More...
#include <Application.hpp>
|
bool | _freezeCamera = false |
| Should the camera be frozen.
|
|
double | _fullTime = 0.0 |
| Time elapsed since the app launch.
|
|
double | _remainingTime = 0.0 |
| Remaining accumulated time to process.
|
|
const double | _dt = 1.0 / 120.0 |
| Small physics timestep.
|
|
Application with an interactive camera.
Inherits Application.
Inherited by AtmosphereApp, FilteringApp, IslandApp, PBRDemo, PathTracerApp, SceneEditor, ShaderEditor, and StenciledApp.
◆ CameraApp()
Constructor.
- Parameters
-
config | the rendering configuration |
window | the window to render to |
◆ freezeCamera()
void CameraApp::freezeCamera |
( |
bool |
shouldFreeze | ) |
|
|
protected |
Prevent the user from interacting with the camera.
- Parameters
-
◆ physics()
void CameraApp::physics |
( |
double |
fullTime, |
|
|
double |
frameTime |
|
) |
| |
|
virtual |
Perform physics simulation update.
- Parameters
-
fullTime | the time elapsed since the beginning of the render loop |
frameTime | the duration of the last frame |
- Note
- This function can be called multiple times per frame.
Reimplemented in FilteringApp, PathTracerApp, PBRDemo, StenciledApp, and SceneEditor.
◆ update()
void CameraApp::update |
( |
| ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: