Level H Engine
CameraComponent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../Maths/Mat4.h"
4 #include "Component.h"
5 
9 class CameraComponent : public Component
10 {
11 public:
15  virtual ~CameraComponent();
16 
22 
27  float getZDepth();
28 
33  float* getOrthoProjection();
34 
38  virtual void onAwake();
39 
43  virtual void onDestroy();
44 
45 private:
48 
50  float zDepth;
51 };
virtual ~CameraComponent()
A virtual destructor.
Definition: CameraComponent.cpp:9
A class that handles the components.
Definition: Component.h:13
float * getOrthoProjection()
Returns the Camera orthogonal projection matrix.
Definition: CameraComponent.cpp:36
virtual void onDestroy()
A virtual function for the componets destroy.
Definition: CameraComponent.cpp:21
Mat4 projection
Construct a projection matrix for the Camera (Camera lense)
Definition: CameraComponent.h:47
float getZDepth()
Returns the Z depth for the Camera.
Definition: CameraComponent.cpp:31
Creates a Camera component.
Definition: CameraComponent.h:9
virtual void onAwake()
A virtual function for the componets awake.
Definition: CameraComponent.cpp:13
Contains the Mat4 structure with functions and overloaded operators. This is row major.
Definition: Mat4.h:9
Mat4 getProjection()
Returns the Camera projection matrix.
Definition: CameraComponent.cpp:25
float zDepth
The Z depth for the camera.
Definition: CameraComponent.h:50