OSDN Git Service

implement pmd import.
[meshio/meshio.git] / include / pmd.h
index 4453cd9..9bff08b 100644 (file)
@@ -103,6 +103,8 @@ struct Material
        unsigned int vertex_count;
        //! \83e\83N\83X\83`\83\83
        char texture[20];
+
+       std::wstring getTexture()const;
 };
 inline std::ostream &operator<<(std::ostream &os,
                const Material &rhs)
@@ -170,6 +172,7 @@ struct Bone
        Bone()
                : parent(0)
                {}
+       std::wstring getName()const;
 };
 inline std::ostream &operator<<(std::ostream &os,
                const Bone &rhs)
@@ -240,6 +243,8 @@ struct Morph
        std::vector<Vector3> pos_list;
        //! \89p\8cê\96¼
        char english_name[20];
+
+       std::wstring getName()const;
 };
 inline std::ostream &operator<<(std::ostream &os, const Morph &rhs)
 {
@@ -355,8 +360,11 @@ struct IO
        IO();
        ~IO();
        bool read(binary::IReader &reader);
-       bool read(const char *path);
+       //bool read(const char *path);
+       bool read(const wchar_t *path);
        bool write(std::ostream &os);
+
+       const Vector2* getUV(int index)const;
 };
 inline std::ostream &operator<<(std::ostream &os, const IO &rhs)
 {