diff options
author | jonas <himself@jonasgunz.de> | 2019-01-22 11:40:05 +0100 |
---|---|---|
committer | jonas <himself@jonasgunz.de> | 2019-01-22 11:40:05 +0100 |
commit | 2e5d37905b1bc246ede3a090ae7160e7fe9b6228 (patch) | |
tree | c2b999ed4e9b75eaab7d677a867fd30a0a059e43 /cObjectHandler.h | |
parent | 072e6b2901c046d80284fa72af2513fe9d8df997 (diff) | |
download | termgl-2e5d37905b1bc246ede3a090ae7160e7fe9b6228.tar.gz |
added capabilty to manage cWiremesh to cObjecthandler
Diffstat (limited to 'cObjectHandler.h')
-rw-r--r-- | cObjectHandler.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/cObjectHandler.h b/cObjectHandler.h index 010783a..47e138c 100644 --- a/cObjectHandler.h +++ b/cObjectHandler.h @@ -3,6 +3,7 @@ #include <vector> #include "cObject.h" +#include "cWiremesh.h" //movemodes #define _MOVE_RELATIVE 0 @@ -35,6 +36,18 @@ public: */ int destroyObject(int _object); + /** + * Analog to createObject() + */ + int createWiremesh(cWiremesh *_mesh); + + int moveWiremesh(int _mesh, sCoord3d _pos, int _mode); + + int rotateWiremesh(int _mesh, sCoord3d _angle); + + int destroyWiremesh(int _mesh); + + /** writes all objects in objects[] to render buffer */ int write(); @@ -64,6 +77,7 @@ private: void buildHitmap(); vector<cObject*> objects; + vector<cWiremesh*> meshes; vector< vector<unsigned int> > iHitMap; cRender *render; unsigned long int iActiveObject; |