]> git.tdb.fi Git - libs/gl.git/blob - source/animatedobject.h
Basic animation support
[libs/gl.git] / source / animatedobject.h
1 #ifndef MSP_GL_ANIMATEDOBJECT_H_
2 #define MSP_GL_ANIMATEDOBJECT_H_
3
4 #include "matrix.h"
5 #include "objectinstance.h"
6
7 namespace Msp {
8 namespace GL {
9
10 /**
11 An object instance that can be animated.  Despite the name, this can also be
12 useful for displaying objects at a static position.
13 */
14 class AnimatedObject: public ObjectInstance
15 {
16 private:
17         Matrix matrix;
18
19 public:
20         AnimatedObject(const Object &);
21
22         void set_matrix(const Matrix &);
23
24         virtual void setup_render(Renderer &, const Tag &) const;
25 };
26
27 } // namespace GL
28 } // namespace Msp
29
30 #endif