NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::CameraComponent Struct Reference

#include <Components.h>

Public Member Functions

glm::mat4 GetProjection (float aspectRatio) const

Public Attributes

CameraProjectionType ProjectionType = CameraProjectionType::Perspective
bool Primary = true
float PerspectiveFOV = 45.0f
float PerspectiveNear = 0.1f
float PerspectiveFar = 1000.0f
float OrthographicSize = 10.0f
float OrthographicNear = -1.0f
float OrthographicFar = 1000.0f

Detailed Description

Definition at line 111 of file Components.h.

Member Function Documentation

◆ GetProjection()

glm::mat4 NoJob::CameraComponent::GetProjection ( float aspectRatio) const
inline

Member Data Documentation

◆ OrthographicFar

float NoJob::CameraComponent::OrthographicFar = 1000.0f

Definition at line 120 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ OrthographicNear

float NoJob::CameraComponent::OrthographicNear = -1.0f

Definition at line 119 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ OrthographicSize

float NoJob::CameraComponent::OrthographicSize = 10.0f

Definition at line 118 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ PerspectiveFar

float NoJob::CameraComponent::PerspectiveFar = 1000.0f

Definition at line 117 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ PerspectiveFOV

float NoJob::CameraComponent::PerspectiveFOV = 45.0f

Definition at line 115 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ PerspectiveNear

float NoJob::CameraComponent::PerspectiveNear = 0.1f

Definition at line 116 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().

◆ Primary

bool NoJob::CameraComponent::Primary = true

Definition at line 114 of file Components.h.

Referenced by NoJob::SceneSerializer::Load(), and NoJob::SceneSerializer::Save().

◆ ProjectionType

CameraProjectionType NoJob::CameraComponent::ProjectionType = CameraProjectionType::Perspective

Definition at line 113 of file Components.h.

Referenced by GetProjection(), and NoJob::SceneSerializer::Load().


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