1 #ifndef MSP_GL_ANIMATEDOBJECT_H_
2 #define MSP_GL_ANIMATEDOBJECT_H_
5 #include <msp/datafile/objectloader.h>
7 #include "objectinstance.h"
13 An object instance that can be animated. Despite the name, this can also be
14 useful for displaying objects at a static position.
16 class AnimatedObject: public ObjectInstance
19 class Loader: public DataFile::ObjectLoader<AnimatedObject>
22 Loader(AnimatedObject &);
25 void position(float, float, float);
26 void rotation(float, float, float, float);
27 void scale(float, float, float);
28 void scale_uniform(float);
33 std::vector<float> pose_data;
37 AnimatedObject(const Object &);
40 void set_matrix(const Matrix &);
41 void set_pose_matrix(unsigned, const Matrix &);
43 virtual const Matrix *get_matrix() const { return &matrix; }
45 virtual void setup_render(Renderer &, const Tag &) const;