Nameless Engine
Loading...
Searching...
No Matches
ne::CameraProperties::Data::ProjectionData Struct Reference

#include <CameraProperties.h>

Public Attributes

glm::mat4x4 projectionMatrix = glm::identity<glm::mat4x4>()
 
bool bProjectionMatrixNeedsUpdate = true
 
bool bLightGridFrustumsNeedUpdate = true
 
float nearClipPlaneDistance = 0.3F
 
float farClipPlaneDistance = 500.0F
 
unsigned int iVerticalFov = 90
 
unsigned int iRenderTargetWidth = 800
 
unsigned int iRenderTargetHeight = 600
 
float nearClipPlaneHeight = 0.0F
 
float farClipPlaneHeight = 0.0F
 

Detailed Description

Stores data used for projection matrix.

Member Data Documentation

◆ bLightGridFrustumsNeedUpdate

bool ne::CameraProperties::Data::ProjectionData::bLightGridFrustumsNeedUpdate = true

Used by the renderer to track if projectionMatrix was changed or not to recalculate grid of frustums for light culling.

Remarks
Camera only sets this value to true and only renderer is allowed to set this value to false.

◆ bProjectionMatrixNeedsUpdate

bool ne::CameraProperties::Data::ProjectionData::bProjectionMatrixNeedsUpdate = true

Whether projectionMatrix needs to be recalculated or not.

◆ farClipPlaneDistance

float ne::CameraProperties::Data::ProjectionData::farClipPlaneDistance = 500.0F

Distance to camera's far clip plane.

◆ farClipPlaneHeight

float ne::CameraProperties::Data::ProjectionData::farClipPlaneHeight = 0.0F

Height of camera's far clip plane.

◆ iRenderTargetHeight

unsigned int ne::CameraProperties::Data::ProjectionData::iRenderTargetHeight = 600

Height of the buffer we are rendering the image to.

◆ iRenderTargetWidth

unsigned int ne::CameraProperties::Data::ProjectionData::iRenderTargetWidth = 800

Width of the buffer we are rendering the image to.

◆ iVerticalFov

unsigned int ne::CameraProperties::Data::ProjectionData::iVerticalFov = 90

Vertical field of view.

◆ nearClipPlaneDistance

float ne::CameraProperties::Data::ProjectionData::nearClipPlaneDistance = 0.3F

Distance from camera (view) space origin to camera's near clip plane.

◆ nearClipPlaneHeight

float ne::CameraProperties::Data::ProjectionData::nearClipPlaneHeight = 0.0F

Height of camera's near clip plane.

◆ projectionMatrix

glm::mat4x4 ne::CameraProperties::Data::ProjectionData::projectionMatrix = glm::identity<glm::mat4x4>()

Transforms positions from view (camera) space to 2D projection window (homogeneous clip space).


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