]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animatedobject.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / animatedobject.h
index 74e59fc8a76071196baf10da16a3ab7598ab14bf..f9b8824e1832932786189a99a9b2ca8a58eb2f3d 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GL_ANIMATEDOBJECT_H_
 
 #include <vector>
+#include <msp/core/attributes.h>
 #include <msp/datafile/objectloader.h>
 #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<AnimatedObject>
+       class Loader: public DataFile::DerivedObjectLoader<AnimatedObject, ObjectInstance::Loader>
        {
        public:
                Loader(AnimatedObject &);
@@ -40,8 +41,7 @@ public:
        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; }