public:
class Loader: public DataFile::CollectionObjectLoader<KeyFrame>
{
+ private:
+ std::string inline_base_name;
+
public:
- Loader(KeyFrame &);
- Loader(KeyFrame &, Collection &);
+ Loader(KeyFrame &k): Loader(k, 0) { }
+ Loader(KeyFrame &k, Collection &c): Loader(k, &c) { }
private:
- void init();
+ Loader(KeyFrame &, Collection *);
+
+ public:
+ void set_inline_base_name(const std::string &);
+ private:
void pose(const std::string &);
void pose_inline();
void position(float, float, float);
private:
Transform transform;
UniformMap uniforms;
- RefPtr<const Pose> pose;
+ const Pose *pose = 0;
public:
- KeyFrame();
- ~KeyFrame();
-
void set_transform(const Transform &);
void set_matrix(const Matrix &);
void set_uniform(const std::string &, const AnimatedUniform &);
const Transform &get_transform() const { return transform; }
Matrix get_matrix() const { return transform.to_matrix(); }
const UniformMap &get_uniforms() const { return uniforms; }
- const Pose *get_pose() const { return pose.get(); }
+ const Pose *get_pose() const { return pose; }
};
} // namespace GL