X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Farmature.h;h=9dc2f505a0e62378d022fd6a525043e32c956ca3;hp=68e3c6e82325a95d1c16ce0043ec943285f91413;hb=HEAD;hpb=b1d0b6bb1412d0c23d891a4804ddb60623d1f6b4 diff --git a/source/armature.h b/source/armature.h deleted file mode 100644 index 68e3c6e8..00000000 --- a/source/armature.h +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef MSP_GL_ARMATURE_H_ -#define MSP_GL_ARMATURE_H_ - -#include -#include -#include -#include "pose.h" -#include "vector.h" - -namespace Msp { -namespace GL { - -class Armature -{ -public: - class Loader: public DataFile::ObjectLoader - { - public: - Loader(Armature &); - private: - void link(const std::string &); - }; - - class Link - { - public: - class Loader: public DataFile::ObjectLoader - { - private: - const Armature &armature; - - public: - Loader(Link &, const Armature &); - private: - void base(float, float, float); - void parent(const std::string &); - }; - - private: - std::string name; - unsigned index; - const Link *parent; - Vector3 base; - - public: - Link(const std::string &, unsigned); - - void set_parent(const Link *); - void set_base(const Vector3 &); - - const std::string &get_name() const { return name; } - unsigned get_index() const { return index; } - const Link *get_parent() const { return parent; } - const Vector3 &get_base() const { return base; } - }; - -private: - std::list links; - -public: - Link &add_link(); - - const Link &get_link(unsigned) const; - const Link &get_link(const std::string &) const; - unsigned get_max_link_index() const; -}; - -} // namespace GL -} // namespace Msp - -#endif