HatchitGraphics
Public Member Functions | List of all members
Hatchit::Graphics::Camera Class Reference

Public Member Functions

 Camera (Math::Matrix4 view, Math::Matrix4 projection)
 
const Math::Matrix4 & GetView () const
 Gets the view matrix. More...
 
const Math::Matrix4 & GetProjection () const
 Gets the projection matrix. More...
 
uint64_t GetLayerFlags () const
 Get the flags describing which render layers this camera is on. More...
 
void SetView (Math::Matrix4 view)
 Sets the view matrix of the camera. More...
 
void SetProjection (Math::Matrix4 projection)
 Sets the projection matrix of the camera. More...
 
void SetLayerFlags (uint64_t flags)
 Sets the layer flags of the camera. More...
 
void RegisterCamera (Renderer &renderer)
 Register this camera to the renderer based on its layer flags. More...
 

Member Function Documentation

uint64_t Camera::GetLayerFlags ( ) const

Get the flags describing which render layers this camera is on.

Returns
A 64-bit bitflag representing the render layers
const Math::Matrix4 & Camera::GetProjection ( ) const

Gets the projection matrix.

Returns
A reference to the camera's projection matrix as a Matrix4
const Math::Matrix4 & Camera::GetView ( ) const

Gets the view matrix.

Returns
A reference to the camera's view matrix as a Matrix4
void Camera::RegisterCamera ( Renderer renderer)

Register this camera to the renderer based on its layer flags.

Parameters
rendererThe Renderer to register this camera to
void Camera::SetLayerFlags ( uint64_t  flags)

Sets the layer flags of the camera.

Parameters
flagsA 64 bit integer containing the flags that this camera is a part of
void Camera::SetProjection ( Math::Matrix4  projection)

Sets the projection matrix of the camera.

Parameters
viewA Math::Matrix4 describing a projection matrix
void Camera::SetView ( Math::Matrix4  view)

Sets the view matrix of the camera.

Parameters
viewA Math::Matrix4 describing a view matrix

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