aboutsummaryrefslogtreecommitdiff
path: root/visualization/extrasmeltutils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'visualization/extrasmeltutils.hpp')
-rw-r--r--visualization/extrasmeltutils.hpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/visualization/extrasmeltutils.hpp b/visualization/extrasmeltutils.hpp
new file mode 100644
index 0000000..4b6c167
--- /dev/null
+++ b/visualization/extrasmeltutils.hpp
@@ -0,0 +1,19 @@
+#ifndef EXTRASMELTUTILS_H
+#define EXTRASMELTUTILS_H
+#include <vector>
+#include <smelt.hpp>
+#include <smmath.hpp>
+class smEntity3D
+{
+ private:
+ std::vector<smQuad> surfaces;
+ static SMELT *sm;
+ public:
+ smEntity3D();
+ ~smEntity3D(){surfaces.clear();sm->smRelease();}
+ void pushSurface(smQuad q);
+ void pushCube(smvec3d a,smvec3d b,DWORD color,DWORD mask);
+ void drawAt(smvec3d p);
+ void drawWithTransformation(smMatrix t,smvec3d p);
+};
+#endif // EXTRASMELTUTILS_H