Chira Engine
A customizable MIT-licensed game engine.
chira::CameraComponent Struct Reference
Collaboration diagram for chira::CameraComponent:

Public Types

enum class  ProjectionMode { PERSPECTIVE , ORTHOGRAPHIC }
 

Public Member Functions

 CameraComponent (ProjectionMode mode=ProjectionMode::PERSPECTIVE, float fov_=70.f, float nearDistance_=0.1f, float farDistance_=1024.f, float orthoSize_=10.f, bool active_=true)
 
glm::mat4 getProjection (glm::vec2i size) const
 
glm::mat4 getView () const
 
void setCurrent ()
 
void clearCurrent ()
 

Public Attributes

TransformComponenttransform = nullptr
 
ProjectionMode projectionMode
 
std::size_t activeLayers
 
float fov
 
float nearDistance
 
float farDistance
 
float orthoSize
 
bool active
 

Detailed Description

Definition at line 12 of file CameraComponent.h.


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