From 0e8f0361c1068eb4c2f634dfcf4e1762d87f40d2 Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Sat, 31 Mar 2012 16:44:02 +0100 Subject: implementing trap door --- gaunt01/src/morphmesh.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 gaunt01/src/morphmesh.h (limited to 'gaunt01/src/morphmesh.h') diff --git a/gaunt01/src/morphmesh.h b/gaunt01/src/morphmesh.h new file mode 100644 index 0000000..91a8f17 --- /dev/null +++ b/gaunt01/src/morphmesh.h @@ -0,0 +1,42 @@ +#ifndef MORPHMESH_H +#define MORPHMESH_H + +#include +#include + +#include +#include + +/* +Tim Redfern, March 2012 + +Loads meshes in Oak3D XML format + +Draws blended morph targets + +Multiple meshes are loaded as morph targets + +Coords are absolute + +*/ + + +class morphmesh : public ofMesh +{ + public: + morphmesh(); + morphmesh(string filename); + virtual ~morphmesh(); + bool loadfile(string filename); + bool isLoaded(); + void draw(); + void draw(int target); + void draw(const vector& targets, const vector& weights); + int getNumTargets(); + protected: + private: + vector< vector > morphs; + bool loaded; +}; + +#endif // MORPHMESH_H -- cgit v1.2.3