X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimatedobject.h;h=74e59fc8a76071196baf10da16a3ab7598ab14bf;hp=b7f480054275d44148ca714c659af2ad548ce0d2;hb=97b8f0d945474582c2213b70418d399e5641f0d5;hpb=3f7c493e13b7108098539078b729cffc095c304b diff --git a/source/animatedobject.h b/source/animatedobject.h index b7f48005..74e59fc8 100644 --- a/source/animatedobject.h +++ b/source/animatedobject.h @@ -11,8 +11,7 @@ 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. +An object instance that can be animated by an AnimationPlayer. */ class AnimatedObject: public ObjectInstance { @@ -30,7 +29,6 @@ public: }; private: - Matrix matrix; std::vector pose_data; ProgramData *shdata; @@ -38,8 +36,11 @@ public: AnimatedObject(const Object &); ~AnimatedObject(); - void set_matrix(const Matrix &); void set_pose_matrix(unsigned, const Matrix &); + ProgramData &get_shader_data(); + const ProgramData &get_shader_data() const; + + // Deprecated void set_uniform(const std::string &, const KeyFrame::AnimatedUniform &); virtual const Matrix *get_matrix() const { return &matrix; }