8 #include "cameracomponent.h"
11 #include <utility/dllexport.h>
15 class OrthoCameraComponentInstance;
16 class TransformComponentInstance;
17 class TransformComponent;
36 float mNearClippingPlane = 1.0f;
37 float mFarClippingPlane = 1000.0f;
38 float mLeftPlane = 0.0f;
39 float mRightPlane = 100.0f;
40 float mTopPlane = 100.0f;
41 float mBottomPlane = 0.0f;
85 virtual void setRenderTargetSize(
const glm::ivec2& size)
override;
93 virtual const glm::mat4& getProjectionMatrix()
const override;
98 virtual const glm::mat4 getViewMatrix()
const override;
127 void restoreClipRect();
132 virtual float getNearClippingPlane()
const override;
137 virtual float getFarClippingPlane()
const override;
146 virtual const glm::mat4& getRenderProjectionMatrix()
const override;
154 static glm::mat4 createRenderProjectionMatrix(
float left,
float right,
float bottom,
float top,
float zNear,
float zFar);
162 static glm::mat4 createRenderProjectionMatrix(
float left,
float right,
float bottom,
float top);
169 void setDirty() { mDirty =
true; }
174 void updateProjectionMatrices()
const;
177 mutable glm::mat4x4 mViewMatrix;
178 mutable glm::mat4x4 mProjectionMatrix;
179 mutable glm::mat4x4 mRenderProjectionMatrix;
180 mutable bool mDirty =
true;
181 OrthoCameraProperties mProperties;
182 TransformComponentInstance* mTransformComponent;