]> git.tdb.fi Git - libs/gl.git/blob - source/animatedobject.cpp
Basic animation support
[libs/gl.git] / source / animatedobject.cpp
1 #include "animatedobject.h"
2 #include "renderer.h"
3
4 namespace Msp {
5 namespace GL {
6
7 AnimatedObject::AnimatedObject(const Object &o):
8         ObjectInstance(o)
9 { }
10
11 void AnimatedObject::set_matrix(const Matrix &m)
12 {
13         matrix = m;
14 }
15
16 void AnimatedObject::setup_render(Renderer &renderer, const Tag &) const
17 {
18         renderer.matrix_stack() *= matrix;
19 }
20
21 } // namespace GL
22 } // namespace Msp