7 $using namespace meshio;
26 unsigned char weight0;
28 unsigned char edge_flag;
42 unsigned char toon_index;
46 unsigned int vertex_count;
48 fixed_string<20> texture;
65 BONE_ROTATE_INFLUENCED,
79 fixed_string<20> name;
81 unsigned short parent_index;
83 unsigned short tail_index;
87 unsigned short ik_index;
91 fixed_string<20> english_name;
95 std::vector<Bone*> children;
104 unsigned short index;
106 unsigned short target;
108 unsigned char length;
110 unsigned short iterations;
111 //! IK値2。CCD-IK試行一回辺りの影響度
113 //! エフェクタに連動するボーン(基本的に親ボーンに遡る)
114 std::vector<unsigned short> children;
134 fixed_string<20> name;
136 unsigned int vertex_count;
140 std::vector<unsigned int> indices;
142 std::vector<Vector3> pos_list;
144 fixed_string<20> english_name;
149 fixed_string<50> name;
150 fixed_string<50> english_name;
168 RIGIDBODY_KINEMATICS=0,
172 RIGIDBODY_PHYSICS_WITH_BONE,
178 fixed_string<20> name;
179 //! 関連ボーン(ボーン追従とボーン位置合わせで必要)
180 unsigned short boneIndex;
184 unsigned short target;
186 SHAPE_TYPE shapeType;
196 //! 物理演算パラメータ(bullet)
198 float angularDamping;
202 PROCESS_TYPE processType;
205 //! Joint(物理演算でのJointとConstraintは同じ意味)
209 fixed_string<20> name;
219 Vector3 constraintPosMin;
220 Vector3 constraintPosMax;
222 Vector3 constraintRotMin;
223 Vector3 constraintRotMax;
233 fixed_string<20> name;
234 fixed_string<256> comment;
235 std::vector<Vertex> vertices;
236 std::vector<unsigned short> indices;
237 std::vector<Material> materials;
238 std::vector<Bone> bones;
239 std::vector<IK> ik_list;
240 std::vector<Morph> morph_list;
241 std::vector<unsigned short> face_list;
242 std::vector<BoneGroup> bone_group_list;
243 std::vector<std::pair<unsigned short, unsigned char> > bone_display_list;
244 std::array<fixed_string<100>, 10> toon_textures;
245 std::vector<RigidBody> rigidbodies;
246 std::vector<Constraint> constraints;
248 fixed_string<20> english_name;
249 fixed_string<256> english_comment;
252 bool read(const char *path);
253 bool write(const char *path);
256 typedef std::vector<Vertex> VertexVector;
286 std::string alphamap;
293 unsigned int index_count;
294 unsigned int indices[4];
295 unsigned int material_index;
316 std::vector<Vector3> vertices;
317 std::vector<Face> faces;
323 std::vector<Material> materials;
324 std::vector<Object> objects;
327 bool read(const char *path);
328 bool write(const char *path);
338 Vector2(float _x, float _y);
347 Vector3(float _x, float _y, float _z);
348 bool operator==(const Vector3 &rhs)const;
349 Vector3 operator+(const Vector3 &rhs);
350 Vector3 operator-(const Vector3 &rhs);
360 Vector4(float _x, float _y, float _z, float _w);
370 Quaternion(float _x, float _y, float _z, float _w);
371 float dot(const Quaternion &rhs);
384 TOLUA_TEMPLATE_BIND(T, 20, 50, 100, 256);
385 std::string str() const;
386 void assign(const std::string &src);