diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-05-04 23:45:29 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-05-04 23:45:29 +0800 |
commit | 56eaa27d4daca9264dac2e822b1126cf6eb8cbf4 (patch) | |
tree | b4da915a530814cd6e1705e72b1bde5ad196d8d2 /visualization/extrasmeltutils.hpp | |
parent | 015a45c276caf34be3ce9175a1bcce644d736a0b (diff) | |
download | QMidiPlayer-56eaa27d4daca9264dac2e822b1126cf6eb8cbf4.tar.xz |
Piano keyboard: first steps.
Diffstat (limited to 'visualization/extrasmeltutils.hpp')
-rw-r--r-- | visualization/extrasmeltutils.hpp | 19 |
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 |