![]() |
NDEVR
API Documentation
|
A structure for managing Viewport interactions with an NDEVR Rendering Engine. More...
Public Member Functions | |
| GraphicsCameraManager () | |
| Default constructor. | |
| GraphicsCameraManager (const GraphicsCameraManager &m_pipeline) | |
| Copy constructor. | |
| virtual | ~GraphicsCameraManager () |
| Destructor. | |
| UUID | overrideMaterial () const |
| Returns the override material UUID. | |
| void | setCamera (const UUID &camera) |
| Sets the camera to manage. | |
| const CameraUniformObject & | uniformObject () const |
| Returns the current camera uniform data. | |
| virtual void | updateUniformBuffer (GraphicsUpdateArguments &args) |
| Updates the GPU uniform buffer from the current camera state. | |
| bool | useCameraMaterial () const |
| Checks whether the camera material override is active. | |
Protected Member Functions | |
| CameraUniformObject | getCameraUniformObject (const Camera &camera, GraphicsUpdateArguments &args) const |
| Builds a CameraUniformObject from a Camera and update arguments. | |
Protected Attributes | |
| UUID | m_camera |
| UUID of the managed camera. | |
| CameraUniformObject | m_camera_uniform |
| Current uniform data for the GPU. | |
| Time | m_last_updated_time |
| Last time the uniform was updated. | |
| bool | m_needs_pipeline_update |
| Whether the pipeline needs rebuilding. | |
| bool | m_needs_uniform_commit |
| Whether the uniform buffer needs committing. | |
| UUID | m_override_material |
| UUID of the material override (if any). | |
| bool | m_use_anisotropy |
| Whether anisotropic filtering is enabled. | |
| bool | m_use_camera_material |
| Whether camera-specific material is used. | |
| bool | m_uses_origin |
| Whether origin-based precision is active. | |
| Time | m_visible_update_time = Time(0) |
| Last time a visible change was detected. | |
A structure for managing Viewport interactions with an NDEVR Rendering Engine.
Definition at line 73 of file GraphicsCameraManager.h.
| GraphicsCameraManager::GraphicsCameraManager | ( | const GraphicsCameraManager & | m_pipeline | ) |
Copy constructor.
| [in] | m_pipeline | The manager to copy from. |
References GraphicsCameraManager().
|
protected |
Builds a CameraUniformObject from a Camera and update arguments.
| [in] | camera | The camera. |
| [in] | args | The update arguments. |
|
inline |
Returns the override material UUID.
Definition at line 94 of file GraphicsCameraManager.h.
References m_override_material.
|
inline |
Sets the camera to manage.
| [in] | camera | The camera UUID. |
Definition at line 85 of file GraphicsCameraManager.h.
References m_camera.
|
inline |
Returns the current camera uniform data.
Definition at line 97 of file GraphicsCameraManager.h.
References m_camera_uniform.
|
virtual |
Updates the GPU uniform buffer from the current camera state.
| [in] | args | The graphics update arguments. |
Reimplemented in GLESCameraManager.
| bool GraphicsCameraManager::useCameraMaterial | ( | ) | const |
Checks whether the camera material override is active.