X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimatedobject.h;fp=source%2Fanimatedobject.h;h=4f6085ff84ce146974bcfa2e64f84b23fa672c64;hp=0000000000000000000000000000000000000000;hb=4c5ba8f7d3bc755d6256cb6bf75907a1b10fc290;hpb=09e8535797c3e9b14b4e1fd9783e136e6632d626 diff --git a/source/animatedobject.h b/source/animatedobject.h new file mode 100644 index 00000000..4f6085ff --- /dev/null +++ b/source/animatedobject.h @@ -0,0 +1,30 @@ +#ifndef MSP_GL_ANIMATEDOBJECT_H_ +#define MSP_GL_ANIMATEDOBJECT_H_ + +#include "matrix.h" +#include "objectinstance.h" + +namespace Msp { +namespace GL { + +/** +An object instance that can be animated. Despite the name, this can also be +useful for displaying objects at a static position. +*/ +class AnimatedObject: public ObjectInstance +{ +private: + Matrix matrix; + +public: + AnimatedObject(const Object &); + + void set_matrix(const Matrix &); + + virtual void setup_render(Renderer &, const Tag &) const; +}; + +} // namespace GL +} // namespace Msp + +#endif