aboutsummaryrefslogtreecommitdiff
path: root/visualization/extrasmeltutils.hpp
blob: 4b6c1675ab3dbcaf614ce9a57b0d977b147954e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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