X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimatedobject.h;h=f9b8824e1832932786189a99a9b2ca8a58eb2f3d;hp=3ec336fd353e1349bec2d0811f579512c5819233;hb=bec07999d95b76f4b47cffcc564d0cd0afc0435e;hpb=d093b45975eb03b07680711ce982ad634a50fba3 diff --git a/source/animatedobject.h b/source/animatedobject.h index 3ec336fd..f9b8824e 100644 --- a/source/animatedobject.h +++ b/source/animatedobject.h @@ -2,6 +2,7 @@ #define MSP_GL_ANIMATEDOBJECT_H_ #include +#include #include #include "keyframe.h" #include "matrix.h" @@ -16,7 +17,7 @@ An object instance that can be animated by an AnimationPlayer. class AnimatedObject: public ObjectInstance { public: - class Loader: public DataFile::ObjectLoader + class Loader: public DataFile::DerivedObjectLoader { public: Loader(AnimatedObject &); @@ -38,9 +39,9 @@ public: 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 &); + DEPRECATED void set_uniform(const std::string &, const KeyFrame::AnimatedUniform &); virtual const Matrix *get_matrix() const { return &matrix; }