OSDN Git Service
(root)
/
meshio
/
meshio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement pmd import.
[meshio/meshio.git]
/
include
/
pmd.h
diff --git
a/include/pmd.h
b/include/pmd.h
index
4453cd9
..
9bff08b
100644
(file)
--- a/
include/pmd.h
+++ b/
include/pmd.h
@@
-103,6
+103,8
@@
struct Material
unsigned int vertex_count;
//!
\83
e
\83
N
\83
X
\83
`
\83
\83
char texture[20];
unsigned int vertex_count;
//!
\83
e
\83
N
\83
X
\83
`
\83
\83
char texture[20];
+
+ std::wstring getTexture()const;
};
inline std::ostream &operator<<(std::ostream &os,
const Material &rhs)
};
inline std::ostream &operator<<(std::ostream &os,
const Material &rhs)
@@
-170,6
+172,7
@@
struct Bone
Bone()
: parent(0)
{}
Bone()
: parent(0)
{}
+ std::wstring getName()const;
};
inline std::ostream &operator<<(std::ostream &os,
const Bone &rhs)
};
inline std::ostream &operator<<(std::ostream &os,
const Bone &rhs)
@@
-240,6
+243,8
@@
struct Morph
std::vector<Vector3> pos_list;
//!
\89
p
\8c
ê
\96
¼
char english_name[20];
std::vector<Vector3> pos_list;
//!
\89
p
\8c
ê
\96
¼
char english_name[20];
+
+ std::wstring getName()const;
};
inline std::ostream &operator<<(std::ostream &os, const Morph &rhs)
{
};
inline std::ostream &operator<<(std::ostream &os, const Morph &rhs)
{
@@
-355,8
+360,11
@@
struct IO
IO();
~IO();
bool read(binary::IReader &reader);
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);
bool write(std::ostream &os);
+
+ const Vector2* getUV(int index)const;
};
inline std::ostream &operator<<(std::ostream &os, const IO &rhs)
{
};
inline std::ostream &operator<<(std::ostream &os, const IO &rhs)
{