mirror of
https://github.com/devZoGok/PlanetFleet.git
synced 2026-08-26 19:43:29 +00:00
factored out camera handling
camera controls added to the map editor
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user