kick
|
00001 // 00002 // Created by morten on 24/05/14. 00003 // 00004 00005 00006 #include "camera.h" 00007 #include "game_object.h" 00008 00009 #pragma once 00010 00011 00012 namespace kick { 00013 class CameraOrthographic : public Camera { 00014 public: 00015 CameraOrthographic(GameObject *gameObject); 00016 00017 float near() const; 00018 void setNear(float near); 00019 float far() const; 00020 void setFar(float far); 00021 float left() const; 00022 void setLeft(float left); 00023 float right() const; 00024 void setRight(float right); 00025 float bottom() const; 00026 void setBottom(float bottom); 00027 float top() const; 00028 void setTop(float top); 00029 void set(float near, float far, float left, float right, float bottom, float top); 00030 virtual void resetProjectionMatrix() override; 00031 private: 00032 float mNear = -1; 00033 float mFar = 1; 00034 float mLeft = -1; 00035 float mRight = 1; 00036 float mBottom = -1; 00037 float mTop = 1; 00038 }; 00039 } 00040 00041