X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=include%2Fpmd.h;fp=include%2Fpmd.h;h=9bff08bc68631557659c4a92988c292a5d98b877;hb=c44d9a343885c1840753f9fbaf7a6c7ff1a46eac;hp=4453cd9913c8996b89e6c46d7f9cccc04037f3b5;hpb=e4f3c8212f19802eaa3a2aa66c12304b5ecdb75b;p=meshio%2Fmeshio.git diff --git a/include/pmd.h b/include/pmd.h index 4453cd9..9bff08b 100644 --- a/include/pmd.h +++ b/include/pmd.h @@ -103,6 +103,8 @@ struct Material unsigned int vertex_count; //! ƒeƒNƒXƒ`ƒƒ 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 pos_list; //! ‰pŒê–¼ 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) {