diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 01:57:40 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2019-02-10 01:57:40 +0100 |
commit | 6dce8d1945731314ee4def31431cc99a6d620192 (patch) | |
tree | c3f413c76fe233f310fa335eb84602b03feb5007 /cObjectHandler.h | |
parent | 5bfaf048e81900ffdc0bb2815f8465235c4462d5 (diff) | |
download | termgl-6dce8d1945731314ee4def31431cc99a6d620192.tar.gz |
cObjectHandler: Implemented Camera movement
cObjectHandler can now move the origin of the camera around the screen
Diffstat (limited to 'cObjectHandler.h')
-rw-r--r-- | cObjectHandler.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cObjectHandler.h b/cObjectHandler.h index bc6a48d..0e7750c 100644 --- a/cObjectHandler.h +++ b/cObjectHandler.h @@ -53,6 +53,11 @@ public: int destroyWiremesh(int _mesh); + void setCameraPosition(sPos _pos, int _mode); + + sPos getCameraPosition(); + + /** * writes all objects in objects[] to render buffer */ @@ -91,4 +96,5 @@ private: vector< vector<unsigned int> > iHitMap; cRender *render; unsigned long int iActiveObject; + sPos cameraPosition; }; |