X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fpose.h;h=cbd8137bc4b861f5ccdb7d3e9b0411e754c57faa;hb=HEAD;hp=41fc3de596986940f7f60528d4af510615894557;hpb=164d77011ab4ebe76c9bf2b7ed8d8dd8ebc20e61;p=libs%2Fgl.git diff --git a/source/pose.h b/source/pose.h deleted file mode 100644 index 41fc3de5..00000000 --- a/source/pose.h +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef MSP_GL_POSE_H_ -#define MSP_GL_POSE_H_ - -#include -#include -#include "matrix.h" - -namespace Msp { -namespace GL { - -class Armature; - -class Pose -{ -public: - class Loader: public DataFile::CollectionObjectLoader - { - public: - Loader(Pose &, Collection &); - private: - void armature(const std::string &); - void link(const std::string &); - }; - -private: - struct Link - { - Matrix matrix; - Matrix local_matrix; - }; - - class LinkLoader: public DataFile::ObjectLoader - { - private: - unsigned link_index; - - public: - LinkLoader(Pose &, unsigned); - private: - void rotation(float, float, float, float); - }; - - const Armature *armature; - std::vector links; - -public: - Pose(); - Pose(const Armature &); - - void set_armature(const Armature &); - void rotate_link(unsigned, float, const Vector3 &); - const Matrix &get_link_matrix(unsigned) const; -}; - -} // namespace GL -} // namespace Msp - -#endif