NDEVR
API Documentation
GLESCameraManager

Manages viewports in the OpenGL engine, responsible for matrix transformations within shaders. More...

Inheritance diagram for GLESCameraManager:
[legend]
Collaboration diagram for GLESCameraManager:
[legend]

Public Member Functions

 GLESCameraManager (const DynamicPointer< GLESGraphicsDevice > &device)
 Constructs a GLESCameraManager for the given graphics device.
void update (const DynamicPointer< GLESShaderManager > &program)
 Pushes camera matrices to all shaders in the given shader manager.
void update (GLESShader *shader)
 Pushes camera matrices to a specific shader.
virtual void updateUniformBuffer (GraphicsUpdateArguments &args) override
 Updates camera-related uniform buffers for the current frame.
Public Member Functions inherited from GraphicsCameraManager
 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 CameraUniformObjectuniformObject () const
 Returns the current camera uniform data.
bool useCameraMaterial () const
 Checks whether the camera material override is active.

Protected Attributes

DynamicPointer< GLESGraphicsDevicem_device
 The OpenGL graphics device.
Protected Attributes inherited from GraphicsCameraManager
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.

Additional Inherited Members

Protected Member Functions inherited from GraphicsCameraManager
CameraUniformObject getCameraUniformObject (const Camera &camera, GraphicsUpdateArguments &args) const
 Builds a CameraUniformObject from a Camera and update arguments.

Detailed Description

Manages viewports in the OpenGL engine, responsible for matrix transformations within shaders.


Definition at line 15 of file GLESCameraManager.h.

Constructor & Destructor Documentation

◆ GLESCameraManager()

GLESCameraManager::GLESCameraManager ( const DynamicPointer< GLESGraphicsDevice > & device)

Constructs a GLESCameraManager for the given graphics device.

Parameters
[in]deviceThe OpenGL graphics device.

Member Function Documentation

◆ update() [1/2]

void GLESCameraManager::update ( const DynamicPointer< GLESShaderManager > & program)

Pushes camera matrices to all shaders in the given shader manager.

Parameters
[in]programThe shader manager containing shaders to update.

◆ update() [2/2]

void GLESCameraManager::update ( GLESShader * shader)

Pushes camera matrices to a specific shader.

Parameters
[in]shaderThe shader to update with camera matrices.

◆ updateUniformBuffer()

virtual void GLESCameraManager::updateUniformBuffer ( GraphicsUpdateArguments & args)
overridevirtual

Updates camera-related uniform buffers for the current frame.

Parameters
[in]argsThe graphics update context.

Reimplemented from GraphicsCameraManager.


The documentation for this class was generated from the following file: