X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimatedobject.h;h=2b640b763fa1859807f5a2a0736b44c57ca7aa87;hp=4782951d10fb9207a77e26a6d32cff367a27c3db;hb=HEAD;hpb=de5d710b87879d6a0b06407da096ec505f8b7679 diff --git a/source/animatedobject.h b/source/animatedobject.h deleted file mode 100644 index 4782951d..00000000 --- a/source/animatedobject.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef MSP_GL_ANIMATEDOBJECT_H_ -#define MSP_GL_ANIMATEDOBJECT_H_ - -#include -#include -#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 -{ -public: - class Loader: public DataFile::ObjectLoader - { - public: - Loader(AnimatedObject &); - - private: - void position(float, float, float); - void rotation(float, float, float, float); - void scale(float, float, float); - void scale_uniform(float); - }; - -private: - Matrix matrix; - std::vector 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; -}; - -} // namespace GL -} // namespace Msp - -#endif