Level H Engine
Public Member Functions | Private Attributes | List of all members
CameraComponent Class Reference

Creates a Camera component. More...

#include <CameraComponent.h>

Inheritance diagram for CameraComponent:
Inheritance graph
Collaboration diagram for CameraComponent:
Collaboration graph

Public Member Functions

virtual ~CameraComponent ()
 A virtual destructor. More...
 
Mat4 getProjection ()
 Returns the Camera projection matrix. More...
 
float getZDepth ()
 Returns the Z depth for the Camera. More...
 
float * getOrthoProjection ()
 Returns the Camera orthogonal projection matrix. More...
 
virtual void onAwake ()
 A virtual function for the componets awake. More...
 
virtual void onDestroy ()
 A virtual function for the componets destroy. More...
 
- Public Member Functions inherited from Component
virtual ~Component ()
 A virtual destructor. More...
 
std::weak_ptr< GameObjectgetGameObject ()
 A function to get the game object linked with the component. More...
 
virtual void onUpdate ()
 A virtual function for the componets update. More...
 
virtual void onRender ()
 A virtual function for the componets render. More...
 
void setDestroyed (bool inDestroyed)
 A function to set the componets destroyed boolean. More...
 
bool getDestroyed ()
 A function to get the componets destroyed boolean. More...
 
std::string getID ()
 A function to set the components type ID. More...
 

Private Attributes

Mat4 projection
 Construct a projection matrix for the Camera (Camera lense) More...
 
float zDepth
 The Z depth for the camera. More...
 

Additional Inherited Members

- Protected Attributes inherited from Component
std::string id
 The ID of the component type. More...
 

Detailed Description

Creates a Camera component.

Constructor & Destructor Documentation

◆ ~CameraComponent()

CameraComponent::~CameraComponent ( )
virtual

A virtual destructor.

Member Function Documentation

◆ getOrthoProjection()

float * CameraComponent::getOrthoProjection ( )

Returns the Camera orthogonal projection matrix.

Returns
The Camera orthogonal projection matrix.
Here is the call graph for this function:

◆ getProjection()

Mat4 CameraComponent::getProjection ( )

Returns the Camera projection matrix.

Returns
The Camera projection matrix.
Here is the caller graph for this function:

◆ getZDepth()

float CameraComponent::getZDepth ( )

Returns the Z depth for the Camera.

Returns
The Z depth for the Camera.
Here is the caller graph for this function:

◆ onAwake()

void CameraComponent::onAwake ( )
virtual

A virtual function for the componets awake.

Reimplemented from Component.

Here is the call graph for this function:

◆ onDestroy()

void CameraComponent::onDestroy ( )
virtual

A virtual function for the componets destroy.

Reimplemented from Component.

Member Data Documentation

◆ projection

Mat4 CameraComponent::projection
private

Construct a projection matrix for the Camera (Camera lense)

◆ zDepth

float CameraComponent::zDepth
private

The Z depth for the camera.


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