From 2e5d37905b1bc246ede3a090ae7160e7fe9b6228 Mon Sep 17 00:00:00 2001 From: jonas Date: Tue, 22 Jan 2019 11:40:05 +0100 Subject: added capabilty to manage cWiremesh to cObjecthandler --- cObjectHandler.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cObjectHandler.h') diff --git a/cObjectHandler.h b/cObjectHandler.h index 010783a..47e138c 100644 --- a/cObjectHandler.h +++ b/cObjectHandler.h @@ -3,6 +3,7 @@ #include #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 objects; + vector meshes; vector< vector > iHitMap; cRender *render; unsigned long int iActiveObject; -- cgit v1.2.3