factored out camera handling

camera controls added to the map editor
This commit is contained in:
devZoGok
2022-12-29 15:09:39 +02:00
parent 19f16da9ed
commit d3b7b88768
7 changed files with 207 additions and 125 deletions
+21
View File
@@ -0,0 +1,21 @@
#ifndef CAMERA_CONTROLLER_H
#define CAMERA_CONTROLLER_H
#include <vector.h>
namespace battleship{
class CameraController{
public:
static CameraController* getSingleton();
void updateCameraPosition();
void orientCamera(vb01::Vector3, double);
inline bool isLookingAround(){return lookingAround;}
inline void setLookingAround(bool l){lookingAround = l;}
private:
CameraController(){}
bool lookingAround = false;
};
}
#endif