]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animatedobject.h
Add a method of getting the model matrix of a Renderable
[libs/gl.git] / source / animatedobject.h
index acec4322af1d08ee15c755fe1cdea9368c9af41e..6bcd37ce4b609dbecadece72bfc336bc75317827 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef MSP_GL_ANIMATEDOBJECT_H_
 #define MSP_GL_ANIMATEDOBJECT_H_
 
+#include <vector>
 #include "matrix.h"
 #include "objectinstance.h"
 
@@ -15,14 +16,18 @@ class AnimatedObject: public ObjectInstance
 {
 private:
        Matrix matrix;
+       std::vector<float> pose_data;
        ProgramData *shdata;
 
 public:
        AnimatedObject(const Object &);
+       ~AnimatedObject();
 
        void set_matrix(const Matrix &);
        void set_pose_matrix(unsigned, const Matrix &);
 
+       virtual const Matrix *get_matrix() const { return &matrix; }
+
        virtual void setup_render(Renderer &, const Tag &) const;
 };