2 ** Lua binding: lmeshio
3 ** Generated automatically by tolua++-1.0.93(lua) on Sun May 01 00:10:15 2011
13 /* Exported function */
14 TOLUA_API int tolua_lmeshio_open (lua_State* tolua_S);
21 using namespace meshio;
23 /* function to release collected object via destructor */
26 static int tolua_collect_meshio__pmd__Bone (lua_State* tolua_S)
28 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
33 static int tolua_collect_meshio__pmd__IO (lua_State* tolua_S)
35 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
40 static int tolua_collect_meshio__Vector2 (lua_State* tolua_S)
42 meshio::Vector2* self = (meshio::Vector2*) tolua_tousertype(tolua_S,1,0);
47 static int tolua_collect_meshio__fRGBA (lua_State* tolua_S)
49 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
54 static int tolua_collect_meshio__mqo__IO (lua_State* tolua_S)
56 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
61 static int tolua_collect_meshio__Vector3 (lua_State* tolua_S)
63 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
68 static int tolua_collect_meshio__Vector4 (lua_State* tolua_S)
70 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
75 static int tolua_collect_meshio__Quaternion (lua_State* tolua_S)
77 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
82 static int tolua_collect_std__vector_meshio__pmd__Bone__ (lua_State* tolua_S)
84 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
89 static int tolua_collect_std__vector_unsigned_short_ (lua_State* tolua_S)
91 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
96 static int tolua_collect_std__vector_unsigned_int_ (lua_State* tolua_S)
98 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
103 static int tolua_collect_std__vector_meshio__Vector3_ (lua_State* tolua_S)
105 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
110 static int tolua_collect_std__vector_meshio__pmd__Vertex_ (lua_State* tolua_S)
112 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
117 static int tolua_collect_meshio__pmd__Vertex (lua_State* tolua_S)
119 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
124 static int tolua_collect_std__vector_meshio__pmd__Material_ (lua_State* tolua_S)
126 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
131 static int tolua_collect_meshio__pmd__Material (lua_State* tolua_S)
133 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
138 static int tolua_collect_std__vector_meshio__pmd__Bone_ (lua_State* tolua_S)
140 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
145 static int tolua_collect_std__vector_meshio__pmd__IK_ (lua_State* tolua_S)
147 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
152 static int tolua_collect_meshio__pmd__IK (lua_State* tolua_S)
154 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
159 static int tolua_collect_std__vector_meshio__pmd__Morph_ (lua_State* tolua_S)
161 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
166 static int tolua_collect_meshio__pmd__Morph (lua_State* tolua_S)
168 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
173 static int tolua_collect_std__vector_meshio__pmd__BoneGroup_ (lua_State* tolua_S)
175 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
180 static int tolua_collect_meshio__pmd__BoneGroup (lua_State* tolua_S)
182 meshio::pmd::BoneGroup* self = (meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,1,0);
187 static int tolua_collect_std__vector_std__pair_unsigned_short_unsigned_char___ (lua_State* tolua_S)
189 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
194 static int tolua_collect_std__pair_unsigned_short_unsigned_char_ (lua_State* tolua_S)
196 std::pair<unsigned short,unsigned char>* self = (std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,1,0);
201 static int tolua_collect_std__vector_meshio__pmd__RigidBody_ (lua_State* tolua_S)
203 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
208 static int tolua_collect_meshio__pmd__RigidBody (lua_State* tolua_S)
210 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
215 static int tolua_collect_std__vector_meshio__pmd__Constraint_ (lua_State* tolua_S)
217 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
222 static int tolua_collect_meshio__pmd__Constraint (lua_State* tolua_S)
224 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
229 static int tolua_collect_std__vector_meshio__mqo__Face_ (lua_State* tolua_S)
231 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
236 static int tolua_collect_meshio__mqo__Face (lua_State* tolua_S)
238 meshio::mqo::Face* self = (meshio::mqo::Face*) tolua_tousertype(tolua_S,1,0);
243 static int tolua_collect_std__vector_meshio__mqo__Material_ (lua_State* tolua_S)
245 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
250 static int tolua_collect_meshio__mqo__Material (lua_State* tolua_S)
252 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
257 static int tolua_collect_std__vector_meshio__mqo__Object_ (lua_State* tolua_S)
259 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
264 static int tolua_collect_meshio__mqo__Object (lua_State* tolua_S)
266 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
273 /* function to register type */
274 static void tolua_reg_types (lua_State* tolua_S)
276 tolua_usertype(tolua_S,"meshio::pmd::Vertex");
277 tolua_usertype(tolua_S,"meshio::pmd::Material");
278 tolua_usertype(tolua_S,"meshio::pmd::Bone");
279 tolua_usertype(tolua_S,"meshio::pmd::IK");
280 tolua_usertype(tolua_S,"meshio::pmd::Morph");
281 tolua_usertype(tolua_S,"meshio::pmd::BoneGroup");
282 tolua_usertype(tolua_S,"meshio::pmd::RigidBody");
283 tolua_usertype(tolua_S,"meshio::pmd::Constraint");
284 tolua_usertype(tolua_S,"meshio::pmd::IO");
285 tolua_usertype(tolua_S,"meshio::mqo::Scene");
286 tolua_usertype(tolua_S,"meshio::mqo::Material");
287 tolua_usertype(tolua_S,"meshio::mqo::Face");
288 tolua_usertype(tolua_S,"meshio::mqo::Object");
289 tolua_usertype(tolua_S,"meshio::mqo::IO");
290 tolua_usertype(tolua_S,"meshio::Vector2");
291 tolua_usertype(tolua_S,"meshio::Vector3");
292 tolua_usertype(tolua_S,"meshio::Vector4");
293 tolua_usertype(tolua_S,"meshio::Quaternion");
294 tolua_usertype(tolua_S,"meshio::fRGBA");
295 tolua_usertype(tolua_S,"meshio::fixed_string<20>");
296 tolua_usertype(tolua_S,"meshio::fixed_string<50>");
297 tolua_usertype(tolua_S,"meshio::fixed_string<100>");
298 tolua_usertype(tolua_S,"meshio::fixed_string<256>");
299 tolua_usertype(tolua_S,"fRGB");
300 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Bone*>");
301 tolua_usertype(tolua_S,"std::vector<unsigned short>");
302 tolua_usertype(tolua_S,"std::vector<unsigned int>");
303 tolua_usertype(tolua_S,"std::vector<meshio::Vector3>");
304 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Vertex>");
305 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Material>");
306 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Bone>");
307 tolua_usertype(tolua_S,"std::vector<meshio::pmd::IK>");
308 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Morph>");
309 tolua_usertype(tolua_S,"std::vector<meshio::pmd::BoneGroup>");
310 tolua_usertype(tolua_S,"std::vector<std::pair<unsigned short,unsigned char> >");
311 tolua_usertype(tolua_S,"std::array<meshio::fixed_string<100>,10>");
312 tolua_usertype(tolua_S,"std::vector<meshio::pmd::RigidBody>");
313 tolua_usertype(tolua_S,"std::vector<meshio::pmd::Constraint>");
314 tolua_usertype(tolua_S,"std::vector<meshio::mqo::Face>");
315 tolua_usertype(tolua_S,"std::vector<meshio::mqo::Material>");
316 tolua_usertype(tolua_S,"std::vector<meshio::mqo::Object>");
317 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>");
318 tolua_usertype(tolua_S,"std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>");
319 tolua_usertype(tolua_S,"std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>");
320 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>");
321 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>");
322 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>");
323 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>");
324 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>");
325 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>");
326 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>");
327 tolua_usertype(tolua_S,"std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>");
328 tolua_usertype(tolua_S,"std::pair<unsigned short,unsigned char>");
329 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>");
330 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>");
331 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>");
332 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>");
333 tolua_usertype(tolua_S,"std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>");
336 /* get function: pos of class meshio::pmd::Vertex */
337 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_pos
338 static int tolua_get_meshio__pmd__Vertex_pos(lua_State* tolua_S)
340 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
341 #ifndef TOLUA_RELEASE
342 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
344 tolua_pushusertype(tolua_S,(void*)&self->pos,"meshio::Vector3");
347 #endif //#ifndef TOLUA_DISABLE
349 /* set function: pos of class meshio::pmd::Vertex */
350 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_pos
351 static int tolua_set_meshio__pmd__Vertex_pos(lua_State* tolua_S)
353 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
354 #ifndef TOLUA_RELEASE
355 tolua_Error tolua_err;
356 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
357 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
358 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
360 self->pos = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
364 #endif //#ifndef TOLUA_DISABLE
366 /* get function: normal of class meshio::pmd::Vertex */
367 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_normal
368 static int tolua_get_meshio__pmd__Vertex_normal(lua_State* tolua_S)
370 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
371 #ifndef TOLUA_RELEASE
372 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'normal'",NULL);
374 tolua_pushusertype(tolua_S,(void*)&self->normal,"meshio::Vector3");
377 #endif //#ifndef TOLUA_DISABLE
379 /* set function: normal of class meshio::pmd::Vertex */
380 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_normal
381 static int tolua_set_meshio__pmd__Vertex_normal(lua_State* tolua_S)
383 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
384 #ifndef TOLUA_RELEASE
385 tolua_Error tolua_err;
386 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'normal'",NULL);
387 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
388 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
390 self->normal = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
394 #endif //#ifndef TOLUA_DISABLE
396 /* get function: uv of class meshio::pmd::Vertex */
397 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_uv
398 static int tolua_get_meshio__pmd__Vertex_uv(lua_State* tolua_S)
400 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
401 #ifndef TOLUA_RELEASE
402 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv'",NULL);
404 tolua_pushusertype(tolua_S,(void*)&self->uv,"meshio::Vector2");
407 #endif //#ifndef TOLUA_DISABLE
409 /* set function: uv of class meshio::pmd::Vertex */
410 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_uv
411 static int tolua_set_meshio__pmd__Vertex_uv(lua_State* tolua_S)
413 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
414 #ifndef TOLUA_RELEASE
415 tolua_Error tolua_err;
416 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'uv'",NULL);
417 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector2",0,&tolua_err)))
418 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
420 self->uv = *((meshio::Vector2*) tolua_tousertype(tolua_S,2,0))
424 #endif //#ifndef TOLUA_DISABLE
426 /* get function: bone0 of class meshio::pmd::Vertex */
427 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_unsigned_bone0
428 static int tolua_get_meshio__pmd__Vertex_unsigned_bone0(lua_State* tolua_S)
430 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
431 #ifndef TOLUA_RELEASE
432 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone0'",NULL);
434 tolua_pushnumber(tolua_S,(lua_Number)self->bone0);
437 #endif //#ifndef TOLUA_DISABLE
439 /* set function: bone0 of class meshio::pmd::Vertex */
440 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_unsigned_bone0
441 static int tolua_set_meshio__pmd__Vertex_unsigned_bone0(lua_State* tolua_S)
443 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
444 #ifndef TOLUA_RELEASE
445 tolua_Error tolua_err;
446 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone0'",NULL);
447 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
448 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
450 self->bone0 = ((unsigned short) tolua_tonumber(tolua_S,2,0))
454 #endif //#ifndef TOLUA_DISABLE
456 /* get function: bone1 of class meshio::pmd::Vertex */
457 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_unsigned_bone1
458 static int tolua_get_meshio__pmd__Vertex_unsigned_bone1(lua_State* tolua_S)
460 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
461 #ifndef TOLUA_RELEASE
462 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone1'",NULL);
464 tolua_pushnumber(tolua_S,(lua_Number)self->bone1);
467 #endif //#ifndef TOLUA_DISABLE
469 /* set function: bone1 of class meshio::pmd::Vertex */
470 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_unsigned_bone1
471 static int tolua_set_meshio__pmd__Vertex_unsigned_bone1(lua_State* tolua_S)
473 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
474 #ifndef TOLUA_RELEASE
475 tolua_Error tolua_err;
476 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone1'",NULL);
477 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
478 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
480 self->bone1 = ((unsigned short) tolua_tonumber(tolua_S,2,0))
484 #endif //#ifndef TOLUA_DISABLE
486 /* get function: weight0 of class meshio::pmd::Vertex */
487 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_unsigned_weight0
488 static int tolua_get_meshio__pmd__Vertex_unsigned_weight0(lua_State* tolua_S)
490 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
491 #ifndef TOLUA_RELEASE
492 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight0'",NULL);
494 tolua_pushnumber(tolua_S,(lua_Number)self->weight0);
497 #endif //#ifndef TOLUA_DISABLE
499 /* set function: weight0 of class meshio::pmd::Vertex */
500 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_unsigned_weight0
501 static int tolua_set_meshio__pmd__Vertex_unsigned_weight0(lua_State* tolua_S)
503 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
504 #ifndef TOLUA_RELEASE
505 tolua_Error tolua_err;
506 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight0'",NULL);
507 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
508 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
510 self->weight0 = ((unsigned char) tolua_tonumber(tolua_S,2,0))
514 #endif //#ifndef TOLUA_DISABLE
516 /* get function: edge_flag of class meshio::pmd::Vertex */
517 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Vertex_unsigned_edge_flag
518 static int tolua_get_meshio__pmd__Vertex_unsigned_edge_flag(lua_State* tolua_S)
520 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
521 #ifndef TOLUA_RELEASE
522 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'edge_flag'",NULL);
524 tolua_pushnumber(tolua_S,(lua_Number)self->edge_flag);
527 #endif //#ifndef TOLUA_DISABLE
529 /* set function: edge_flag of class meshio::pmd::Vertex */
530 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Vertex_unsigned_edge_flag
531 static int tolua_set_meshio__pmd__Vertex_unsigned_edge_flag(lua_State* tolua_S)
533 meshio::pmd::Vertex* self = (meshio::pmd::Vertex*) tolua_tousertype(tolua_S,1,0);
534 #ifndef TOLUA_RELEASE
535 tolua_Error tolua_err;
536 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'edge_flag'",NULL);
537 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
538 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
540 self->edge_flag = ((unsigned char) tolua_tonumber(tolua_S,2,0))
544 #endif //#ifndef TOLUA_DISABLE
546 /* get function: diffuse of class meshio::pmd::Material */
547 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_diffuse
548 static int tolua_get_meshio__pmd__Material_diffuse(lua_State* tolua_S)
550 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
551 #ifndef TOLUA_RELEASE
552 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'diffuse'",NULL);
554 tolua_pushusertype(tolua_S,(void*)&self->diffuse,"meshio::fRGBA");
557 #endif //#ifndef TOLUA_DISABLE
559 /* set function: diffuse of class meshio::pmd::Material */
560 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_diffuse
561 static int tolua_set_meshio__pmd__Material_diffuse(lua_State* tolua_S)
563 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
564 #ifndef TOLUA_RELEASE
565 tolua_Error tolua_err;
566 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'diffuse'",NULL);
567 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fRGBA",0,&tolua_err)))
568 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
570 self->diffuse = *((meshio::fRGBA*) tolua_tousertype(tolua_S,2,0))
574 #endif //#ifndef TOLUA_DISABLE
576 /* get function: shinness of class meshio::pmd::Material */
577 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_shinness
578 static int tolua_get_meshio__pmd__Material_shinness(lua_State* tolua_S)
580 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
581 #ifndef TOLUA_RELEASE
582 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shinness'",NULL);
584 tolua_pushnumber(tolua_S,(lua_Number)self->shinness);
587 #endif //#ifndef TOLUA_DISABLE
589 /* set function: shinness of class meshio::pmd::Material */
590 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_shinness
591 static int tolua_set_meshio__pmd__Material_shinness(lua_State* tolua_S)
593 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
594 #ifndef TOLUA_RELEASE
595 tolua_Error tolua_err;
596 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shinness'",NULL);
597 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
598 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
600 self->shinness = ((float) tolua_tonumber(tolua_S,2,0))
604 #endif //#ifndef TOLUA_DISABLE
606 /* get function: specular of class meshio::pmd::Material */
607 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_specular
608 static int tolua_get_meshio__pmd__Material_specular(lua_State* tolua_S)
610 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
611 #ifndef TOLUA_RELEASE
612 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'specular'",NULL);
614 tolua_pushusertype(tolua_S,(void*)&self->specular,"fRGB");
617 #endif //#ifndef TOLUA_DISABLE
619 /* set function: specular of class meshio::pmd::Material */
620 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_specular
621 static int tolua_set_meshio__pmd__Material_specular(lua_State* tolua_S)
623 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
624 #ifndef TOLUA_RELEASE
625 tolua_Error tolua_err;
626 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'specular'",NULL);
627 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"fRGB",0,&tolua_err)))
628 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
630 self->specular = *((fRGB*) tolua_tousertype(tolua_S,2,0))
634 #endif //#ifndef TOLUA_DISABLE
636 /* get function: ambient of class meshio::pmd::Material */
637 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_ambient
638 static int tolua_get_meshio__pmd__Material_ambient(lua_State* tolua_S)
640 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
641 #ifndef TOLUA_RELEASE
642 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
644 tolua_pushusertype(tolua_S,(void*)&self->ambient,"fRGB");
647 #endif //#ifndef TOLUA_DISABLE
649 /* set function: ambient of class meshio::pmd::Material */
650 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_ambient
651 static int tolua_set_meshio__pmd__Material_ambient(lua_State* tolua_S)
653 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
654 #ifndef TOLUA_RELEASE
655 tolua_Error tolua_err;
656 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
657 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"fRGB",0,&tolua_err)))
658 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
660 self->ambient = *((fRGB*) tolua_tousertype(tolua_S,2,0))
664 #endif //#ifndef TOLUA_DISABLE
666 /* get function: toon_index of class meshio::pmd::Material */
667 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_unsigned_toon_index
668 static int tolua_get_meshio__pmd__Material_unsigned_toon_index(lua_State* tolua_S)
670 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
671 #ifndef TOLUA_RELEASE
672 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'toon_index'",NULL);
674 tolua_pushnumber(tolua_S,(lua_Number)self->toon_index);
677 #endif //#ifndef TOLUA_DISABLE
679 /* set function: toon_index of class meshio::pmd::Material */
680 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_unsigned_toon_index
681 static int tolua_set_meshio__pmd__Material_unsigned_toon_index(lua_State* tolua_S)
683 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
684 #ifndef TOLUA_RELEASE
685 tolua_Error tolua_err;
686 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'toon_index'",NULL);
687 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
688 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
690 self->toon_index = ((unsigned char) tolua_tonumber(tolua_S,2,0))
694 #endif //#ifndef TOLUA_DISABLE
696 /* get function: flag of class meshio::pmd::Material */
697 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_unsigned_flag
698 static int tolua_get_meshio__pmd__Material_unsigned_flag(lua_State* tolua_S)
700 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
701 #ifndef TOLUA_RELEASE
702 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'flag'",NULL);
704 tolua_pushnumber(tolua_S,(lua_Number)self->flag);
707 #endif //#ifndef TOLUA_DISABLE
709 /* set function: flag of class meshio::pmd::Material */
710 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_unsigned_flag
711 static int tolua_set_meshio__pmd__Material_unsigned_flag(lua_State* tolua_S)
713 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
714 #ifndef TOLUA_RELEASE
715 tolua_Error tolua_err;
716 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'flag'",NULL);
717 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
718 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
720 self->flag = ((unsigned char) tolua_tonumber(tolua_S,2,0))
724 #endif //#ifndef TOLUA_DISABLE
726 /* get function: vertex_count of class meshio::pmd::Material */
727 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_unsigned_vertex_count
728 static int tolua_get_meshio__pmd__Material_unsigned_vertex_count(lua_State* tolua_S)
730 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
731 #ifndef TOLUA_RELEASE
732 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertex_count'",NULL);
734 tolua_pushnumber(tolua_S,(lua_Number)self->vertex_count);
737 #endif //#ifndef TOLUA_DISABLE
739 /* set function: vertex_count of class meshio::pmd::Material */
740 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_unsigned_vertex_count
741 static int tolua_set_meshio__pmd__Material_unsigned_vertex_count(lua_State* tolua_S)
743 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
744 #ifndef TOLUA_RELEASE
745 tolua_Error tolua_err;
746 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertex_count'",NULL);
747 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
748 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
750 self->vertex_count = ((unsigned int) tolua_tonumber(tolua_S,2,0))
754 #endif //#ifndef TOLUA_DISABLE
756 /* get function: texture of class meshio::pmd::Material */
757 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Material_texture
758 static int tolua_get_meshio__pmd__Material_texture(lua_State* tolua_S)
760 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
761 #ifndef TOLUA_RELEASE
762 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'texture'",NULL);
764 tolua_pushusertype(tolua_S,(void*)&self->texture,"meshio::fixed_string<20>");
767 #endif //#ifndef TOLUA_DISABLE
769 /* set function: texture of class meshio::pmd::Material */
770 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Material_texture
771 static int tolua_set_meshio__pmd__Material_texture(lua_State* tolua_S)
773 meshio::pmd::Material* self = (meshio::pmd::Material*) tolua_tousertype(tolua_S,1,0);
774 #ifndef TOLUA_RELEASE
775 tolua_Error tolua_err;
776 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'texture'",NULL);
777 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
778 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
780 self->texture = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
784 #endif //#ifndef TOLUA_DISABLE
786 /* get function: name of class meshio::pmd::Bone */
787 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_name
788 static int tolua_get_meshio__pmd__Bone_name(lua_State* tolua_S)
790 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
791 #ifndef TOLUA_RELEASE
792 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
794 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<20>");
797 #endif //#ifndef TOLUA_DISABLE
799 /* set function: name of class meshio::pmd::Bone */
800 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_name
801 static int tolua_set_meshio__pmd__Bone_name(lua_State* tolua_S)
803 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
804 #ifndef TOLUA_RELEASE
805 tolua_Error tolua_err;
806 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
807 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
808 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
810 self->name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
814 #endif //#ifndef TOLUA_DISABLE
816 /* get function: parent_index of class meshio::pmd::Bone */
817 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_unsigned_parent_index
818 static int tolua_get_meshio__pmd__Bone_unsigned_parent_index(lua_State* tolua_S)
820 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
821 #ifndef TOLUA_RELEASE
822 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parent_index'",NULL);
824 tolua_pushnumber(tolua_S,(lua_Number)self->parent_index);
827 #endif //#ifndef TOLUA_DISABLE
829 /* set function: parent_index of class meshio::pmd::Bone */
830 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_unsigned_parent_index
831 static int tolua_set_meshio__pmd__Bone_unsigned_parent_index(lua_State* tolua_S)
833 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
834 #ifndef TOLUA_RELEASE
835 tolua_Error tolua_err;
836 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parent_index'",NULL);
837 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
838 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
840 self->parent_index = ((unsigned short) tolua_tonumber(tolua_S,2,0))
844 #endif //#ifndef TOLUA_DISABLE
846 /* get function: tail_index of class meshio::pmd::Bone */
847 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_unsigned_tail_index
848 static int tolua_get_meshio__pmd__Bone_unsigned_tail_index(lua_State* tolua_S)
850 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
851 #ifndef TOLUA_RELEASE
852 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'tail_index'",NULL);
854 tolua_pushnumber(tolua_S,(lua_Number)self->tail_index);
857 #endif //#ifndef TOLUA_DISABLE
859 /* set function: tail_index of class meshio::pmd::Bone */
860 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_unsigned_tail_index
861 static int tolua_set_meshio__pmd__Bone_unsigned_tail_index(lua_State* tolua_S)
863 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
864 #ifndef TOLUA_RELEASE
865 tolua_Error tolua_err;
866 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'tail_index'",NULL);
867 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
868 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
870 self->tail_index = ((unsigned short) tolua_tonumber(tolua_S,2,0))
874 #endif //#ifndef TOLUA_DISABLE
876 /* get function: type of class meshio::pmd::Bone */
877 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_type
878 static int tolua_get_meshio__pmd__Bone_type(lua_State* tolua_S)
880 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
881 #ifndef TOLUA_RELEASE
882 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type'",NULL);
884 tolua_pushnumber(tolua_S,(lua_Number)self->type);
887 #endif //#ifndef TOLUA_DISABLE
889 /* set function: type of class meshio::pmd::Bone */
890 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_type
891 static int tolua_set_meshio__pmd__Bone_type(lua_State* tolua_S)
893 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
894 #ifndef TOLUA_RELEASE
895 tolua_Error tolua_err;
896 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type'",NULL);
897 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
898 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
900 self->type = ((meshio::pmd::BONE_TYPE) (int) tolua_tonumber(tolua_S,2,0))
904 #endif //#ifndef TOLUA_DISABLE
906 /* get function: ik_index of class meshio::pmd::Bone */
907 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_unsigned_ik_index
908 static int tolua_get_meshio__pmd__Bone_unsigned_ik_index(lua_State* tolua_S)
910 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
911 #ifndef TOLUA_RELEASE
912 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ik_index'",NULL);
914 tolua_pushnumber(tolua_S,(lua_Number)self->ik_index);
917 #endif //#ifndef TOLUA_DISABLE
919 /* set function: ik_index of class meshio::pmd::Bone */
920 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_unsigned_ik_index
921 static int tolua_set_meshio__pmd__Bone_unsigned_ik_index(lua_State* tolua_S)
923 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
924 #ifndef TOLUA_RELEASE
925 tolua_Error tolua_err;
926 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ik_index'",NULL);
927 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
928 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
930 self->ik_index = ((unsigned short) tolua_tonumber(tolua_S,2,0))
934 #endif //#ifndef TOLUA_DISABLE
936 /* get function: pos of class meshio::pmd::Bone */
937 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_pos
938 static int tolua_get_meshio__pmd__Bone_pos(lua_State* tolua_S)
940 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
941 #ifndef TOLUA_RELEASE
942 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
944 tolua_pushusertype(tolua_S,(void*)&self->pos,"meshio::Vector3");
947 #endif //#ifndef TOLUA_DISABLE
949 /* set function: pos of class meshio::pmd::Bone */
950 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_pos
951 static int tolua_set_meshio__pmd__Bone_pos(lua_State* tolua_S)
953 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
954 #ifndef TOLUA_RELEASE
955 tolua_Error tolua_err;
956 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
957 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
958 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
960 self->pos = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
964 #endif //#ifndef TOLUA_DISABLE
966 /* get function: english_name of class meshio::pmd::Bone */
967 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_english_name
968 static int tolua_get_meshio__pmd__Bone_english_name(lua_State* tolua_S)
970 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
971 #ifndef TOLUA_RELEASE
972 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
974 tolua_pushusertype(tolua_S,(void*)&self->english_name,"meshio::fixed_string<20>");
977 #endif //#ifndef TOLUA_DISABLE
979 /* set function: english_name of class meshio::pmd::Bone */
980 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_english_name
981 static int tolua_set_meshio__pmd__Bone_english_name(lua_State* tolua_S)
983 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
984 #ifndef TOLUA_RELEASE
985 tolua_Error tolua_err;
986 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
987 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
988 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
990 self->english_name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
994 #endif //#ifndef TOLUA_DISABLE
996 /* get function: parent of class meshio::pmd::Bone */
997 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_parent_ptr
998 static int tolua_get_meshio__pmd__Bone_parent_ptr(lua_State* tolua_S)
1000 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1001 #ifndef TOLUA_RELEASE
1002 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parent'",NULL);
1004 tolua_pushusertype(tolua_S,(void*)self->parent,"meshio::pmd::Bone");
1007 #endif //#ifndef TOLUA_DISABLE
1009 /* set function: parent of class meshio::pmd::Bone */
1010 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_parent_ptr
1011 static int tolua_set_meshio__pmd__Bone_parent_ptr(lua_State* tolua_S)
1013 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1014 #ifndef TOLUA_RELEASE
1015 tolua_Error tolua_err;
1016 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'parent'",NULL);
1017 if (!tolua_isusertype(tolua_S,2,"meshio::pmd::Bone",0,&tolua_err))
1018 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1020 self->parent = ((meshio::pmd::Bone*) tolua_tousertype(tolua_S,2,0))
1024 #endif //#ifndef TOLUA_DISABLE
1026 /* get function: tail of class meshio::pmd::Bone */
1027 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_tail
1028 static int tolua_get_meshio__pmd__Bone_tail(lua_State* tolua_S)
1030 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1031 #ifndef TOLUA_RELEASE
1032 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'tail'",NULL);
1034 tolua_pushusertype(tolua_S,(void*)&self->tail,"meshio::Vector3");
1037 #endif //#ifndef TOLUA_DISABLE
1039 /* set function: tail of class meshio::pmd::Bone */
1040 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_tail
1041 static int tolua_set_meshio__pmd__Bone_tail(lua_State* tolua_S)
1043 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1044 #ifndef TOLUA_RELEASE
1045 tolua_Error tolua_err;
1046 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'tail'",NULL);
1047 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
1048 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1050 self->tail = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
1054 #endif //#ifndef TOLUA_DISABLE
1056 /* get function: children of class meshio::pmd::Bone */
1057 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_children
1058 static int tolua_get_meshio__pmd__Bone_children(lua_State* tolua_S)
1060 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1061 #ifndef TOLUA_RELEASE
1062 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'children'",NULL);
1064 tolua_pushusertype(tolua_S,(void*)&self->children,"std::vector<meshio::pmd::Bone*>");
1067 #endif //#ifndef TOLUA_DISABLE
1069 /* set function: children of class meshio::pmd::Bone */
1070 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_children
1071 static int tolua_set_meshio__pmd__Bone_children(lua_State* tolua_S)
1073 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1074 #ifndef TOLUA_RELEASE
1075 tolua_Error tolua_err;
1076 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'children'",NULL);
1077 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Bone*>",0,&tolua_err)))
1078 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1080 self->children = *((std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,2,0))
1084 #endif //#ifndef TOLUA_DISABLE
1086 /* get function: index of class meshio::pmd::Bone */
1087 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Bone_unsigned_index
1088 static int tolua_get_meshio__pmd__Bone_unsigned_index(lua_State* tolua_S)
1090 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1091 #ifndef TOLUA_RELEASE
1092 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
1094 tolua_pushnumber(tolua_S,(lua_Number)self->index);
1097 #endif //#ifndef TOLUA_DISABLE
1099 /* set function: index of class meshio::pmd::Bone */
1100 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Bone_unsigned_index
1101 static int tolua_set_meshio__pmd__Bone_unsigned_index(lua_State* tolua_S)
1103 meshio::pmd::Bone* self = (meshio::pmd::Bone*) tolua_tousertype(tolua_S,1,0);
1104 #ifndef TOLUA_RELEASE
1105 tolua_Error tolua_err;
1106 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
1107 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1108 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1110 self->index = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1114 #endif //#ifndef TOLUA_DISABLE
1116 /* method: new of class meshio::pmd::Bone */
1117 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_Bone_new00
1118 static int tolua_lmeshio_meshio_pmd_Bone_new00(lua_State* tolua_S)
1120 #ifndef TOLUA_RELEASE
1121 tolua_Error tolua_err;
1123 !tolua_isusertable(tolua_S,1,"meshio::pmd::Bone",0,&tolua_err) ||
1124 !tolua_isnoobj(tolua_S,2,&tolua_err)
1133 meshio::pmd::Bone* tolua_ret = (meshio::pmd::Bone*) Mtolua_new((meshio::pmd::Bone)());
1134 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::pmd::Bone");
1139 #ifndef TOLUA_RELEASE
1141 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
1145 #endif //#ifndef TOLUA_DISABLE
1147 /* method: new_local of class meshio::pmd::Bone */
1148 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_Bone_new00_local
1149 static int tolua_lmeshio_meshio_pmd_Bone_new00_local(lua_State* tolua_S)
1151 #ifndef TOLUA_RELEASE
1152 tolua_Error tolua_err;
1154 !tolua_isusertable(tolua_S,1,"meshio::pmd::Bone",0,&tolua_err) ||
1155 !tolua_isnoobj(tolua_S,2,&tolua_err)
1164 meshio::pmd::Bone* tolua_ret = (meshio::pmd::Bone*) Mtolua_new((meshio::pmd::Bone)());
1165 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::pmd::Bone");
1166 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
1171 #ifndef TOLUA_RELEASE
1173 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
1177 #endif //#ifndef TOLUA_DISABLE
1179 /* get function: index of class meshio::pmd::IK */
1180 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_unsigned_index
1181 static int tolua_get_meshio__pmd__IK_unsigned_index(lua_State* tolua_S)
1183 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1184 #ifndef TOLUA_RELEASE
1185 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
1187 tolua_pushnumber(tolua_S,(lua_Number)self->index);
1190 #endif //#ifndef TOLUA_DISABLE
1192 /* set function: index of class meshio::pmd::IK */
1193 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_unsigned_index
1194 static int tolua_set_meshio__pmd__IK_unsigned_index(lua_State* tolua_S)
1196 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1197 #ifndef TOLUA_RELEASE
1198 tolua_Error tolua_err;
1199 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index'",NULL);
1200 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1201 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1203 self->index = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1207 #endif //#ifndef TOLUA_DISABLE
1209 /* get function: target of class meshio::pmd::IK */
1210 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_unsigned_target
1211 static int tolua_get_meshio__pmd__IK_unsigned_target(lua_State* tolua_S)
1213 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1214 #ifndef TOLUA_RELEASE
1215 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'target'",NULL);
1217 tolua_pushnumber(tolua_S,(lua_Number)self->target);
1220 #endif //#ifndef TOLUA_DISABLE
1222 /* set function: target of class meshio::pmd::IK */
1223 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_unsigned_target
1224 static int tolua_set_meshio__pmd__IK_unsigned_target(lua_State* tolua_S)
1226 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1227 #ifndef TOLUA_RELEASE
1228 tolua_Error tolua_err;
1229 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'target'",NULL);
1230 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1231 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1233 self->target = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1237 #endif //#ifndef TOLUA_DISABLE
1239 /* get function: length of class meshio::pmd::IK */
1240 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_unsigned_length
1241 static int tolua_get_meshio__pmd__IK_unsigned_length(lua_State* tolua_S)
1243 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1244 #ifndef TOLUA_RELEASE
1245 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'length'",NULL);
1247 tolua_pushnumber(tolua_S,(lua_Number)self->length);
1250 #endif //#ifndef TOLUA_DISABLE
1252 /* set function: length of class meshio::pmd::IK */
1253 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_unsigned_length
1254 static int tolua_set_meshio__pmd__IK_unsigned_length(lua_State* tolua_S)
1256 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1257 #ifndef TOLUA_RELEASE
1258 tolua_Error tolua_err;
1259 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'length'",NULL);
1260 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1261 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1263 self->length = ((unsigned char) tolua_tonumber(tolua_S,2,0))
1267 #endif //#ifndef TOLUA_DISABLE
1269 /* get function: iterations of class meshio::pmd::IK */
1270 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_unsigned_iterations
1271 static int tolua_get_meshio__pmd__IK_unsigned_iterations(lua_State* tolua_S)
1273 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1274 #ifndef TOLUA_RELEASE
1275 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'iterations'",NULL);
1277 tolua_pushnumber(tolua_S,(lua_Number)self->iterations);
1280 #endif //#ifndef TOLUA_DISABLE
1282 /* set function: iterations of class meshio::pmd::IK */
1283 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_unsigned_iterations
1284 static int tolua_set_meshio__pmd__IK_unsigned_iterations(lua_State* tolua_S)
1286 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1287 #ifndef TOLUA_RELEASE
1288 tolua_Error tolua_err;
1289 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'iterations'",NULL);
1290 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1291 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1293 self->iterations = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1297 #endif //#ifndef TOLUA_DISABLE
1299 /* get function: weight of class meshio::pmd::IK */
1300 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_weight
1301 static int tolua_get_meshio__pmd__IK_weight(lua_State* tolua_S)
1303 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1304 #ifndef TOLUA_RELEASE
1305 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight'",NULL);
1307 tolua_pushnumber(tolua_S,(lua_Number)self->weight);
1310 #endif //#ifndef TOLUA_DISABLE
1312 /* set function: weight of class meshio::pmd::IK */
1313 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_weight
1314 static int tolua_set_meshio__pmd__IK_weight(lua_State* tolua_S)
1316 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1317 #ifndef TOLUA_RELEASE
1318 tolua_Error tolua_err;
1319 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight'",NULL);
1320 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1321 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1323 self->weight = ((float) tolua_tonumber(tolua_S,2,0))
1327 #endif //#ifndef TOLUA_DISABLE
1329 /* get function: children of class meshio::pmd::IK */
1330 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IK_children
1331 static int tolua_get_meshio__pmd__IK_children(lua_State* tolua_S)
1333 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1334 #ifndef TOLUA_RELEASE
1335 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'children'",NULL);
1337 tolua_pushusertype(tolua_S,(void*)&self->children,"std::vector<unsigned short>");
1340 #endif //#ifndef TOLUA_DISABLE
1342 /* set function: children of class meshio::pmd::IK */
1343 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IK_children
1344 static int tolua_set_meshio__pmd__IK_children(lua_State* tolua_S)
1346 meshio::pmd::IK* self = (meshio::pmd::IK*) tolua_tousertype(tolua_S,1,0);
1347 #ifndef TOLUA_RELEASE
1348 tolua_Error tolua_err;
1349 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'children'",NULL);
1350 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<unsigned short>",0,&tolua_err)))
1351 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1353 self->children = *((std::vector<unsigned short>*) tolua_tousertype(tolua_S,2,0))
1357 #endif //#ifndef TOLUA_DISABLE
1359 /* get function: name of class meshio::pmd::Morph */
1360 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_name
1361 static int tolua_get_meshio__pmd__Morph_name(lua_State* tolua_S)
1363 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1364 #ifndef TOLUA_RELEASE
1365 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1367 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<20>");
1370 #endif //#ifndef TOLUA_DISABLE
1372 /* set function: name of class meshio::pmd::Morph */
1373 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_name
1374 static int tolua_set_meshio__pmd__Morph_name(lua_State* tolua_S)
1376 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1377 #ifndef TOLUA_RELEASE
1378 tolua_Error tolua_err;
1379 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1380 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
1381 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1383 self->name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
1387 #endif //#ifndef TOLUA_DISABLE
1389 /* get function: vertex_count of class meshio::pmd::Morph */
1390 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_unsigned_vertex_count
1391 static int tolua_get_meshio__pmd__Morph_unsigned_vertex_count(lua_State* tolua_S)
1393 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1394 #ifndef TOLUA_RELEASE
1395 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertex_count'",NULL);
1397 tolua_pushnumber(tolua_S,(lua_Number)self->vertex_count);
1400 #endif //#ifndef TOLUA_DISABLE
1402 /* set function: vertex_count of class meshio::pmd::Morph */
1403 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_unsigned_vertex_count
1404 static int tolua_set_meshio__pmd__Morph_unsigned_vertex_count(lua_State* tolua_S)
1406 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1407 #ifndef TOLUA_RELEASE
1408 tolua_Error tolua_err;
1409 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertex_count'",NULL);
1410 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1411 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1413 self->vertex_count = ((unsigned int) tolua_tonumber(tolua_S,2,0))
1417 #endif //#ifndef TOLUA_DISABLE
1419 /* get function: type of class meshio::pmd::Morph */
1420 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_unsigned_type
1421 static int tolua_get_meshio__pmd__Morph_unsigned_type(lua_State* tolua_S)
1423 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1424 #ifndef TOLUA_RELEASE
1425 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type'",NULL);
1427 tolua_pushnumber(tolua_S,(lua_Number)self->type);
1430 #endif //#ifndef TOLUA_DISABLE
1432 /* set function: type of class meshio::pmd::Morph */
1433 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_unsigned_type
1434 static int tolua_set_meshio__pmd__Morph_unsigned_type(lua_State* tolua_S)
1436 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1437 #ifndef TOLUA_RELEASE
1438 tolua_Error tolua_err;
1439 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'type'",NULL);
1440 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1441 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1443 self->type = ((unsigned char) tolua_tonumber(tolua_S,2,0))
1447 #endif //#ifndef TOLUA_DISABLE
1449 /* get function: indices of class meshio::pmd::Morph */
1450 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_indices
1451 static int tolua_get_meshio__pmd__Morph_indices(lua_State* tolua_S)
1453 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1454 #ifndef TOLUA_RELEASE
1455 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'indices'",NULL);
1457 tolua_pushusertype(tolua_S,(void*)&self->indices,"std::vector<unsigned int>");
1460 #endif //#ifndef TOLUA_DISABLE
1462 /* set function: indices of class meshio::pmd::Morph */
1463 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_indices
1464 static int tolua_set_meshio__pmd__Morph_indices(lua_State* tolua_S)
1466 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1467 #ifndef TOLUA_RELEASE
1468 tolua_Error tolua_err;
1469 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'indices'",NULL);
1470 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<unsigned int>",0,&tolua_err)))
1471 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1473 self->indices = *((std::vector<unsigned int>*) tolua_tousertype(tolua_S,2,0))
1477 #endif //#ifndef TOLUA_DISABLE
1479 /* get function: pos_list of class meshio::pmd::Morph */
1480 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_pos_list
1481 static int tolua_get_meshio__pmd__Morph_pos_list(lua_State* tolua_S)
1483 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1484 #ifndef TOLUA_RELEASE
1485 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos_list'",NULL);
1487 tolua_pushusertype(tolua_S,(void*)&self->pos_list,"std::vector<meshio::Vector3>");
1490 #endif //#ifndef TOLUA_DISABLE
1492 /* set function: pos_list of class meshio::pmd::Morph */
1493 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_pos_list
1494 static int tolua_set_meshio__pmd__Morph_pos_list(lua_State* tolua_S)
1496 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1497 #ifndef TOLUA_RELEASE
1498 tolua_Error tolua_err;
1499 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos_list'",NULL);
1500 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::Vector3>",0,&tolua_err)))
1501 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1503 self->pos_list = *((std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,2,0))
1507 #endif //#ifndef TOLUA_DISABLE
1509 /* get function: english_name of class meshio::pmd::Morph */
1510 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Morph_english_name
1511 static int tolua_get_meshio__pmd__Morph_english_name(lua_State* tolua_S)
1513 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1514 #ifndef TOLUA_RELEASE
1515 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
1517 tolua_pushusertype(tolua_S,(void*)&self->english_name,"meshio::fixed_string<20>");
1520 #endif //#ifndef TOLUA_DISABLE
1522 /* set function: english_name of class meshio::pmd::Morph */
1523 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Morph_english_name
1524 static int tolua_set_meshio__pmd__Morph_english_name(lua_State* tolua_S)
1526 meshio::pmd::Morph* self = (meshio::pmd::Morph*) tolua_tousertype(tolua_S,1,0);
1527 #ifndef TOLUA_RELEASE
1528 tolua_Error tolua_err;
1529 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
1530 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
1531 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1533 self->english_name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
1537 #endif //#ifndef TOLUA_DISABLE
1539 /* get function: name of class meshio::pmd::BoneGroup */
1540 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__BoneGroup_name
1541 static int tolua_get_meshio__pmd__BoneGroup_name(lua_State* tolua_S)
1543 meshio::pmd::BoneGroup* self = (meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,1,0);
1544 #ifndef TOLUA_RELEASE
1545 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1547 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<50>");
1550 #endif //#ifndef TOLUA_DISABLE
1552 /* set function: name of class meshio::pmd::BoneGroup */
1553 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__BoneGroup_name
1554 static int tolua_set_meshio__pmd__BoneGroup_name(lua_State* tolua_S)
1556 meshio::pmd::BoneGroup* self = (meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,1,0);
1557 #ifndef TOLUA_RELEASE
1558 tolua_Error tolua_err;
1559 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1560 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<50>",0,&tolua_err)))
1561 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1563 self->name = *((meshio::fixed_string<50>*) tolua_tousertype(tolua_S,2,0))
1567 #endif //#ifndef TOLUA_DISABLE
1569 /* get function: english_name of class meshio::pmd::BoneGroup */
1570 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__BoneGroup_english_name
1571 static int tolua_get_meshio__pmd__BoneGroup_english_name(lua_State* tolua_S)
1573 meshio::pmd::BoneGroup* self = (meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,1,0);
1574 #ifndef TOLUA_RELEASE
1575 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
1577 tolua_pushusertype(tolua_S,(void*)&self->english_name,"meshio::fixed_string<50>");
1580 #endif //#ifndef TOLUA_DISABLE
1582 /* set function: english_name of class meshio::pmd::BoneGroup */
1583 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__BoneGroup_english_name
1584 static int tolua_set_meshio__pmd__BoneGroup_english_name(lua_State* tolua_S)
1586 meshio::pmd::BoneGroup* self = (meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,1,0);
1587 #ifndef TOLUA_RELEASE
1588 tolua_Error tolua_err;
1589 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
1590 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<50>",0,&tolua_err)))
1591 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1593 self->english_name = *((meshio::fixed_string<50>*) tolua_tousertype(tolua_S,2,0))
1597 #endif //#ifndef TOLUA_DISABLE
1599 /* get function: name of class meshio::pmd::RigidBody */
1600 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_name
1601 static int tolua_get_meshio__pmd__RigidBody_name(lua_State* tolua_S)
1603 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1604 #ifndef TOLUA_RELEASE
1605 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1607 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<20>");
1610 #endif //#ifndef TOLUA_DISABLE
1612 /* set function: name of class meshio::pmd::RigidBody */
1613 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_name
1614 static int tolua_set_meshio__pmd__RigidBody_name(lua_State* tolua_S)
1616 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1617 #ifndef TOLUA_RELEASE
1618 tolua_Error tolua_err;
1619 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
1620 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
1621 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1623 self->name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
1627 #endif //#ifndef TOLUA_DISABLE
1629 /* get function: boneIndex of class meshio::pmd::RigidBody */
1630 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_unsigned_boneIndex
1631 static int tolua_get_meshio__pmd__RigidBody_unsigned_boneIndex(lua_State* tolua_S)
1633 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1634 #ifndef TOLUA_RELEASE
1635 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boneIndex'",NULL);
1637 tolua_pushnumber(tolua_S,(lua_Number)self->boneIndex);
1640 #endif //#ifndef TOLUA_DISABLE
1642 /* set function: boneIndex of class meshio::pmd::RigidBody */
1643 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_unsigned_boneIndex
1644 static int tolua_set_meshio__pmd__RigidBody_unsigned_boneIndex(lua_State* tolua_S)
1646 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1647 #ifndef TOLUA_RELEASE
1648 tolua_Error tolua_err;
1649 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'boneIndex'",NULL);
1650 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1651 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1653 self->boneIndex = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1657 #endif //#ifndef TOLUA_DISABLE
1659 /* get function: group of class meshio::pmd::RigidBody */
1660 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_unsigned_group
1661 static int tolua_get_meshio__pmd__RigidBody_unsigned_group(lua_State* tolua_S)
1663 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1664 #ifndef TOLUA_RELEASE
1665 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'group'",NULL);
1667 tolua_pushnumber(tolua_S,(lua_Number)self->group);
1670 #endif //#ifndef TOLUA_DISABLE
1672 /* set function: group of class meshio::pmd::RigidBody */
1673 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_unsigned_group
1674 static int tolua_set_meshio__pmd__RigidBody_unsigned_group(lua_State* tolua_S)
1676 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1677 #ifndef TOLUA_RELEASE
1678 tolua_Error tolua_err;
1679 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'group'",NULL);
1680 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1681 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1683 self->group = ((unsigned char) tolua_tonumber(tolua_S,2,0))
1687 #endif //#ifndef TOLUA_DISABLE
1689 /* get function: target of class meshio::pmd::RigidBody */
1690 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_unsigned_target
1691 static int tolua_get_meshio__pmd__RigidBody_unsigned_target(lua_State* tolua_S)
1693 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1694 #ifndef TOLUA_RELEASE
1695 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'target'",NULL);
1697 tolua_pushnumber(tolua_S,(lua_Number)self->target);
1700 #endif //#ifndef TOLUA_DISABLE
1702 /* set function: target of class meshio::pmd::RigidBody */
1703 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_unsigned_target
1704 static int tolua_set_meshio__pmd__RigidBody_unsigned_target(lua_State* tolua_S)
1706 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1707 #ifndef TOLUA_RELEASE
1708 tolua_Error tolua_err;
1709 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'target'",NULL);
1710 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1711 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1713 self->target = ((unsigned short) tolua_tonumber(tolua_S,2,0))
1717 #endif //#ifndef TOLUA_DISABLE
1719 /* get function: shapeType of class meshio::pmd::RigidBody */
1720 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_shapeType
1721 static int tolua_get_meshio__pmd__RigidBody_shapeType(lua_State* tolua_S)
1723 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1724 #ifndef TOLUA_RELEASE
1725 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shapeType'",NULL);
1727 tolua_pushnumber(tolua_S,(lua_Number)self->shapeType);
1730 #endif //#ifndef TOLUA_DISABLE
1732 /* set function: shapeType of class meshio::pmd::RigidBody */
1733 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_shapeType
1734 static int tolua_set_meshio__pmd__RigidBody_shapeType(lua_State* tolua_S)
1736 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1737 #ifndef TOLUA_RELEASE
1738 tolua_Error tolua_err;
1739 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shapeType'",NULL);
1740 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1741 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1743 self->shapeType = ((meshio::pmd::SHAPE_TYPE) (int) tolua_tonumber(tolua_S,2,0))
1747 #endif //#ifndef TOLUA_DISABLE
1749 /* get function: w of class meshio::pmd::RigidBody */
1750 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_w
1751 static int tolua_get_meshio__pmd__RigidBody_w(lua_State* tolua_S)
1753 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1754 #ifndef TOLUA_RELEASE
1755 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
1757 tolua_pushnumber(tolua_S,(lua_Number)self->w);
1760 #endif //#ifndef TOLUA_DISABLE
1762 /* set function: w of class meshio::pmd::RigidBody */
1763 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_w
1764 static int tolua_set_meshio__pmd__RigidBody_w(lua_State* tolua_S)
1766 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1767 #ifndef TOLUA_RELEASE
1768 tolua_Error tolua_err;
1769 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
1770 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1771 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1773 self->w = ((float) tolua_tonumber(tolua_S,2,0))
1777 #endif //#ifndef TOLUA_DISABLE
1779 /* get function: h of class meshio::pmd::RigidBody */
1780 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_h
1781 static int tolua_get_meshio__pmd__RigidBody_h(lua_State* tolua_S)
1783 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1784 #ifndef TOLUA_RELEASE
1785 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'h'",NULL);
1787 tolua_pushnumber(tolua_S,(lua_Number)self->h);
1790 #endif //#ifndef TOLUA_DISABLE
1792 /* set function: h of class meshio::pmd::RigidBody */
1793 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_h
1794 static int tolua_set_meshio__pmd__RigidBody_h(lua_State* tolua_S)
1796 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1797 #ifndef TOLUA_RELEASE
1798 tolua_Error tolua_err;
1799 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'h'",NULL);
1800 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1801 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1803 self->h = ((float) tolua_tonumber(tolua_S,2,0))
1807 #endif //#ifndef TOLUA_DISABLE
1809 /* get function: d of class meshio::pmd::RigidBody */
1810 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_d
1811 static int tolua_get_meshio__pmd__RigidBody_d(lua_State* tolua_S)
1813 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1814 #ifndef TOLUA_RELEASE
1815 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd'",NULL);
1817 tolua_pushnumber(tolua_S,(lua_Number)self->d);
1820 #endif //#ifndef TOLUA_DISABLE
1822 /* set function: d of class meshio::pmd::RigidBody */
1823 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_d
1824 static int tolua_set_meshio__pmd__RigidBody_d(lua_State* tolua_S)
1826 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1827 #ifndef TOLUA_RELEASE
1828 tolua_Error tolua_err;
1829 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'd'",NULL);
1830 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1831 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1833 self->d = ((float) tolua_tonumber(tolua_S,2,0))
1837 #endif //#ifndef TOLUA_DISABLE
1839 /* get function: position of class meshio::pmd::RigidBody */
1840 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_position
1841 static int tolua_get_meshio__pmd__RigidBody_position(lua_State* tolua_S)
1843 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1844 #ifndef TOLUA_RELEASE
1845 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'position'",NULL);
1847 tolua_pushusertype(tolua_S,(void*)&self->position,"meshio::Vector3");
1850 #endif //#ifndef TOLUA_DISABLE
1852 /* set function: position of class meshio::pmd::RigidBody */
1853 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_position
1854 static int tolua_set_meshio__pmd__RigidBody_position(lua_State* tolua_S)
1856 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1857 #ifndef TOLUA_RELEASE
1858 tolua_Error tolua_err;
1859 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'position'",NULL);
1860 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
1861 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1863 self->position = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
1867 #endif //#ifndef TOLUA_DISABLE
1869 /* get function: rotation of class meshio::pmd::RigidBody */
1870 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_rotation
1871 static int tolua_get_meshio__pmd__RigidBody_rotation(lua_State* tolua_S)
1873 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1874 #ifndef TOLUA_RELEASE
1875 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rotation'",NULL);
1877 tolua_pushusertype(tolua_S,(void*)&self->rotation,"meshio::Vector3");
1880 #endif //#ifndef TOLUA_DISABLE
1882 /* set function: rotation of class meshio::pmd::RigidBody */
1883 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_rotation
1884 static int tolua_set_meshio__pmd__RigidBody_rotation(lua_State* tolua_S)
1886 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1887 #ifndef TOLUA_RELEASE
1888 tolua_Error tolua_err;
1889 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rotation'",NULL);
1890 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
1891 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1893 self->rotation = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
1897 #endif //#ifndef TOLUA_DISABLE
1899 /* get function: weight of class meshio::pmd::RigidBody */
1900 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_weight
1901 static int tolua_get_meshio__pmd__RigidBody_weight(lua_State* tolua_S)
1903 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1904 #ifndef TOLUA_RELEASE
1905 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight'",NULL);
1907 tolua_pushnumber(tolua_S,(lua_Number)self->weight);
1910 #endif //#ifndef TOLUA_DISABLE
1912 /* set function: weight of class meshio::pmd::RigidBody */
1913 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_weight
1914 static int tolua_set_meshio__pmd__RigidBody_weight(lua_State* tolua_S)
1916 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1917 #ifndef TOLUA_RELEASE
1918 tolua_Error tolua_err;
1919 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'weight'",NULL);
1920 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1921 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1923 self->weight = ((float) tolua_tonumber(tolua_S,2,0))
1927 #endif //#ifndef TOLUA_DISABLE
1929 /* get function: linearDamping of class meshio::pmd::RigidBody */
1930 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_linearDamping
1931 static int tolua_get_meshio__pmd__RigidBody_linearDamping(lua_State* tolua_S)
1933 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1934 #ifndef TOLUA_RELEASE
1935 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'linearDamping'",NULL);
1937 tolua_pushnumber(tolua_S,(lua_Number)self->linearDamping);
1940 #endif //#ifndef TOLUA_DISABLE
1942 /* set function: linearDamping of class meshio::pmd::RigidBody */
1943 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_linearDamping
1944 static int tolua_set_meshio__pmd__RigidBody_linearDamping(lua_State* tolua_S)
1946 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1947 #ifndef TOLUA_RELEASE
1948 tolua_Error tolua_err;
1949 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'linearDamping'",NULL);
1950 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1951 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1953 self->linearDamping = ((float) tolua_tonumber(tolua_S,2,0))
1957 #endif //#ifndef TOLUA_DISABLE
1959 /* get function: angularDamping of class meshio::pmd::RigidBody */
1960 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_angularDamping
1961 static int tolua_get_meshio__pmd__RigidBody_angularDamping(lua_State* tolua_S)
1963 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1964 #ifndef TOLUA_RELEASE
1965 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'angularDamping'",NULL);
1967 tolua_pushnumber(tolua_S,(lua_Number)self->angularDamping);
1970 #endif //#ifndef TOLUA_DISABLE
1972 /* set function: angularDamping of class meshio::pmd::RigidBody */
1973 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_angularDamping
1974 static int tolua_set_meshio__pmd__RigidBody_angularDamping(lua_State* tolua_S)
1976 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1977 #ifndef TOLUA_RELEASE
1978 tolua_Error tolua_err;
1979 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'angularDamping'",NULL);
1980 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
1981 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
1983 self->angularDamping = ((float) tolua_tonumber(tolua_S,2,0))
1987 #endif //#ifndef TOLUA_DISABLE
1989 /* get function: restitution of class meshio::pmd::RigidBody */
1990 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_restitution
1991 static int tolua_get_meshio__pmd__RigidBody_restitution(lua_State* tolua_S)
1993 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
1994 #ifndef TOLUA_RELEASE
1995 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'restitution'",NULL);
1997 tolua_pushnumber(tolua_S,(lua_Number)self->restitution);
2000 #endif //#ifndef TOLUA_DISABLE
2002 /* set function: restitution of class meshio::pmd::RigidBody */
2003 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_restitution
2004 static int tolua_set_meshio__pmd__RigidBody_restitution(lua_State* tolua_S)
2006 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
2007 #ifndef TOLUA_RELEASE
2008 tolua_Error tolua_err;
2009 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'restitution'",NULL);
2010 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2011 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2013 self->restitution = ((float) tolua_tonumber(tolua_S,2,0))
2017 #endif //#ifndef TOLUA_DISABLE
2019 /* get function: friction of class meshio::pmd::RigidBody */
2020 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_friction
2021 static int tolua_get_meshio__pmd__RigidBody_friction(lua_State* tolua_S)
2023 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
2024 #ifndef TOLUA_RELEASE
2025 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'friction'",NULL);
2027 tolua_pushnumber(tolua_S,(lua_Number)self->friction);
2030 #endif //#ifndef TOLUA_DISABLE
2032 /* set function: friction of class meshio::pmd::RigidBody */
2033 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_friction
2034 static int tolua_set_meshio__pmd__RigidBody_friction(lua_State* tolua_S)
2036 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
2037 #ifndef TOLUA_RELEASE
2038 tolua_Error tolua_err;
2039 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'friction'",NULL);
2040 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2041 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2043 self->friction = ((float) tolua_tonumber(tolua_S,2,0))
2047 #endif //#ifndef TOLUA_DISABLE
2049 /* get function: processType of class meshio::pmd::RigidBody */
2050 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__RigidBody_processType
2051 static int tolua_get_meshio__pmd__RigidBody_processType(lua_State* tolua_S)
2053 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
2054 #ifndef TOLUA_RELEASE
2055 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'processType'",NULL);
2057 tolua_pushnumber(tolua_S,(lua_Number)self->processType);
2060 #endif //#ifndef TOLUA_DISABLE
2062 /* set function: processType of class meshio::pmd::RigidBody */
2063 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__RigidBody_processType
2064 static int tolua_set_meshio__pmd__RigidBody_processType(lua_State* tolua_S)
2066 meshio::pmd::RigidBody* self = (meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,1,0);
2067 #ifndef TOLUA_RELEASE
2068 tolua_Error tolua_err;
2069 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'processType'",NULL);
2070 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2071 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2073 self->processType = ((meshio::pmd::PROCESS_TYPE) (int) tolua_tonumber(tolua_S,2,0))
2077 #endif //#ifndef TOLUA_DISABLE
2079 /* get function: name of class meshio::pmd::Constraint */
2080 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_name
2081 static int tolua_get_meshio__pmd__Constraint_name(lua_State* tolua_S)
2083 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2084 #ifndef TOLUA_RELEASE
2085 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
2087 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<20>");
2090 #endif //#ifndef TOLUA_DISABLE
2092 /* set function: name of class meshio::pmd::Constraint */
2093 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_name
2094 static int tolua_set_meshio__pmd__Constraint_name(lua_State* tolua_S)
2096 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2097 #ifndef TOLUA_RELEASE
2098 tolua_Error tolua_err;
2099 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
2100 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
2101 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2103 self->name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
2107 #endif //#ifndef TOLUA_DISABLE
2109 /* get function: rigidA of class meshio::pmd::Constraint */
2110 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_unsigned_rigidA
2111 static int tolua_get_meshio__pmd__Constraint_unsigned_rigidA(lua_State* tolua_S)
2113 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2114 #ifndef TOLUA_RELEASE
2115 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidA'",NULL);
2117 tolua_pushnumber(tolua_S,(lua_Number)self->rigidA);
2120 #endif //#ifndef TOLUA_DISABLE
2122 /* set function: rigidA of class meshio::pmd::Constraint */
2123 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_unsigned_rigidA
2124 static int tolua_set_meshio__pmd__Constraint_unsigned_rigidA(lua_State* tolua_S)
2126 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2127 #ifndef TOLUA_RELEASE
2128 tolua_Error tolua_err;
2129 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidA'",NULL);
2130 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2131 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2133 self->rigidA = ((unsigned int) tolua_tonumber(tolua_S,2,0))
2137 #endif //#ifndef TOLUA_DISABLE
2139 /* get function: rigidB of class meshio::pmd::Constraint */
2140 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_unsigned_rigidB
2141 static int tolua_get_meshio__pmd__Constraint_unsigned_rigidB(lua_State* tolua_S)
2143 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2144 #ifndef TOLUA_RELEASE
2145 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidB'",NULL);
2147 tolua_pushnumber(tolua_S,(lua_Number)self->rigidB);
2150 #endif //#ifndef TOLUA_DISABLE
2152 /* set function: rigidB of class meshio::pmd::Constraint */
2153 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_unsigned_rigidB
2154 static int tolua_set_meshio__pmd__Constraint_unsigned_rigidB(lua_State* tolua_S)
2156 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2157 #ifndef TOLUA_RELEASE
2158 tolua_Error tolua_err;
2159 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidB'",NULL);
2160 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2161 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2163 self->rigidB = ((unsigned int) tolua_tonumber(tolua_S,2,0))
2167 #endif //#ifndef TOLUA_DISABLE
2169 /* get function: pos of class meshio::pmd::Constraint */
2170 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_pos
2171 static int tolua_get_meshio__pmd__Constraint_pos(lua_State* tolua_S)
2173 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2174 #ifndef TOLUA_RELEASE
2175 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
2177 tolua_pushusertype(tolua_S,(void*)&self->pos,"meshio::Vector3");
2180 #endif //#ifndef TOLUA_DISABLE
2182 /* set function: pos of class meshio::pmd::Constraint */
2183 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_pos
2184 static int tolua_set_meshio__pmd__Constraint_pos(lua_State* tolua_S)
2186 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2187 #ifndef TOLUA_RELEASE
2188 tolua_Error tolua_err;
2189 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
2190 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2191 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2193 self->pos = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2197 #endif //#ifndef TOLUA_DISABLE
2199 /* get function: rot of class meshio::pmd::Constraint */
2200 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_rot
2201 static int tolua_get_meshio__pmd__Constraint_rot(lua_State* tolua_S)
2203 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2204 #ifndef TOLUA_RELEASE
2205 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rot'",NULL);
2207 tolua_pushusertype(tolua_S,(void*)&self->rot,"meshio::Vector3");
2210 #endif //#ifndef TOLUA_DISABLE
2212 /* set function: rot of class meshio::pmd::Constraint */
2213 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_rot
2214 static int tolua_set_meshio__pmd__Constraint_rot(lua_State* tolua_S)
2216 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2217 #ifndef TOLUA_RELEASE
2218 tolua_Error tolua_err;
2219 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rot'",NULL);
2220 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2221 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2223 self->rot = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2227 #endif //#ifndef TOLUA_DISABLE
2229 /* get function: constraintPosMin of class meshio::pmd::Constraint */
2230 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_constraintPosMin
2231 static int tolua_get_meshio__pmd__Constraint_constraintPosMin(lua_State* tolua_S)
2233 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2234 #ifndef TOLUA_RELEASE
2235 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintPosMin'",NULL);
2237 tolua_pushusertype(tolua_S,(void*)&self->constraintPosMin,"meshio::Vector3");
2240 #endif //#ifndef TOLUA_DISABLE
2242 /* set function: constraintPosMin of class meshio::pmd::Constraint */
2243 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_constraintPosMin
2244 static int tolua_set_meshio__pmd__Constraint_constraintPosMin(lua_State* tolua_S)
2246 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2247 #ifndef TOLUA_RELEASE
2248 tolua_Error tolua_err;
2249 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintPosMin'",NULL);
2250 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2251 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2253 self->constraintPosMin = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2257 #endif //#ifndef TOLUA_DISABLE
2259 /* get function: constraintPosMax of class meshio::pmd::Constraint */
2260 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_constraintPosMax
2261 static int tolua_get_meshio__pmd__Constraint_constraintPosMax(lua_State* tolua_S)
2263 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2264 #ifndef TOLUA_RELEASE
2265 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintPosMax'",NULL);
2267 tolua_pushusertype(tolua_S,(void*)&self->constraintPosMax,"meshio::Vector3");
2270 #endif //#ifndef TOLUA_DISABLE
2272 /* set function: constraintPosMax of class meshio::pmd::Constraint */
2273 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_constraintPosMax
2274 static int tolua_set_meshio__pmd__Constraint_constraintPosMax(lua_State* tolua_S)
2276 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2277 #ifndef TOLUA_RELEASE
2278 tolua_Error tolua_err;
2279 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintPosMax'",NULL);
2280 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2281 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2283 self->constraintPosMax = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2287 #endif //#ifndef TOLUA_DISABLE
2289 /* get function: constraintRotMin of class meshio::pmd::Constraint */
2290 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_constraintRotMin
2291 static int tolua_get_meshio__pmd__Constraint_constraintRotMin(lua_State* tolua_S)
2293 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2294 #ifndef TOLUA_RELEASE
2295 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintRotMin'",NULL);
2297 tolua_pushusertype(tolua_S,(void*)&self->constraintRotMin,"meshio::Vector3");
2300 #endif //#ifndef TOLUA_DISABLE
2302 /* set function: constraintRotMin of class meshio::pmd::Constraint */
2303 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_constraintRotMin
2304 static int tolua_set_meshio__pmd__Constraint_constraintRotMin(lua_State* tolua_S)
2306 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2307 #ifndef TOLUA_RELEASE
2308 tolua_Error tolua_err;
2309 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintRotMin'",NULL);
2310 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2311 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2313 self->constraintRotMin = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2317 #endif //#ifndef TOLUA_DISABLE
2319 /* get function: constraintRotMax of class meshio::pmd::Constraint */
2320 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_constraintRotMax
2321 static int tolua_get_meshio__pmd__Constraint_constraintRotMax(lua_State* tolua_S)
2323 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2324 #ifndef TOLUA_RELEASE
2325 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintRotMax'",NULL);
2327 tolua_pushusertype(tolua_S,(void*)&self->constraintRotMax,"meshio::Vector3");
2330 #endif //#ifndef TOLUA_DISABLE
2332 /* set function: constraintRotMax of class meshio::pmd::Constraint */
2333 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_constraintRotMax
2334 static int tolua_set_meshio__pmd__Constraint_constraintRotMax(lua_State* tolua_S)
2336 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2337 #ifndef TOLUA_RELEASE
2338 tolua_Error tolua_err;
2339 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraintRotMax'",NULL);
2340 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2341 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2343 self->constraintRotMax = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2347 #endif //#ifndef TOLUA_DISABLE
2349 /* get function: springPos of class meshio::pmd::Constraint */
2350 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_springPos
2351 static int tolua_get_meshio__pmd__Constraint_springPos(lua_State* tolua_S)
2353 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2354 #ifndef TOLUA_RELEASE
2355 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'springPos'",NULL);
2357 tolua_pushusertype(tolua_S,(void*)&self->springPos,"meshio::Vector3");
2360 #endif //#ifndef TOLUA_DISABLE
2362 /* set function: springPos of class meshio::pmd::Constraint */
2363 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_springPos
2364 static int tolua_set_meshio__pmd__Constraint_springPos(lua_State* tolua_S)
2366 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2367 #ifndef TOLUA_RELEASE
2368 tolua_Error tolua_err;
2369 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'springPos'",NULL);
2370 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2371 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2373 self->springPos = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2377 #endif //#ifndef TOLUA_DISABLE
2379 /* get function: springRot of class meshio::pmd::Constraint */
2380 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__Constraint_springRot
2381 static int tolua_get_meshio__pmd__Constraint_springRot(lua_State* tolua_S)
2383 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2384 #ifndef TOLUA_RELEASE
2385 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'springRot'",NULL);
2387 tolua_pushusertype(tolua_S,(void*)&self->springRot,"meshio::Vector3");
2390 #endif //#ifndef TOLUA_DISABLE
2392 /* set function: springRot of class meshio::pmd::Constraint */
2393 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__Constraint_springRot
2394 static int tolua_set_meshio__pmd__Constraint_springRot(lua_State* tolua_S)
2396 meshio::pmd::Constraint* self = (meshio::pmd::Constraint*) tolua_tousertype(tolua_S,1,0);
2397 #ifndef TOLUA_RELEASE
2398 tolua_Error tolua_err;
2399 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'springRot'",NULL);
2400 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
2401 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2403 self->springRot = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
2407 #endif //#ifndef TOLUA_DISABLE
2409 /* get function: version of class meshio::pmd::IO */
2410 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_version
2411 static int tolua_get_meshio__pmd__IO_version(lua_State* tolua_S)
2413 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2414 #ifndef TOLUA_RELEASE
2415 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'version'",NULL);
2417 tolua_pushnumber(tolua_S,(lua_Number)self->version);
2420 #endif //#ifndef TOLUA_DISABLE
2422 /* set function: version of class meshio::pmd::IO */
2423 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_version
2424 static int tolua_set_meshio__pmd__IO_version(lua_State* tolua_S)
2426 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2427 #ifndef TOLUA_RELEASE
2428 tolua_Error tolua_err;
2429 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'version'",NULL);
2430 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
2431 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2433 self->version = ((float) tolua_tonumber(tolua_S,2,0))
2437 #endif //#ifndef TOLUA_DISABLE
2439 /* get function: name of class meshio::pmd::IO */
2440 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_name
2441 static int tolua_get_meshio__pmd__IO_name(lua_State* tolua_S)
2443 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2444 #ifndef TOLUA_RELEASE
2445 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
2447 tolua_pushusertype(tolua_S,(void*)&self->name,"meshio::fixed_string<20>");
2450 #endif //#ifndef TOLUA_DISABLE
2452 /* set function: name of class meshio::pmd::IO */
2453 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_name
2454 static int tolua_set_meshio__pmd__IO_name(lua_State* tolua_S)
2456 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2457 #ifndef TOLUA_RELEASE
2458 tolua_Error tolua_err;
2459 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
2460 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
2461 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2463 self->name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
2467 #endif //#ifndef TOLUA_DISABLE
2469 /* get function: comment of class meshio::pmd::IO */
2470 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_comment
2471 static int tolua_get_meshio__pmd__IO_comment(lua_State* tolua_S)
2473 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2474 #ifndef TOLUA_RELEASE
2475 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'comment'",NULL);
2477 tolua_pushusertype(tolua_S,(void*)&self->comment,"meshio::fixed_string<256>");
2480 #endif //#ifndef TOLUA_DISABLE
2482 /* set function: comment of class meshio::pmd::IO */
2483 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_comment
2484 static int tolua_set_meshio__pmd__IO_comment(lua_State* tolua_S)
2486 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2487 #ifndef TOLUA_RELEASE
2488 tolua_Error tolua_err;
2489 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'comment'",NULL);
2490 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<256>",0,&tolua_err)))
2491 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2493 self->comment = *((meshio::fixed_string<256>*) tolua_tousertype(tolua_S,2,0))
2497 #endif //#ifndef TOLUA_DISABLE
2499 /* get function: vertices of class meshio::pmd::IO */
2500 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_vertices
2501 static int tolua_get_meshio__pmd__IO_vertices(lua_State* tolua_S)
2503 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2504 #ifndef TOLUA_RELEASE
2505 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertices'",NULL);
2507 tolua_pushusertype(tolua_S,(void*)&self->vertices,"std::vector<meshio::pmd::Vertex>");
2510 #endif //#ifndef TOLUA_DISABLE
2512 /* set function: vertices of class meshio::pmd::IO */
2513 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_vertices
2514 static int tolua_set_meshio__pmd__IO_vertices(lua_State* tolua_S)
2516 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2517 #ifndef TOLUA_RELEASE
2518 tolua_Error tolua_err;
2519 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertices'",NULL);
2520 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Vertex>",0,&tolua_err)))
2521 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2523 self->vertices = *((std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,2,0))
2527 #endif //#ifndef TOLUA_DISABLE
2529 /* get function: indices of class meshio::pmd::IO */
2530 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_indices
2531 static int tolua_get_meshio__pmd__IO_indices(lua_State* tolua_S)
2533 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2534 #ifndef TOLUA_RELEASE
2535 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'indices'",NULL);
2537 tolua_pushusertype(tolua_S,(void*)&self->indices,"std::vector<unsigned short>");
2540 #endif //#ifndef TOLUA_DISABLE
2542 /* set function: indices of class meshio::pmd::IO */
2543 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_indices
2544 static int tolua_set_meshio__pmd__IO_indices(lua_State* tolua_S)
2546 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2547 #ifndef TOLUA_RELEASE
2548 tolua_Error tolua_err;
2549 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'indices'",NULL);
2550 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<unsigned short>",0,&tolua_err)))
2551 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2553 self->indices = *((std::vector<unsigned short>*) tolua_tousertype(tolua_S,2,0))
2557 #endif //#ifndef TOLUA_DISABLE
2559 /* get function: materials of class meshio::pmd::IO */
2560 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_materials
2561 static int tolua_get_meshio__pmd__IO_materials(lua_State* tolua_S)
2563 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2564 #ifndef TOLUA_RELEASE
2565 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'materials'",NULL);
2567 tolua_pushusertype(tolua_S,(void*)&self->materials,"std::vector<meshio::pmd::Material>");
2570 #endif //#ifndef TOLUA_DISABLE
2572 /* set function: materials of class meshio::pmd::IO */
2573 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_materials
2574 static int tolua_set_meshio__pmd__IO_materials(lua_State* tolua_S)
2576 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2577 #ifndef TOLUA_RELEASE
2578 tolua_Error tolua_err;
2579 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'materials'",NULL);
2580 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Material>",0,&tolua_err)))
2581 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2583 self->materials = *((std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,2,0))
2587 #endif //#ifndef TOLUA_DISABLE
2589 /* get function: bones of class meshio::pmd::IO */
2590 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_bones
2591 static int tolua_get_meshio__pmd__IO_bones(lua_State* tolua_S)
2593 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2594 #ifndef TOLUA_RELEASE
2595 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bones'",NULL);
2597 tolua_pushusertype(tolua_S,(void*)&self->bones,"std::vector<meshio::pmd::Bone>");
2600 #endif //#ifndef TOLUA_DISABLE
2602 /* set function: bones of class meshio::pmd::IO */
2603 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_bones
2604 static int tolua_set_meshio__pmd__IO_bones(lua_State* tolua_S)
2606 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2607 #ifndef TOLUA_RELEASE
2608 tolua_Error tolua_err;
2609 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bones'",NULL);
2610 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Bone>",0,&tolua_err)))
2611 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2613 self->bones = *((std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,2,0))
2617 #endif //#ifndef TOLUA_DISABLE
2619 /* get function: ik_list of class meshio::pmd::IO */
2620 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_ik_list
2621 static int tolua_get_meshio__pmd__IO_ik_list(lua_State* tolua_S)
2623 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2624 #ifndef TOLUA_RELEASE
2625 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ik_list'",NULL);
2627 tolua_pushusertype(tolua_S,(void*)&self->ik_list,"std::vector<meshio::pmd::IK>");
2630 #endif //#ifndef TOLUA_DISABLE
2632 /* set function: ik_list of class meshio::pmd::IO */
2633 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_ik_list
2634 static int tolua_set_meshio__pmd__IO_ik_list(lua_State* tolua_S)
2636 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2637 #ifndef TOLUA_RELEASE
2638 tolua_Error tolua_err;
2639 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ik_list'",NULL);
2640 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::IK>",0,&tolua_err)))
2641 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2643 self->ik_list = *((std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,2,0))
2647 #endif //#ifndef TOLUA_DISABLE
2649 /* get function: morph_list of class meshio::pmd::IO */
2650 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_morph_list
2651 static int tolua_get_meshio__pmd__IO_morph_list(lua_State* tolua_S)
2653 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2654 #ifndef TOLUA_RELEASE
2655 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'morph_list'",NULL);
2657 tolua_pushusertype(tolua_S,(void*)&self->morph_list,"std::vector<meshio::pmd::Morph>");
2660 #endif //#ifndef TOLUA_DISABLE
2662 /* set function: morph_list of class meshio::pmd::IO */
2663 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_morph_list
2664 static int tolua_set_meshio__pmd__IO_morph_list(lua_State* tolua_S)
2666 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2667 #ifndef TOLUA_RELEASE
2668 tolua_Error tolua_err;
2669 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'morph_list'",NULL);
2670 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Morph>",0,&tolua_err)))
2671 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2673 self->morph_list = *((std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,2,0))
2677 #endif //#ifndef TOLUA_DISABLE
2679 /* get function: face_list of class meshio::pmd::IO */
2680 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_face_list
2681 static int tolua_get_meshio__pmd__IO_face_list(lua_State* tolua_S)
2683 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2684 #ifndef TOLUA_RELEASE
2685 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'face_list'",NULL);
2687 tolua_pushusertype(tolua_S,(void*)&self->face_list,"std::vector<unsigned short>");
2690 #endif //#ifndef TOLUA_DISABLE
2692 /* set function: face_list of class meshio::pmd::IO */
2693 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_face_list
2694 static int tolua_set_meshio__pmd__IO_face_list(lua_State* tolua_S)
2696 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2697 #ifndef TOLUA_RELEASE
2698 tolua_Error tolua_err;
2699 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'face_list'",NULL);
2700 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<unsigned short>",0,&tolua_err)))
2701 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2703 self->face_list = *((std::vector<unsigned short>*) tolua_tousertype(tolua_S,2,0))
2707 #endif //#ifndef TOLUA_DISABLE
2709 /* get function: bone_group_list of class meshio::pmd::IO */
2710 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_bone_group_list
2711 static int tolua_get_meshio__pmd__IO_bone_group_list(lua_State* tolua_S)
2713 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2714 #ifndef TOLUA_RELEASE
2715 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone_group_list'",NULL);
2717 tolua_pushusertype(tolua_S,(void*)&self->bone_group_list,"std::vector<meshio::pmd::BoneGroup>");
2720 #endif //#ifndef TOLUA_DISABLE
2722 /* set function: bone_group_list of class meshio::pmd::IO */
2723 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_bone_group_list
2724 static int tolua_set_meshio__pmd__IO_bone_group_list(lua_State* tolua_S)
2726 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2727 #ifndef TOLUA_RELEASE
2728 tolua_Error tolua_err;
2729 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone_group_list'",NULL);
2730 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err)))
2731 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2733 self->bone_group_list = *((std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,2,0))
2737 #endif //#ifndef TOLUA_DISABLE
2739 /* get function: bone_display_list of class meshio::pmd::IO */
2740 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_bone_display_list
2741 static int tolua_get_meshio__pmd__IO_bone_display_list(lua_State* tolua_S)
2743 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2744 #ifndef TOLUA_RELEASE
2745 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone_display_list'",NULL);
2747 tolua_pushusertype(tolua_S,(void*)&self->bone_display_list,"std::vector<std::pair<unsigned short,unsigned char> >");
2750 #endif //#ifndef TOLUA_DISABLE
2752 /* set function: bone_display_list of class meshio::pmd::IO */
2753 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_bone_display_list
2754 static int tolua_set_meshio__pmd__IO_bone_display_list(lua_State* tolua_S)
2756 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2757 #ifndef TOLUA_RELEASE
2758 tolua_Error tolua_err;
2759 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bone_display_list'",NULL);
2760 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err)))
2761 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2763 self->bone_display_list = *((std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,2,0))
2767 #endif //#ifndef TOLUA_DISABLE
2769 /* get function: toon_textures of class meshio::pmd::IO */
2770 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_toon_textures
2771 static int tolua_get_meshio__pmd__IO_toon_textures(lua_State* tolua_S)
2773 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2774 #ifndef TOLUA_RELEASE
2775 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'toon_textures'",NULL);
2777 tolua_pushusertype(tolua_S,(void*)&self->toon_textures,"std::array<meshio::fixed_string<100>,10>");
2780 #endif //#ifndef TOLUA_DISABLE
2782 /* set function: toon_textures of class meshio::pmd::IO */
2783 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_toon_textures
2784 static int tolua_set_meshio__pmd__IO_toon_textures(lua_State* tolua_S)
2786 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2787 #ifndef TOLUA_RELEASE
2788 tolua_Error tolua_err;
2789 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'toon_textures'",NULL);
2790 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::array<meshio::fixed_string<100>,10>",0,&tolua_err)))
2791 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2793 self->toon_textures = *((std::array<meshio::fixed_string<100>,10>*) tolua_tousertype(tolua_S,2,0))
2797 #endif //#ifndef TOLUA_DISABLE
2799 /* get function: rigidbodies of class meshio::pmd::IO */
2800 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_rigidbodies
2801 static int tolua_get_meshio__pmd__IO_rigidbodies(lua_State* tolua_S)
2803 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2804 #ifndef TOLUA_RELEASE
2805 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidbodies'",NULL);
2807 tolua_pushusertype(tolua_S,(void*)&self->rigidbodies,"std::vector<meshio::pmd::RigidBody>");
2810 #endif //#ifndef TOLUA_DISABLE
2812 /* set function: rigidbodies of class meshio::pmd::IO */
2813 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_rigidbodies
2814 static int tolua_set_meshio__pmd__IO_rigidbodies(lua_State* tolua_S)
2816 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2817 #ifndef TOLUA_RELEASE
2818 tolua_Error tolua_err;
2819 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rigidbodies'",NULL);
2820 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err)))
2821 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2823 self->rigidbodies = *((std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,2,0))
2827 #endif //#ifndef TOLUA_DISABLE
2829 /* get function: constraints of class meshio::pmd::IO */
2830 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_constraints
2831 static int tolua_get_meshio__pmd__IO_constraints(lua_State* tolua_S)
2833 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2834 #ifndef TOLUA_RELEASE
2835 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraints'",NULL);
2837 tolua_pushusertype(tolua_S,(void*)&self->constraints,"std::vector<meshio::pmd::Constraint>");
2840 #endif //#ifndef TOLUA_DISABLE
2842 /* set function: constraints of class meshio::pmd::IO */
2843 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_constraints
2844 static int tolua_set_meshio__pmd__IO_constraints(lua_State* tolua_S)
2846 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2847 #ifndef TOLUA_RELEASE
2848 tolua_Error tolua_err;
2849 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'constraints'",NULL);
2850 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::pmd::Constraint>",0,&tolua_err)))
2851 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2853 self->constraints = *((std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,2,0))
2857 #endif //#ifndef TOLUA_DISABLE
2859 /* get function: english_name of class meshio::pmd::IO */
2860 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_english_name
2861 static int tolua_get_meshio__pmd__IO_english_name(lua_State* tolua_S)
2863 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2864 #ifndef TOLUA_RELEASE
2865 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
2867 tolua_pushusertype(tolua_S,(void*)&self->english_name,"meshio::fixed_string<20>");
2870 #endif //#ifndef TOLUA_DISABLE
2872 /* set function: english_name of class meshio::pmd::IO */
2873 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_english_name
2874 static int tolua_set_meshio__pmd__IO_english_name(lua_State* tolua_S)
2876 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2877 #ifndef TOLUA_RELEASE
2878 tolua_Error tolua_err;
2879 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_name'",NULL);
2880 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<20>",0,&tolua_err)))
2881 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2883 self->english_name = *((meshio::fixed_string<20>*) tolua_tousertype(tolua_S,2,0))
2887 #endif //#ifndef TOLUA_DISABLE
2889 /* get function: english_comment of class meshio::pmd::IO */
2890 #ifndef TOLUA_DISABLE_tolua_get_meshio__pmd__IO_english_comment
2891 static int tolua_get_meshio__pmd__IO_english_comment(lua_State* tolua_S)
2893 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2894 #ifndef TOLUA_RELEASE
2895 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_comment'",NULL);
2897 tolua_pushusertype(tolua_S,(void*)&self->english_comment,"meshio::fixed_string<256>");
2900 #endif //#ifndef TOLUA_DISABLE
2902 /* set function: english_comment of class meshio::pmd::IO */
2903 #ifndef TOLUA_DISABLE_tolua_set_meshio__pmd__IO_english_comment
2904 static int tolua_set_meshio__pmd__IO_english_comment(lua_State* tolua_S)
2906 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2907 #ifndef TOLUA_RELEASE
2908 tolua_Error tolua_err;
2909 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'english_comment'",NULL);
2910 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fixed_string<256>",0,&tolua_err)))
2911 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
2913 self->english_comment = *((meshio::fixed_string<256>*) tolua_tousertype(tolua_S,2,0))
2917 #endif //#ifndef TOLUA_DISABLE
2919 /* method: new of class meshio::pmd::IO */
2920 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_IO_new00
2921 static int tolua_lmeshio_meshio_pmd_IO_new00(lua_State* tolua_S)
2923 #ifndef TOLUA_RELEASE
2924 tolua_Error tolua_err;
2926 !tolua_isusertable(tolua_S,1,"meshio::pmd::IO",0,&tolua_err) ||
2927 !tolua_isnoobj(tolua_S,2,&tolua_err)
2936 meshio::pmd::IO* tolua_ret = (meshio::pmd::IO*) Mtolua_new((meshio::pmd::IO)());
2937 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::pmd::IO");
2942 #ifndef TOLUA_RELEASE
2944 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2948 #endif //#ifndef TOLUA_DISABLE
2950 /* method: new_local of class meshio::pmd::IO */
2951 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_IO_new00_local
2952 static int tolua_lmeshio_meshio_pmd_IO_new00_local(lua_State* tolua_S)
2954 #ifndef TOLUA_RELEASE
2955 tolua_Error tolua_err;
2957 !tolua_isusertable(tolua_S,1,"meshio::pmd::IO",0,&tolua_err) ||
2958 !tolua_isnoobj(tolua_S,2,&tolua_err)
2967 meshio::pmd::IO* tolua_ret = (meshio::pmd::IO*) Mtolua_new((meshio::pmd::IO)());
2968 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::pmd::IO");
2969 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
2974 #ifndef TOLUA_RELEASE
2976 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
2980 #endif //#ifndef TOLUA_DISABLE
2982 /* method: read of class meshio::pmd::IO */
2983 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_IO_read00
2984 static int tolua_lmeshio_meshio_pmd_IO_read00(lua_State* tolua_S)
2986 #ifndef TOLUA_RELEASE
2987 tolua_Error tolua_err;
2989 !tolua_isusertype(tolua_S,1,"meshio::pmd::IO",0,&tolua_err) ||
2990 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
2991 !tolua_isnoobj(tolua_S,3,&tolua_err)
2997 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
2998 const char* path = ((const char*) tolua_tostring(tolua_S,2,0));
2999 #ifndef TOLUA_RELEASE
3000 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL);
3003 bool tolua_ret = (bool) self->read(path);
3004 tolua_pushboolean(tolua_S,(bool)tolua_ret);
3010 #ifndef TOLUA_RELEASE
3012 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err);
3016 #endif //#ifndef TOLUA_DISABLE
3018 /* method: write of class meshio::pmd::IO */
3019 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_pmd_IO_write00
3020 static int tolua_lmeshio_meshio_pmd_IO_write00(lua_State* tolua_S)
3022 #ifndef TOLUA_RELEASE
3023 tolua_Error tolua_err;
3025 !tolua_isusertype(tolua_S,1,"meshio::pmd::IO",0,&tolua_err) ||
3026 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
3027 !tolua_isnoobj(tolua_S,3,&tolua_err)
3033 meshio::pmd::IO* self = (meshio::pmd::IO*) tolua_tousertype(tolua_S,1,0);
3034 const char* path = ((const char*) tolua_tostring(tolua_S,2,0));
3035 #ifndef TOLUA_RELEASE
3036 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL);
3039 bool tolua_ret = (bool) self->write(path);
3040 tolua_pushboolean(tolua_S,(bool)tolua_ret);
3046 #ifndef TOLUA_RELEASE
3048 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err);
3052 #endif //#ifndef TOLUA_DISABLE
3054 /* get function: pos of class meshio::mqo::Scene */
3055 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_pos
3056 static int tolua_get_meshio__mqo__Scene_pos(lua_State* tolua_S)
3058 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3059 #ifndef TOLUA_RELEASE
3060 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
3062 tolua_pushusertype(tolua_S,(void*)&self->pos,"meshio::Vector3");
3065 #endif //#ifndef TOLUA_DISABLE
3067 /* set function: pos of class meshio::mqo::Scene */
3068 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_pos
3069 static int tolua_set_meshio__mqo__Scene_pos(lua_State* tolua_S)
3071 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3072 #ifndef TOLUA_RELEASE
3073 tolua_Error tolua_err;
3074 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pos'",NULL);
3075 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
3076 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3078 self->pos = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
3082 #endif //#ifndef TOLUA_DISABLE
3084 /* get function: lookat of class meshio::mqo::Scene */
3085 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_lookat
3086 static int tolua_get_meshio__mqo__Scene_lookat(lua_State* tolua_S)
3088 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3089 #ifndef TOLUA_RELEASE
3090 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lookat'",NULL);
3092 tolua_pushusertype(tolua_S,(void*)&self->lookat,"meshio::Vector3");
3095 #endif //#ifndef TOLUA_DISABLE
3097 /* set function: lookat of class meshio::mqo::Scene */
3098 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_lookat
3099 static int tolua_set_meshio__mqo__Scene_lookat(lua_State* tolua_S)
3101 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3102 #ifndef TOLUA_RELEASE
3103 tolua_Error tolua_err;
3104 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'lookat'",NULL);
3105 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
3106 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3108 self->lookat = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
3112 #endif //#ifndef TOLUA_DISABLE
3114 /* get function: head of class meshio::mqo::Scene */
3115 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_head
3116 static int tolua_get_meshio__mqo__Scene_head(lua_State* tolua_S)
3118 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3119 #ifndef TOLUA_RELEASE
3120 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'head'",NULL);
3122 tolua_pushnumber(tolua_S,(lua_Number)self->head);
3125 #endif //#ifndef TOLUA_DISABLE
3127 /* set function: head of class meshio::mqo::Scene */
3128 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_head
3129 static int tolua_set_meshio__mqo__Scene_head(lua_State* tolua_S)
3131 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3132 #ifndef TOLUA_RELEASE
3133 tolua_Error tolua_err;
3134 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'head'",NULL);
3135 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3136 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3138 self->head = ((float) tolua_tonumber(tolua_S,2,0))
3142 #endif //#ifndef TOLUA_DISABLE
3144 /* get function: pitch of class meshio::mqo::Scene */
3145 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_pitch
3146 static int tolua_get_meshio__mqo__Scene_pitch(lua_State* tolua_S)
3148 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3149 #ifndef TOLUA_RELEASE
3150 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pitch'",NULL);
3152 tolua_pushnumber(tolua_S,(lua_Number)self->pitch);
3155 #endif //#ifndef TOLUA_DISABLE
3157 /* set function: pitch of class meshio::mqo::Scene */
3158 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_pitch
3159 static int tolua_set_meshio__mqo__Scene_pitch(lua_State* tolua_S)
3161 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3162 #ifndef TOLUA_RELEASE
3163 tolua_Error tolua_err;
3164 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'pitch'",NULL);
3165 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3166 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3168 self->pitch = ((float) tolua_tonumber(tolua_S,2,0))
3172 #endif //#ifndef TOLUA_DISABLE
3174 /* get function: ortho of class meshio::mqo::Scene */
3175 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_ortho
3176 static int tolua_get_meshio__mqo__Scene_ortho(lua_State* tolua_S)
3178 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3179 #ifndef TOLUA_RELEASE
3180 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ortho'",NULL);
3182 tolua_pushnumber(tolua_S,(lua_Number)self->ortho);
3185 #endif //#ifndef TOLUA_DISABLE
3187 /* set function: ortho of class meshio::mqo::Scene */
3188 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_ortho
3189 static int tolua_set_meshio__mqo__Scene_ortho(lua_State* tolua_S)
3191 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3192 #ifndef TOLUA_RELEASE
3193 tolua_Error tolua_err;
3194 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ortho'",NULL);
3195 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3196 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3198 self->ortho = ((int) tolua_tonumber(tolua_S,2,0))
3202 #endif //#ifndef TOLUA_DISABLE
3204 /* get function: zoom2 of class meshio::mqo::Scene */
3205 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_zoom2
3206 static int tolua_get_meshio__mqo__Scene_zoom2(lua_State* tolua_S)
3208 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3209 #ifndef TOLUA_RELEASE
3210 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'zoom2'",NULL);
3212 tolua_pushnumber(tolua_S,(lua_Number)self->zoom2);
3215 #endif //#ifndef TOLUA_DISABLE
3217 /* set function: zoom2 of class meshio::mqo::Scene */
3218 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_zoom2
3219 static int tolua_set_meshio__mqo__Scene_zoom2(lua_State* tolua_S)
3221 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3222 #ifndef TOLUA_RELEASE
3223 tolua_Error tolua_err;
3224 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'zoom2'",NULL);
3225 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3226 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3228 self->zoom2 = ((float) tolua_tonumber(tolua_S,2,0))
3232 #endif //#ifndef TOLUA_DISABLE
3234 /* get function: ambient of class meshio::mqo::Scene */
3235 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Scene_ambient
3236 static int tolua_get_meshio__mqo__Scene_ambient(lua_State* tolua_S)
3238 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3239 #ifndef TOLUA_RELEASE
3240 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
3242 tolua_pushusertype(tolua_S,(void*)&self->ambient,"meshio::Vector3");
3245 #endif //#ifndef TOLUA_DISABLE
3247 /* set function: ambient of class meshio::mqo::Scene */
3248 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Scene_ambient
3249 static int tolua_set_meshio__mqo__Scene_ambient(lua_State* tolua_S)
3251 meshio::mqo::Scene* self = (meshio::mqo::Scene*) tolua_tousertype(tolua_S,1,0);
3252 #ifndef TOLUA_RELEASE
3253 tolua_Error tolua_err;
3254 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
3255 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
3256 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3258 self->ambient = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
3262 #endif //#ifndef TOLUA_DISABLE
3264 /* get function: name of class meshio::mqo::Material */
3265 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_name
3266 static int tolua_get_meshio__mqo__Material_name(lua_State* tolua_S)
3268 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3269 #ifndef TOLUA_RELEASE
3270 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
3272 tolua_pushcppstring(tolua_S,(const char*)self->name);
3275 #endif //#ifndef TOLUA_DISABLE
3277 /* set function: name of class meshio::mqo::Material */
3278 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_name
3279 static int tolua_set_meshio__mqo__Material_name(lua_State* tolua_S)
3281 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3282 #ifndef TOLUA_RELEASE
3283 tolua_Error tolua_err;
3284 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
3285 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
3286 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3288 self->name = ((std::string) tolua_tocppstring(tolua_S,2,0))
3292 #endif //#ifndef TOLUA_DISABLE
3294 /* get function: shader of class meshio::mqo::Material */
3295 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_shader
3296 static int tolua_get_meshio__mqo__Material_shader(lua_State* tolua_S)
3298 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3299 #ifndef TOLUA_RELEASE
3300 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shader'",NULL);
3302 tolua_pushnumber(tolua_S,(lua_Number)self->shader);
3305 #endif //#ifndef TOLUA_DISABLE
3307 /* set function: shader of class meshio::mqo::Material */
3308 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_shader
3309 static int tolua_set_meshio__mqo__Material_shader(lua_State* tolua_S)
3311 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3312 #ifndef TOLUA_RELEASE
3313 tolua_Error tolua_err;
3314 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shader'",NULL);
3315 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3316 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3318 self->shader = ((int) tolua_tonumber(tolua_S,2,0))
3322 #endif //#ifndef TOLUA_DISABLE
3324 /* get function: color of class meshio::mqo::Material */
3325 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_color
3326 static int tolua_get_meshio__mqo__Material_color(lua_State* tolua_S)
3328 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3329 #ifndef TOLUA_RELEASE
3330 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color'",NULL);
3332 tolua_pushusertype(tolua_S,(void*)&self->color,"meshio::fRGBA");
3335 #endif //#ifndef TOLUA_DISABLE
3337 /* set function: color of class meshio::mqo::Material */
3338 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_color
3339 static int tolua_set_meshio__mqo__Material_color(lua_State* tolua_S)
3341 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3342 #ifndef TOLUA_RELEASE
3343 tolua_Error tolua_err;
3344 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color'",NULL);
3345 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::fRGBA",0,&tolua_err)))
3346 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3348 self->color = *((meshio::fRGBA*) tolua_tousertype(tolua_S,2,0))
3352 #endif //#ifndef TOLUA_DISABLE
3354 /* get function: diffuse of class meshio::mqo::Material */
3355 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_diffuse
3356 static int tolua_get_meshio__mqo__Material_diffuse(lua_State* tolua_S)
3358 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3359 #ifndef TOLUA_RELEASE
3360 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'diffuse'",NULL);
3362 tolua_pushnumber(tolua_S,(lua_Number)self->diffuse);
3365 #endif //#ifndef TOLUA_DISABLE
3367 /* set function: diffuse of class meshio::mqo::Material */
3368 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_diffuse
3369 static int tolua_set_meshio__mqo__Material_diffuse(lua_State* tolua_S)
3371 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3372 #ifndef TOLUA_RELEASE
3373 tolua_Error tolua_err;
3374 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'diffuse'",NULL);
3375 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3376 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3378 self->diffuse = ((float) tolua_tonumber(tolua_S,2,0))
3382 #endif //#ifndef TOLUA_DISABLE
3384 /* get function: ambient of class meshio::mqo::Material */
3385 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_ambient
3386 static int tolua_get_meshio__mqo__Material_ambient(lua_State* tolua_S)
3388 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3389 #ifndef TOLUA_RELEASE
3390 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
3392 tolua_pushnumber(tolua_S,(lua_Number)self->ambient);
3395 #endif //#ifndef TOLUA_DISABLE
3397 /* set function: ambient of class meshio::mqo::Material */
3398 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_ambient
3399 static int tolua_set_meshio__mqo__Material_ambient(lua_State* tolua_S)
3401 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3402 #ifndef TOLUA_RELEASE
3403 tolua_Error tolua_err;
3404 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'ambient'",NULL);
3405 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3406 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3408 self->ambient = ((float) tolua_tonumber(tolua_S,2,0))
3412 #endif //#ifndef TOLUA_DISABLE
3414 /* get function: emit of class meshio::mqo::Material */
3415 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_emit
3416 static int tolua_get_meshio__mqo__Material_emit(lua_State* tolua_S)
3418 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3419 #ifndef TOLUA_RELEASE
3420 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'emit'",NULL);
3422 tolua_pushnumber(tolua_S,(lua_Number)self->emit);
3425 #endif //#ifndef TOLUA_DISABLE
3427 /* set function: emit of class meshio::mqo::Material */
3428 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_emit
3429 static int tolua_set_meshio__mqo__Material_emit(lua_State* tolua_S)
3431 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3432 #ifndef TOLUA_RELEASE
3433 tolua_Error tolua_err;
3434 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'emit'",NULL);
3435 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3436 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3438 self->emit = ((float) tolua_tonumber(tolua_S,2,0))
3442 #endif //#ifndef TOLUA_DISABLE
3444 /* get function: specular of class meshio::mqo::Material */
3445 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_specular
3446 static int tolua_get_meshio__mqo__Material_specular(lua_State* tolua_S)
3448 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3449 #ifndef TOLUA_RELEASE
3450 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'specular'",NULL);
3452 tolua_pushnumber(tolua_S,(lua_Number)self->specular);
3455 #endif //#ifndef TOLUA_DISABLE
3457 /* set function: specular of class meshio::mqo::Material */
3458 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_specular
3459 static int tolua_set_meshio__mqo__Material_specular(lua_State* tolua_S)
3461 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3462 #ifndef TOLUA_RELEASE
3463 tolua_Error tolua_err;
3464 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'specular'",NULL);
3465 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3466 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3468 self->specular = ((float) tolua_tonumber(tolua_S,2,0))
3472 #endif //#ifndef TOLUA_DISABLE
3474 /* get function: power of class meshio::mqo::Material */
3475 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_power
3476 static int tolua_get_meshio__mqo__Material_power(lua_State* tolua_S)
3478 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3479 #ifndef TOLUA_RELEASE
3480 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'power'",NULL);
3482 tolua_pushnumber(tolua_S,(lua_Number)self->power);
3485 #endif //#ifndef TOLUA_DISABLE
3487 /* set function: power of class meshio::mqo::Material */
3488 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_power
3489 static int tolua_set_meshio__mqo__Material_power(lua_State* tolua_S)
3491 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3492 #ifndef TOLUA_RELEASE
3493 tolua_Error tolua_err;
3494 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'power'",NULL);
3495 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3496 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3498 self->power = ((float) tolua_tonumber(tolua_S,2,0))
3502 #endif //#ifndef TOLUA_DISABLE
3504 /* get function: texture of class meshio::mqo::Material */
3505 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_texture
3506 static int tolua_get_meshio__mqo__Material_texture(lua_State* tolua_S)
3508 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3509 #ifndef TOLUA_RELEASE
3510 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'texture'",NULL);
3512 tolua_pushcppstring(tolua_S,(const char*)self->texture);
3515 #endif //#ifndef TOLUA_DISABLE
3517 /* set function: texture of class meshio::mqo::Material */
3518 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_texture
3519 static int tolua_set_meshio__mqo__Material_texture(lua_State* tolua_S)
3521 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3522 #ifndef TOLUA_RELEASE
3523 tolua_Error tolua_err;
3524 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'texture'",NULL);
3525 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
3526 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3528 self->texture = ((std::string) tolua_tocppstring(tolua_S,2,0))
3532 #endif //#ifndef TOLUA_DISABLE
3534 /* get function: alphamap of class meshio::mqo::Material */
3535 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_alphamap
3536 static int tolua_get_meshio__mqo__Material_alphamap(lua_State* tolua_S)
3538 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3539 #ifndef TOLUA_RELEASE
3540 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'alphamap'",NULL);
3542 tolua_pushcppstring(tolua_S,(const char*)self->alphamap);
3545 #endif //#ifndef TOLUA_DISABLE
3547 /* set function: alphamap of class meshio::mqo::Material */
3548 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_alphamap
3549 static int tolua_set_meshio__mqo__Material_alphamap(lua_State* tolua_S)
3551 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3552 #ifndef TOLUA_RELEASE
3553 tolua_Error tolua_err;
3554 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'alphamap'",NULL);
3555 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
3556 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3558 self->alphamap = ((std::string) tolua_tocppstring(tolua_S,2,0))
3562 #endif //#ifndef TOLUA_DISABLE
3564 /* get function: bumpmap of class meshio::mqo::Material */
3565 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_bumpmap
3566 static int tolua_get_meshio__mqo__Material_bumpmap(lua_State* tolua_S)
3568 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3569 #ifndef TOLUA_RELEASE
3570 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bumpmap'",NULL);
3572 tolua_pushcppstring(tolua_S,(const char*)self->bumpmap);
3575 #endif //#ifndef TOLUA_DISABLE
3577 /* set function: bumpmap of class meshio::mqo::Material */
3578 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_bumpmap
3579 static int tolua_set_meshio__mqo__Material_bumpmap(lua_State* tolua_S)
3581 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3582 #ifndef TOLUA_RELEASE
3583 tolua_Error tolua_err;
3584 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'bumpmap'",NULL);
3585 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
3586 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3588 self->bumpmap = ((std::string) tolua_tocppstring(tolua_S,2,0))
3592 #endif //#ifndef TOLUA_DISABLE
3594 /* get function: vcol of class meshio::mqo::Material */
3595 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Material_vcol
3596 static int tolua_get_meshio__mqo__Material_vcol(lua_State* tolua_S)
3598 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3599 #ifndef TOLUA_RELEASE
3600 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vcol'",NULL);
3602 tolua_pushnumber(tolua_S,(lua_Number)self->vcol);
3605 #endif //#ifndef TOLUA_DISABLE
3607 /* set function: vcol of class meshio::mqo::Material */
3608 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Material_vcol
3609 static int tolua_set_meshio__mqo__Material_vcol(lua_State* tolua_S)
3611 meshio::mqo::Material* self = (meshio::mqo::Material*) tolua_tousertype(tolua_S,1,0);
3612 #ifndef TOLUA_RELEASE
3613 tolua_Error tolua_err;
3614 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vcol'",NULL);
3615 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3616 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3618 self->vcol = ((int) tolua_tonumber(tolua_S,2,0))
3622 #endif //#ifndef TOLUA_DISABLE
3624 /* get function: index_count of class meshio::mqo::Face */
3625 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Face_unsigned_index_count
3626 static int tolua_get_meshio__mqo__Face_unsigned_index_count(lua_State* tolua_S)
3628 meshio::mqo::Face* self = (meshio::mqo::Face*) tolua_tousertype(tolua_S,1,0);
3629 #ifndef TOLUA_RELEASE
3630 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index_count'",NULL);
3632 tolua_pushnumber(tolua_S,(lua_Number)self->index_count);
3635 #endif //#ifndef TOLUA_DISABLE
3637 /* set function: index_count of class meshio::mqo::Face */
3638 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Face_unsigned_index_count
3639 static int tolua_set_meshio__mqo__Face_unsigned_index_count(lua_State* tolua_S)
3641 meshio::mqo::Face* self = (meshio::mqo::Face*) tolua_tousertype(tolua_S,1,0);
3642 #ifndef TOLUA_RELEASE
3643 tolua_Error tolua_err;
3644 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'index_count'",NULL);
3645 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3646 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3648 self->index_count = ((unsigned int) tolua_tonumber(tolua_S,2,0))
3652 #endif //#ifndef TOLUA_DISABLE
3653 /* get function: indices of class meshio::mqo::Face */
3654 #ifndef TOLUA_DISABLE_tolua_get_lmeshio_meshio_mqo_Face_indices
3655 static int tolua_get_lmeshio_meshio_mqo_Face_indices(lua_State* tolua_S)
3658 meshio::mqo::Face* self;
3659 lua_pushstring(tolua_S,".self");
3660 lua_rawget(tolua_S,1);
3661 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3662 #ifndef TOLUA_RELEASE
3664 tolua_Error tolua_err;
3665 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3666 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3669 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3670 #ifndef TOLUA_RELEASE
3671 if (tolua_index<0 || tolua_index>=4)
3672 tolua_error(tolua_S,"array indexing out of range.",NULL);
3674 tolua_pushnumber(tolua_S,(lua_Number)self->indices[tolua_index]);
3677 #endif //#ifndef TOLUA_DISABLE
3680 /* set function: indices of class meshio::mqo::Face */
3681 #ifndef TOLUA_DISABLE_tolua_set_lmeshio_meshio_mqo_Face_indices
3682 static int tolua_set_lmeshio_meshio_mqo_Face_indices(lua_State* tolua_S)
3685 meshio::mqo::Face* self;
3686 lua_pushstring(tolua_S,".self");
3687 lua_rawget(tolua_S,1);
3688 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3689 #ifndef TOLUA_RELEASE
3691 tolua_Error tolua_err;
3692 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3693 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3696 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3697 #ifndef TOLUA_RELEASE
3698 if (tolua_index<0 || tolua_index>=4)
3699 tolua_error(tolua_S,"array indexing out of range.",NULL);
3701 self->indices[tolua_index] = ((unsigned int) tolua_tonumber(tolua_S,3,0));
3704 #endif //#ifndef TOLUA_DISABLE
3707 /* get function: material_index of class meshio::mqo::Face */
3708 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Face_unsigned_material_index
3709 static int tolua_get_meshio__mqo__Face_unsigned_material_index(lua_State* tolua_S)
3711 meshio::mqo::Face* self = (meshio::mqo::Face*) tolua_tousertype(tolua_S,1,0);
3712 #ifndef TOLUA_RELEASE
3713 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'material_index'",NULL);
3715 tolua_pushnumber(tolua_S,(lua_Number)self->material_index);
3718 #endif //#ifndef TOLUA_DISABLE
3720 /* set function: material_index of class meshio::mqo::Face */
3721 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Face_unsigned_material_index
3722 static int tolua_set_meshio__mqo__Face_unsigned_material_index(lua_State* tolua_S)
3724 meshio::mqo::Face* self = (meshio::mqo::Face*) tolua_tousertype(tolua_S,1,0);
3725 #ifndef TOLUA_RELEASE
3726 tolua_Error tolua_err;
3727 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'material_index'",NULL);
3728 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3729 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3731 self->material_index = ((unsigned int) tolua_tonumber(tolua_S,2,0))
3735 #endif //#ifndef TOLUA_DISABLE
3736 /* get function: uv of class meshio::mqo::Face */
3737 #ifndef TOLUA_DISABLE_tolua_get_lmeshio_meshio_mqo_Face_uv
3738 static int tolua_get_lmeshio_meshio_mqo_Face_uv(lua_State* tolua_S)
3741 meshio::mqo::Face* self;
3742 lua_pushstring(tolua_S,".self");
3743 lua_rawget(tolua_S,1);
3744 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3745 #ifndef TOLUA_RELEASE
3747 tolua_Error tolua_err;
3748 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3749 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3752 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3753 #ifndef TOLUA_RELEASE
3754 if (tolua_index<0 || tolua_index>=4)
3755 tolua_error(tolua_S,"array indexing out of range.",NULL);
3757 tolua_pushusertype(tolua_S,(void*)&self->uv[tolua_index],"meshio::Vector2");
3760 #endif //#ifndef TOLUA_DISABLE
3763 /* set function: uv of class meshio::mqo::Face */
3764 #ifndef TOLUA_DISABLE_tolua_set_lmeshio_meshio_mqo_Face_uv
3765 static int tolua_set_lmeshio_meshio_mqo_Face_uv(lua_State* tolua_S)
3768 meshio::mqo::Face* self;
3769 lua_pushstring(tolua_S,".self");
3770 lua_rawget(tolua_S,1);
3771 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3772 #ifndef TOLUA_RELEASE
3774 tolua_Error tolua_err;
3775 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3776 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3779 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3780 #ifndef TOLUA_RELEASE
3781 if (tolua_index<0 || tolua_index>=4)
3782 tolua_error(tolua_S,"array indexing out of range.",NULL);
3784 self->uv[tolua_index] = *((meshio::Vector2*) tolua_tousertype(tolua_S,3,0));
3787 #endif //#ifndef TOLUA_DISABLE
3789 /* get function: color of class meshio::mqo::Face */
3790 #ifndef TOLUA_DISABLE_tolua_get_lmeshio_meshio_mqo_Face_color
3791 static int tolua_get_lmeshio_meshio_mqo_Face_color(lua_State* tolua_S)
3794 meshio::mqo::Face* self;
3795 lua_pushstring(tolua_S,".self");
3796 lua_rawget(tolua_S,1);
3797 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3798 #ifndef TOLUA_RELEASE
3800 tolua_Error tolua_err;
3801 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3802 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3805 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3806 #ifndef TOLUA_RELEASE
3807 if (tolua_index<0 || tolua_index>=4)
3808 tolua_error(tolua_S,"array indexing out of range.",NULL);
3810 tolua_pushusertype(tolua_S,(void*)&self->color[tolua_index],"meshio::fRGBA");
3813 #endif //#ifndef TOLUA_DISABLE
3816 /* set function: color of class meshio::mqo::Face */
3817 #ifndef TOLUA_DISABLE_tolua_set_lmeshio_meshio_mqo_Face_color
3818 static int tolua_set_lmeshio_meshio_mqo_Face_color(lua_State* tolua_S)
3821 meshio::mqo::Face* self;
3822 lua_pushstring(tolua_S,".self");
3823 lua_rawget(tolua_S,1);
3824 self = (meshio::mqo::Face*) lua_touserdata(tolua_S,-1);
3825 #ifndef TOLUA_RELEASE
3827 tolua_Error tolua_err;
3828 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3829 tolua_error(tolua_S,"#vinvalid type in array indexing.",&tolua_err);
3832 tolua_index = (int)tolua_tonumber(tolua_S,2,0);
3833 #ifndef TOLUA_RELEASE
3834 if (tolua_index<0 || tolua_index>=4)
3835 tolua_error(tolua_S,"array indexing out of range.",NULL);
3837 self->color[tolua_index] = *((meshio::fRGBA*) tolua_tousertype(tolua_S,3,0));
3840 #endif //#ifndef TOLUA_DISABLE
3843 /* get function: name of class meshio::mqo::Object */
3844 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_name
3845 static int tolua_get_meshio__mqo__Object_name(lua_State* tolua_S)
3847 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3848 #ifndef TOLUA_RELEASE
3849 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
3851 tolua_pushcppstring(tolua_S,(const char*)self->name);
3854 #endif //#ifndef TOLUA_DISABLE
3856 /* set function: name of class meshio::mqo::Object */
3857 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_name
3858 static int tolua_set_meshio__mqo__Object_name(lua_State* tolua_S)
3860 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3861 #ifndef TOLUA_RELEASE
3862 tolua_Error tolua_err;
3863 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'name'",NULL);
3864 if (!tolua_iscppstring(tolua_S,2,0,&tolua_err))
3865 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3867 self->name = ((std::string) tolua_tocppstring(tolua_S,2,0))
3871 #endif //#ifndef TOLUA_DISABLE
3873 /* get function: depth of class meshio::mqo::Object */
3874 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_depth
3875 static int tolua_get_meshio__mqo__Object_depth(lua_State* tolua_S)
3877 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3878 #ifndef TOLUA_RELEASE
3879 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'depth'",NULL);
3881 tolua_pushnumber(tolua_S,(lua_Number)self->depth);
3884 #endif //#ifndef TOLUA_DISABLE
3886 /* set function: depth of class meshio::mqo::Object */
3887 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_depth
3888 static int tolua_set_meshio__mqo__Object_depth(lua_State* tolua_S)
3890 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3891 #ifndef TOLUA_RELEASE
3892 tolua_Error tolua_err;
3893 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'depth'",NULL);
3894 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3895 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3897 self->depth = ((int) tolua_tonumber(tolua_S,2,0))
3901 #endif //#ifndef TOLUA_DISABLE
3903 /* get function: folding of class meshio::mqo::Object */
3904 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_folding
3905 static int tolua_get_meshio__mqo__Object_folding(lua_State* tolua_S)
3907 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3908 #ifndef TOLUA_RELEASE
3909 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'folding'",NULL);
3911 tolua_pushnumber(tolua_S,(lua_Number)self->folding);
3914 #endif //#ifndef TOLUA_DISABLE
3916 /* set function: folding of class meshio::mqo::Object */
3917 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_folding
3918 static int tolua_set_meshio__mqo__Object_folding(lua_State* tolua_S)
3920 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3921 #ifndef TOLUA_RELEASE
3922 tolua_Error tolua_err;
3923 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'folding'",NULL);
3924 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
3925 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3927 self->folding = ((int) tolua_tonumber(tolua_S,2,0))
3931 #endif //#ifndef TOLUA_DISABLE
3933 /* get function: scale of class meshio::mqo::Object */
3934 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_scale
3935 static int tolua_get_meshio__mqo__Object_scale(lua_State* tolua_S)
3937 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3938 #ifndef TOLUA_RELEASE
3939 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'scale'",NULL);
3941 tolua_pushusertype(tolua_S,(void*)&self->scale,"meshio::Vector3");
3944 #endif //#ifndef TOLUA_DISABLE
3946 /* set function: scale of class meshio::mqo::Object */
3947 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_scale
3948 static int tolua_set_meshio__mqo__Object_scale(lua_State* tolua_S)
3950 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3951 #ifndef TOLUA_RELEASE
3952 tolua_Error tolua_err;
3953 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'scale'",NULL);
3954 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
3955 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3957 self->scale = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
3961 #endif //#ifndef TOLUA_DISABLE
3963 /* get function: rotation of class meshio::mqo::Object */
3964 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_rotation
3965 static int tolua_get_meshio__mqo__Object_rotation(lua_State* tolua_S)
3967 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3968 #ifndef TOLUA_RELEASE
3969 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rotation'",NULL);
3971 tolua_pushusertype(tolua_S,(void*)&self->rotation,"meshio::Vector3");
3974 #endif //#ifndef TOLUA_DISABLE
3976 /* set function: rotation of class meshio::mqo::Object */
3977 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_rotation
3978 static int tolua_set_meshio__mqo__Object_rotation(lua_State* tolua_S)
3980 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3981 #ifndef TOLUA_RELEASE
3982 tolua_Error tolua_err;
3983 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'rotation'",NULL);
3984 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
3985 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
3987 self->rotation = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
3991 #endif //#ifndef TOLUA_DISABLE
3993 /* get function: translation of class meshio::mqo::Object */
3994 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_translation
3995 static int tolua_get_meshio__mqo__Object_translation(lua_State* tolua_S)
3997 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
3998 #ifndef TOLUA_RELEASE
3999 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'translation'",NULL);
4001 tolua_pushusertype(tolua_S,(void*)&self->translation,"meshio::Vector3");
4004 #endif //#ifndef TOLUA_DISABLE
4006 /* set function: translation of class meshio::mqo::Object */
4007 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_translation
4008 static int tolua_set_meshio__mqo__Object_translation(lua_State* tolua_S)
4010 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4011 #ifndef TOLUA_RELEASE
4012 tolua_Error tolua_err;
4013 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'translation'",NULL);
4014 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
4015 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4017 self->translation = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
4021 #endif //#ifndef TOLUA_DISABLE
4023 /* get function: visible of class meshio::mqo::Object */
4024 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_visible
4025 static int tolua_get_meshio__mqo__Object_visible(lua_State* tolua_S)
4027 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4028 #ifndef TOLUA_RELEASE
4029 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'visible'",NULL);
4031 tolua_pushnumber(tolua_S,(lua_Number)self->visible);
4034 #endif //#ifndef TOLUA_DISABLE
4036 /* set function: visible of class meshio::mqo::Object */
4037 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_visible
4038 static int tolua_set_meshio__mqo__Object_visible(lua_State* tolua_S)
4040 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4041 #ifndef TOLUA_RELEASE
4042 tolua_Error tolua_err;
4043 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'visible'",NULL);
4044 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4045 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4047 self->visible = ((int) tolua_tonumber(tolua_S,2,0))
4051 #endif //#ifndef TOLUA_DISABLE
4053 /* get function: locking of class meshio::mqo::Object */
4054 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_locking
4055 static int tolua_get_meshio__mqo__Object_locking(lua_State* tolua_S)
4057 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4058 #ifndef TOLUA_RELEASE
4059 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'locking'",NULL);
4061 tolua_pushnumber(tolua_S,(lua_Number)self->locking);
4064 #endif //#ifndef TOLUA_DISABLE
4066 /* set function: locking of class meshio::mqo::Object */
4067 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_locking
4068 static int tolua_set_meshio__mqo__Object_locking(lua_State* tolua_S)
4070 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4071 #ifndef TOLUA_RELEASE
4072 tolua_Error tolua_err;
4073 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'locking'",NULL);
4074 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4075 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4077 self->locking = ((int) tolua_tonumber(tolua_S,2,0))
4081 #endif //#ifndef TOLUA_DISABLE
4083 /* get function: shading of class meshio::mqo::Object */
4084 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_shading
4085 static int tolua_get_meshio__mqo__Object_shading(lua_State* tolua_S)
4087 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4088 #ifndef TOLUA_RELEASE
4089 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shading'",NULL);
4091 tolua_pushnumber(tolua_S,(lua_Number)self->shading);
4094 #endif //#ifndef TOLUA_DISABLE
4096 /* set function: shading of class meshio::mqo::Object */
4097 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_shading
4098 static int tolua_set_meshio__mqo__Object_shading(lua_State* tolua_S)
4100 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4101 #ifndef TOLUA_RELEASE
4102 tolua_Error tolua_err;
4103 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'shading'",NULL);
4104 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4105 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4107 self->shading = ((int) tolua_tonumber(tolua_S,2,0))
4111 #endif //#ifndef TOLUA_DISABLE
4113 /* get function: smoothing of class meshio::mqo::Object */
4114 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_smoothing
4115 static int tolua_get_meshio__mqo__Object_smoothing(lua_State* tolua_S)
4117 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4118 #ifndef TOLUA_RELEASE
4119 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'smoothing'",NULL);
4121 tolua_pushnumber(tolua_S,(lua_Number)self->smoothing);
4124 #endif //#ifndef TOLUA_DISABLE
4126 /* set function: smoothing of class meshio::mqo::Object */
4127 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_smoothing
4128 static int tolua_set_meshio__mqo__Object_smoothing(lua_State* tolua_S)
4130 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4131 #ifndef TOLUA_RELEASE
4132 tolua_Error tolua_err;
4133 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'smoothing'",NULL);
4134 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4135 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4137 self->smoothing = ((float) tolua_tonumber(tolua_S,2,0))
4141 #endif //#ifndef TOLUA_DISABLE
4143 /* get function: color of class meshio::mqo::Object */
4144 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_color
4145 static int tolua_get_meshio__mqo__Object_color(lua_State* tolua_S)
4147 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4148 #ifndef TOLUA_RELEASE
4149 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color'",NULL);
4151 tolua_pushusertype(tolua_S,(void*)&self->color,"meshio::Vector3");
4154 #endif //#ifndef TOLUA_DISABLE
4156 /* set function: color of class meshio::mqo::Object */
4157 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_color
4158 static int tolua_set_meshio__mqo__Object_color(lua_State* tolua_S)
4160 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4161 #ifndef TOLUA_RELEASE
4162 tolua_Error tolua_err;
4163 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color'",NULL);
4164 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)))
4165 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4167 self->color = *((meshio::Vector3*) tolua_tousertype(tolua_S,2,0))
4171 #endif //#ifndef TOLUA_DISABLE
4173 /* get function: color_type of class meshio::mqo::Object */
4174 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_color_type
4175 static int tolua_get_meshio__mqo__Object_color_type(lua_State* tolua_S)
4177 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4178 #ifndef TOLUA_RELEASE
4179 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_type'",NULL);
4181 tolua_pushnumber(tolua_S,(lua_Number)self->color_type);
4184 #endif //#ifndef TOLUA_DISABLE
4186 /* set function: color_type of class meshio::mqo::Object */
4187 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_color_type
4188 static int tolua_set_meshio__mqo__Object_color_type(lua_State* tolua_S)
4190 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4191 #ifndef TOLUA_RELEASE
4192 tolua_Error tolua_err;
4193 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'color_type'",NULL);
4194 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4195 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4197 self->color_type = ((int) tolua_tonumber(tolua_S,2,0))
4201 #endif //#ifndef TOLUA_DISABLE
4203 /* get function: mirror of class meshio::mqo::Object */
4204 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_mirror
4205 static int tolua_get_meshio__mqo__Object_mirror(lua_State* tolua_S)
4207 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4208 #ifndef TOLUA_RELEASE
4209 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mirror'",NULL);
4211 tolua_pushnumber(tolua_S,(lua_Number)self->mirror);
4214 #endif //#ifndef TOLUA_DISABLE
4216 /* set function: mirror of class meshio::mqo::Object */
4217 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_mirror
4218 static int tolua_set_meshio__mqo__Object_mirror(lua_State* tolua_S)
4220 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4221 #ifndef TOLUA_RELEASE
4222 tolua_Error tolua_err;
4223 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'mirror'",NULL);
4224 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4225 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4227 self->mirror = ((int) tolua_tonumber(tolua_S,2,0))
4231 #endif //#ifndef TOLUA_DISABLE
4233 /* get function: vertices of class meshio::mqo::Object */
4234 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_vertices
4235 static int tolua_get_meshio__mqo__Object_vertices(lua_State* tolua_S)
4237 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4238 #ifndef TOLUA_RELEASE
4239 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertices'",NULL);
4241 tolua_pushusertype(tolua_S,(void*)&self->vertices,"std::vector<meshio::Vector3>");
4244 #endif //#ifndef TOLUA_DISABLE
4246 /* set function: vertices of class meshio::mqo::Object */
4247 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_vertices
4248 static int tolua_set_meshio__mqo__Object_vertices(lua_State* tolua_S)
4250 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4251 #ifndef TOLUA_RELEASE
4252 tolua_Error tolua_err;
4253 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'vertices'",NULL);
4254 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::Vector3>",0,&tolua_err)))
4255 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4257 self->vertices = *((std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,2,0))
4261 #endif //#ifndef TOLUA_DISABLE
4263 /* get function: faces of class meshio::mqo::Object */
4264 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__Object_faces
4265 static int tolua_get_meshio__mqo__Object_faces(lua_State* tolua_S)
4267 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4268 #ifndef TOLUA_RELEASE
4269 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'faces'",NULL);
4271 tolua_pushusertype(tolua_S,(void*)&self->faces,"std::vector<meshio::mqo::Face>");
4274 #endif //#ifndef TOLUA_DISABLE
4276 /* set function: faces of class meshio::mqo::Object */
4277 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__Object_faces
4278 static int tolua_set_meshio__mqo__Object_faces(lua_State* tolua_S)
4280 meshio::mqo::Object* self = (meshio::mqo::Object*) tolua_tousertype(tolua_S,1,0);
4281 #ifndef TOLUA_RELEASE
4282 tolua_Error tolua_err;
4283 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'faces'",NULL);
4284 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::mqo::Face>",0,&tolua_err)))
4285 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4287 self->faces = *((std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,2,0))
4291 #endif //#ifndef TOLUA_DISABLE
4293 /* get function: scene of class meshio::mqo::IO */
4294 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__IO_scene
4295 static int tolua_get_meshio__mqo__IO_scene(lua_State* tolua_S)
4297 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4298 #ifndef TOLUA_RELEASE
4299 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'scene'",NULL);
4301 tolua_pushusertype(tolua_S,(void*)&self->scene,"meshio::mqo::Scene");
4304 #endif //#ifndef TOLUA_DISABLE
4306 /* set function: scene of class meshio::mqo::IO */
4307 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__IO_scene
4308 static int tolua_set_meshio__mqo__IO_scene(lua_State* tolua_S)
4310 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4311 #ifndef TOLUA_RELEASE
4312 tolua_Error tolua_err;
4313 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'scene'",NULL);
4314 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::mqo::Scene",0,&tolua_err)))
4315 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4317 self->scene = *((meshio::mqo::Scene*) tolua_tousertype(tolua_S,2,0))
4321 #endif //#ifndef TOLUA_DISABLE
4323 /* get function: materials of class meshio::mqo::IO */
4324 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__IO_materials
4325 static int tolua_get_meshio__mqo__IO_materials(lua_State* tolua_S)
4327 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4328 #ifndef TOLUA_RELEASE
4329 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'materials'",NULL);
4331 tolua_pushusertype(tolua_S,(void*)&self->materials,"std::vector<meshio::mqo::Material>");
4334 #endif //#ifndef TOLUA_DISABLE
4336 /* set function: materials of class meshio::mqo::IO */
4337 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__IO_materials
4338 static int tolua_set_meshio__mqo__IO_materials(lua_State* tolua_S)
4340 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4341 #ifndef TOLUA_RELEASE
4342 tolua_Error tolua_err;
4343 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'materials'",NULL);
4344 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::mqo::Material>",0,&tolua_err)))
4345 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4347 self->materials = *((std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,2,0))
4351 #endif //#ifndef TOLUA_DISABLE
4353 /* get function: objects of class meshio::mqo::IO */
4354 #ifndef TOLUA_DISABLE_tolua_get_meshio__mqo__IO_objects
4355 static int tolua_get_meshio__mqo__IO_objects(lua_State* tolua_S)
4357 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4358 #ifndef TOLUA_RELEASE
4359 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'objects'",NULL);
4361 tolua_pushusertype(tolua_S,(void*)&self->objects,"std::vector<meshio::mqo::Object>");
4364 #endif //#ifndef TOLUA_DISABLE
4366 /* set function: objects of class meshio::mqo::IO */
4367 #ifndef TOLUA_DISABLE_tolua_set_meshio__mqo__IO_objects
4368 static int tolua_set_meshio__mqo__IO_objects(lua_State* tolua_S)
4370 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4371 #ifndef TOLUA_RELEASE
4372 tolua_Error tolua_err;
4373 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'objects'",NULL);
4374 if ((tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::vector<meshio::mqo::Object>",0,&tolua_err)))
4375 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4377 self->objects = *((std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,2,0))
4381 #endif //#ifndef TOLUA_DISABLE
4383 /* method: new of class meshio::mqo::IO */
4384 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_mqo_IO_new00
4385 static int tolua_lmeshio_meshio_mqo_IO_new00(lua_State* tolua_S)
4387 #ifndef TOLUA_RELEASE
4388 tolua_Error tolua_err;
4390 !tolua_isusertable(tolua_S,1,"meshio::mqo::IO",0,&tolua_err) ||
4391 !tolua_isnoobj(tolua_S,2,&tolua_err)
4400 meshio::mqo::IO* tolua_ret = (meshio::mqo::IO*) Mtolua_new((meshio::mqo::IO)());
4401 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::mqo::IO");
4406 #ifndef TOLUA_RELEASE
4408 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4412 #endif //#ifndef TOLUA_DISABLE
4414 /* method: new_local of class meshio::mqo::IO */
4415 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_mqo_IO_new00_local
4416 static int tolua_lmeshio_meshio_mqo_IO_new00_local(lua_State* tolua_S)
4418 #ifndef TOLUA_RELEASE
4419 tolua_Error tolua_err;
4421 !tolua_isusertable(tolua_S,1,"meshio::mqo::IO",0,&tolua_err) ||
4422 !tolua_isnoobj(tolua_S,2,&tolua_err)
4431 meshio::mqo::IO* tolua_ret = (meshio::mqo::IO*) Mtolua_new((meshio::mqo::IO)());
4432 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::mqo::IO");
4433 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4438 #ifndef TOLUA_RELEASE
4440 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4444 #endif //#ifndef TOLUA_DISABLE
4446 /* method: read of class meshio::mqo::IO */
4447 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_mqo_IO_read00
4448 static int tolua_lmeshio_meshio_mqo_IO_read00(lua_State* tolua_S)
4450 #ifndef TOLUA_RELEASE
4451 tolua_Error tolua_err;
4453 !tolua_isusertype(tolua_S,1,"meshio::mqo::IO",0,&tolua_err) ||
4454 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4455 !tolua_isnoobj(tolua_S,3,&tolua_err)
4461 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4462 const char* path = ((const char*) tolua_tostring(tolua_S,2,0));
4463 #ifndef TOLUA_RELEASE
4464 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'read'", NULL);
4467 bool tolua_ret = (bool) self->read(path);
4468 tolua_pushboolean(tolua_S,(bool)tolua_ret);
4474 #ifndef TOLUA_RELEASE
4476 tolua_error(tolua_S,"#ferror in function 'read'.",&tolua_err);
4480 #endif //#ifndef TOLUA_DISABLE
4482 /* method: write of class meshio::mqo::IO */
4483 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_mqo_IO_write00
4484 static int tolua_lmeshio_meshio_mqo_IO_write00(lua_State* tolua_S)
4486 #ifndef TOLUA_RELEASE
4487 tolua_Error tolua_err;
4489 !tolua_isusertype(tolua_S,1,"meshio::mqo::IO",0,&tolua_err) ||
4490 !tolua_isstring(tolua_S,2,0,&tolua_err) ||
4491 !tolua_isnoobj(tolua_S,3,&tolua_err)
4497 meshio::mqo::IO* self = (meshio::mqo::IO*) tolua_tousertype(tolua_S,1,0);
4498 const char* path = ((const char*) tolua_tostring(tolua_S,2,0));
4499 #ifndef TOLUA_RELEASE
4500 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'write'", NULL);
4503 bool tolua_ret = (bool) self->write(path);
4504 tolua_pushboolean(tolua_S,(bool)tolua_ret);
4510 #ifndef TOLUA_RELEASE
4512 tolua_error(tolua_S,"#ferror in function 'write'.",&tolua_err);
4516 #endif //#ifndef TOLUA_DISABLE
4518 /* get function: x of class meshio::Vector2 */
4519 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector2_x
4520 static int tolua_get_meshio__Vector2_x(lua_State* tolua_S)
4522 meshio::Vector2* self = (meshio::Vector2*) tolua_tousertype(tolua_S,1,0);
4523 #ifndef TOLUA_RELEASE
4524 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4526 tolua_pushnumber(tolua_S,(lua_Number)self->x);
4529 #endif //#ifndef TOLUA_DISABLE
4531 /* set function: x of class meshio::Vector2 */
4532 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector2_x
4533 static int tolua_set_meshio__Vector2_x(lua_State* tolua_S)
4535 meshio::Vector2* self = (meshio::Vector2*) tolua_tousertype(tolua_S,1,0);
4536 #ifndef TOLUA_RELEASE
4537 tolua_Error tolua_err;
4538 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4539 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4540 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4542 self->x = ((float) tolua_tonumber(tolua_S,2,0))
4546 #endif //#ifndef TOLUA_DISABLE
4548 /* get function: y of class meshio::Vector2 */
4549 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector2_y
4550 static int tolua_get_meshio__Vector2_y(lua_State* tolua_S)
4552 meshio::Vector2* self = (meshio::Vector2*) tolua_tousertype(tolua_S,1,0);
4553 #ifndef TOLUA_RELEASE
4554 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
4556 tolua_pushnumber(tolua_S,(lua_Number)self->y);
4559 #endif //#ifndef TOLUA_DISABLE
4561 /* set function: y of class meshio::Vector2 */
4562 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector2_y
4563 static int tolua_set_meshio__Vector2_y(lua_State* tolua_S)
4565 meshio::Vector2* self = (meshio::Vector2*) tolua_tousertype(tolua_S,1,0);
4566 #ifndef TOLUA_RELEASE
4567 tolua_Error tolua_err;
4568 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
4569 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4570 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4572 self->y = ((float) tolua_tonumber(tolua_S,2,0))
4576 #endif //#ifndef TOLUA_DISABLE
4578 /* method: new of class meshio::Vector2 */
4579 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector2_new00
4580 static int tolua_lmeshio_meshio_Vector2_new00(lua_State* tolua_S)
4582 #ifndef TOLUA_RELEASE
4583 tolua_Error tolua_err;
4585 !tolua_isusertable(tolua_S,1,"meshio::Vector2",0,&tolua_err) ||
4586 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4587 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4588 !tolua_isnoobj(tolua_S,4,&tolua_err)
4595 float _x = ((float) tolua_tonumber(tolua_S,2,0));
4596 float _y = ((float) tolua_tonumber(tolua_S,3,0));
4599 meshio::Vector2* tolua_ret = (meshio::Vector2*) Mtolua_new((meshio::Vector2)(_x,_y));
4600 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector2");
4607 #ifndef TOLUA_RELEASE
4609 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4613 #endif //#ifndef TOLUA_DISABLE
4615 /* method: new_local of class meshio::Vector2 */
4616 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector2_new00_local
4617 static int tolua_lmeshio_meshio_Vector2_new00_local(lua_State* tolua_S)
4619 #ifndef TOLUA_RELEASE
4620 tolua_Error tolua_err;
4622 !tolua_isusertable(tolua_S,1,"meshio::Vector2",0,&tolua_err) ||
4623 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4624 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4625 !tolua_isnoobj(tolua_S,4,&tolua_err)
4632 float _x = ((float) tolua_tonumber(tolua_S,2,0));
4633 float _y = ((float) tolua_tonumber(tolua_S,3,0));
4636 meshio::Vector2* tolua_ret = (meshio::Vector2*) Mtolua_new((meshio::Vector2)(_x,_y));
4637 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector2");
4638 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4645 #ifndef TOLUA_RELEASE
4647 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4651 #endif //#ifndef TOLUA_DISABLE
4653 /* get function: x of class meshio::Vector3 */
4654 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector3_x
4655 static int tolua_get_meshio__Vector3_x(lua_State* tolua_S)
4657 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4658 #ifndef TOLUA_RELEASE
4659 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4661 tolua_pushnumber(tolua_S,(lua_Number)self->x);
4664 #endif //#ifndef TOLUA_DISABLE
4666 /* set function: x of class meshio::Vector3 */
4667 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector3_x
4668 static int tolua_set_meshio__Vector3_x(lua_State* tolua_S)
4670 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4671 #ifndef TOLUA_RELEASE
4672 tolua_Error tolua_err;
4673 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4674 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4675 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4677 self->x = ((float) tolua_tonumber(tolua_S,2,0))
4681 #endif //#ifndef TOLUA_DISABLE
4683 /* get function: y of class meshio::Vector3 */
4684 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector3_y
4685 static int tolua_get_meshio__Vector3_y(lua_State* tolua_S)
4687 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4688 #ifndef TOLUA_RELEASE
4689 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
4691 tolua_pushnumber(tolua_S,(lua_Number)self->y);
4694 #endif //#ifndef TOLUA_DISABLE
4696 /* set function: y of class meshio::Vector3 */
4697 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector3_y
4698 static int tolua_set_meshio__Vector3_y(lua_State* tolua_S)
4700 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4701 #ifndef TOLUA_RELEASE
4702 tolua_Error tolua_err;
4703 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
4704 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4705 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4707 self->y = ((float) tolua_tonumber(tolua_S,2,0))
4711 #endif //#ifndef TOLUA_DISABLE
4713 /* get function: z of class meshio::Vector3 */
4714 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector3_z
4715 static int tolua_get_meshio__Vector3_z(lua_State* tolua_S)
4717 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4718 #ifndef TOLUA_RELEASE
4719 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
4721 tolua_pushnumber(tolua_S,(lua_Number)self->z);
4724 #endif //#ifndef TOLUA_DISABLE
4726 /* set function: z of class meshio::Vector3 */
4727 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector3_z
4728 static int tolua_set_meshio__Vector3_z(lua_State* tolua_S)
4730 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4731 #ifndef TOLUA_RELEASE
4732 tolua_Error tolua_err;
4733 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
4734 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4735 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4737 self->z = ((float) tolua_tonumber(tolua_S,2,0))
4741 #endif //#ifndef TOLUA_DISABLE
4743 /* method: new of class meshio::Vector3 */
4744 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector3_new00
4745 static int tolua_lmeshio_meshio_Vector3_new00(lua_State* tolua_S)
4747 #ifndef TOLUA_RELEASE
4748 tolua_Error tolua_err;
4750 !tolua_isusertable(tolua_S,1,"meshio::Vector3",0,&tolua_err) ||
4751 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4752 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4753 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4754 !tolua_isnoobj(tolua_S,5,&tolua_err)
4761 float _x = ((float) tolua_tonumber(tolua_S,2,0));
4762 float _y = ((float) tolua_tonumber(tolua_S,3,0));
4763 float _z = ((float) tolua_tonumber(tolua_S,4,0));
4766 meshio::Vector3* tolua_ret = (meshio::Vector3*) Mtolua_new((meshio::Vector3)(_x,_y,_z));
4767 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector3");
4775 #ifndef TOLUA_RELEASE
4777 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4781 #endif //#ifndef TOLUA_DISABLE
4783 /* method: new_local of class meshio::Vector3 */
4784 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector3_new00_local
4785 static int tolua_lmeshio_meshio_Vector3_new00_local(lua_State* tolua_S)
4787 #ifndef TOLUA_RELEASE
4788 tolua_Error tolua_err;
4790 !tolua_isusertable(tolua_S,1,"meshio::Vector3",0,&tolua_err) ||
4791 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
4792 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
4793 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
4794 !tolua_isnoobj(tolua_S,5,&tolua_err)
4801 float _x = ((float) tolua_tonumber(tolua_S,2,0));
4802 float _y = ((float) tolua_tonumber(tolua_S,3,0));
4803 float _z = ((float) tolua_tonumber(tolua_S,4,0));
4806 meshio::Vector3* tolua_ret = (meshio::Vector3*) Mtolua_new((meshio::Vector3)(_x,_y,_z));
4807 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector3");
4808 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4816 #ifndef TOLUA_RELEASE
4818 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
4822 #endif //#ifndef TOLUA_DISABLE
4824 /* method: operator== of class meshio::Vector3 */
4825 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector3__eq00
4826 static int tolua_lmeshio_meshio_Vector3__eq00(lua_State* tolua_S)
4828 #ifndef TOLUA_RELEASE
4829 tolua_Error tolua_err;
4831 !tolua_isusertype(tolua_S,1,"const meshio::Vector3",0,&tolua_err) ||
4832 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const meshio::Vector3",0,&tolua_err)) ||
4833 !tolua_isnoobj(tolua_S,3,&tolua_err)
4839 const meshio::Vector3* self = (const meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4840 const meshio::Vector3* rhs = ((const meshio::Vector3*) tolua_tousertype(tolua_S,2,0));
4841 #ifndef TOLUA_RELEASE
4842 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator=='", NULL);
4845 bool tolua_ret = (bool) self->operator==(*rhs);
4846 tolua_pushboolean(tolua_S,(bool)tolua_ret);
4852 #ifndef TOLUA_RELEASE
4854 tolua_error(tolua_S,"#ferror in function '.eq'.",&tolua_err);
4858 #endif //#ifndef TOLUA_DISABLE
4860 /* method: operator+ of class meshio::Vector3 */
4861 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector3__add00
4862 static int tolua_lmeshio_meshio_Vector3__add00(lua_State* tolua_S)
4864 #ifndef TOLUA_RELEASE
4865 tolua_Error tolua_err;
4867 !tolua_isusertype(tolua_S,1,"meshio::Vector3",0,&tolua_err) ||
4868 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const meshio::Vector3",0,&tolua_err)) ||
4869 !tolua_isnoobj(tolua_S,3,&tolua_err)
4875 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4876 const meshio::Vector3* rhs = ((const meshio::Vector3*) tolua_tousertype(tolua_S,2,0));
4877 #ifndef TOLUA_RELEASE
4878 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator+'", NULL);
4881 meshio::Vector3 tolua_ret = (meshio::Vector3) self->operator+(*rhs);
4884 void* tolua_obj = Mtolua_new((meshio::Vector3)(tolua_ret));
4885 tolua_pushusertype(tolua_S,tolua_obj,"meshio::Vector3");
4886 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4888 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(meshio::Vector3));
4889 tolua_pushusertype(tolua_S,tolua_obj,"meshio::Vector3");
4890 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4898 #ifndef TOLUA_RELEASE
4900 tolua_error(tolua_S,"#ferror in function '.add'.",&tolua_err);
4904 #endif //#ifndef TOLUA_DISABLE
4906 /* method: operator- of class meshio::Vector3 */
4907 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector3__sub00
4908 static int tolua_lmeshio_meshio_Vector3__sub00(lua_State* tolua_S)
4910 #ifndef TOLUA_RELEASE
4911 tolua_Error tolua_err;
4913 !tolua_isusertype(tolua_S,1,"meshio::Vector3",0,&tolua_err) ||
4914 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const meshio::Vector3",0,&tolua_err)) ||
4915 !tolua_isnoobj(tolua_S,3,&tolua_err)
4921 meshio::Vector3* self = (meshio::Vector3*) tolua_tousertype(tolua_S,1,0);
4922 const meshio::Vector3* rhs = ((const meshio::Vector3*) tolua_tousertype(tolua_S,2,0));
4923 #ifndef TOLUA_RELEASE
4924 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator-'", NULL);
4927 meshio::Vector3 tolua_ret = (meshio::Vector3) self->operator-(*rhs);
4930 void* tolua_obj = Mtolua_new((meshio::Vector3)(tolua_ret));
4931 tolua_pushusertype(tolua_S,tolua_obj,"meshio::Vector3");
4932 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4934 void* tolua_obj = tolua_copy(tolua_S,(void*)&tolua_ret,sizeof(meshio::Vector3));
4935 tolua_pushusertype(tolua_S,tolua_obj,"meshio::Vector3");
4936 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
4944 #ifndef TOLUA_RELEASE
4946 tolua_error(tolua_S,"#ferror in function '.sub'.",&tolua_err);
4950 #endif //#ifndef TOLUA_DISABLE
4952 /* get function: x of class meshio::Vector4 */
4953 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector4_x
4954 static int tolua_get_meshio__Vector4_x(lua_State* tolua_S)
4956 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
4957 #ifndef TOLUA_RELEASE
4958 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4960 tolua_pushnumber(tolua_S,(lua_Number)self->x);
4963 #endif //#ifndef TOLUA_DISABLE
4965 /* set function: x of class meshio::Vector4 */
4966 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector4_x
4967 static int tolua_set_meshio__Vector4_x(lua_State* tolua_S)
4969 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
4970 #ifndef TOLUA_RELEASE
4971 tolua_Error tolua_err;
4972 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
4973 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
4974 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
4976 self->x = ((float) tolua_tonumber(tolua_S,2,0))
4980 #endif //#ifndef TOLUA_DISABLE
4982 /* get function: y of class meshio::Vector4 */
4983 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector4_y
4984 static int tolua_get_meshio__Vector4_y(lua_State* tolua_S)
4986 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
4987 #ifndef TOLUA_RELEASE
4988 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
4990 tolua_pushnumber(tolua_S,(lua_Number)self->y);
4993 #endif //#ifndef TOLUA_DISABLE
4995 /* set function: y of class meshio::Vector4 */
4996 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector4_y
4997 static int tolua_set_meshio__Vector4_y(lua_State* tolua_S)
4999 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
5000 #ifndef TOLUA_RELEASE
5001 tolua_Error tolua_err;
5002 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
5003 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5004 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5006 self->y = ((float) tolua_tonumber(tolua_S,2,0))
5010 #endif //#ifndef TOLUA_DISABLE
5012 /* get function: z of class meshio::Vector4 */
5013 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector4_z
5014 static int tolua_get_meshio__Vector4_z(lua_State* tolua_S)
5016 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
5017 #ifndef TOLUA_RELEASE
5018 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
5020 tolua_pushnumber(tolua_S,(lua_Number)self->z);
5023 #endif //#ifndef TOLUA_DISABLE
5025 /* set function: z of class meshio::Vector4 */
5026 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector4_z
5027 static int tolua_set_meshio__Vector4_z(lua_State* tolua_S)
5029 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
5030 #ifndef TOLUA_RELEASE
5031 tolua_Error tolua_err;
5032 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
5033 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5034 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5036 self->z = ((float) tolua_tonumber(tolua_S,2,0))
5040 #endif //#ifndef TOLUA_DISABLE
5042 /* get function: w of class meshio::Vector4 */
5043 #ifndef TOLUA_DISABLE_tolua_get_meshio__Vector4_w
5044 static int tolua_get_meshio__Vector4_w(lua_State* tolua_S)
5046 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
5047 #ifndef TOLUA_RELEASE
5048 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
5050 tolua_pushnumber(tolua_S,(lua_Number)self->w);
5053 #endif //#ifndef TOLUA_DISABLE
5055 /* set function: w of class meshio::Vector4 */
5056 #ifndef TOLUA_DISABLE_tolua_set_meshio__Vector4_w
5057 static int tolua_set_meshio__Vector4_w(lua_State* tolua_S)
5059 meshio::Vector4* self = (meshio::Vector4*) tolua_tousertype(tolua_S,1,0);
5060 #ifndef TOLUA_RELEASE
5061 tolua_Error tolua_err;
5062 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
5063 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5064 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5066 self->w = ((float) tolua_tonumber(tolua_S,2,0))
5070 #endif //#ifndef TOLUA_DISABLE
5072 /* method: new of class meshio::Vector4 */
5073 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector4_new00
5074 static int tolua_lmeshio_meshio_Vector4_new00(lua_State* tolua_S)
5076 #ifndef TOLUA_RELEASE
5077 tolua_Error tolua_err;
5079 !tolua_isusertable(tolua_S,1,"meshio::Vector4",0,&tolua_err) ||
5080 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5081 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5082 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5083 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5084 !tolua_isnoobj(tolua_S,6,&tolua_err)
5091 float _x = ((float) tolua_tonumber(tolua_S,2,0));
5092 float _y = ((float) tolua_tonumber(tolua_S,3,0));
5093 float _z = ((float) tolua_tonumber(tolua_S,4,0));
5094 float _w = ((float) tolua_tonumber(tolua_S,5,0));
5097 meshio::Vector4* tolua_ret = (meshio::Vector4*) Mtolua_new((meshio::Vector4)(_x,_y,_z,_w));
5098 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector4");
5107 #ifndef TOLUA_RELEASE
5109 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5113 #endif //#ifndef TOLUA_DISABLE
5115 /* method: new_local of class meshio::Vector4 */
5116 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Vector4_new00_local
5117 static int tolua_lmeshio_meshio_Vector4_new00_local(lua_State* tolua_S)
5119 #ifndef TOLUA_RELEASE
5120 tolua_Error tolua_err;
5122 !tolua_isusertable(tolua_S,1,"meshio::Vector4",0,&tolua_err) ||
5123 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5124 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5125 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5126 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5127 !tolua_isnoobj(tolua_S,6,&tolua_err)
5134 float _x = ((float) tolua_tonumber(tolua_S,2,0));
5135 float _y = ((float) tolua_tonumber(tolua_S,3,0));
5136 float _z = ((float) tolua_tonumber(tolua_S,4,0));
5137 float _w = ((float) tolua_tonumber(tolua_S,5,0));
5140 meshio::Vector4* tolua_ret = (meshio::Vector4*) Mtolua_new((meshio::Vector4)(_x,_y,_z,_w));
5141 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Vector4");
5142 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5151 #ifndef TOLUA_RELEASE
5153 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5157 #endif //#ifndef TOLUA_DISABLE
5159 /* get function: x of class meshio::Quaternion */
5160 #ifndef TOLUA_DISABLE_tolua_get_meshio__Quaternion_x
5161 static int tolua_get_meshio__Quaternion_x(lua_State* tolua_S)
5163 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5164 #ifndef TOLUA_RELEASE
5165 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
5167 tolua_pushnumber(tolua_S,(lua_Number)self->x);
5170 #endif //#ifndef TOLUA_DISABLE
5172 /* set function: x of class meshio::Quaternion */
5173 #ifndef TOLUA_DISABLE_tolua_set_meshio__Quaternion_x
5174 static int tolua_set_meshio__Quaternion_x(lua_State* tolua_S)
5176 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5177 #ifndef TOLUA_RELEASE
5178 tolua_Error tolua_err;
5179 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'x'",NULL);
5180 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5181 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5183 self->x = ((float) tolua_tonumber(tolua_S,2,0))
5187 #endif //#ifndef TOLUA_DISABLE
5189 /* get function: y of class meshio::Quaternion */
5190 #ifndef TOLUA_DISABLE_tolua_get_meshio__Quaternion_y
5191 static int tolua_get_meshio__Quaternion_y(lua_State* tolua_S)
5193 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5194 #ifndef TOLUA_RELEASE
5195 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
5197 tolua_pushnumber(tolua_S,(lua_Number)self->y);
5200 #endif //#ifndef TOLUA_DISABLE
5202 /* set function: y of class meshio::Quaternion */
5203 #ifndef TOLUA_DISABLE_tolua_set_meshio__Quaternion_y
5204 static int tolua_set_meshio__Quaternion_y(lua_State* tolua_S)
5206 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5207 #ifndef TOLUA_RELEASE
5208 tolua_Error tolua_err;
5209 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'y'",NULL);
5210 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5211 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5213 self->y = ((float) tolua_tonumber(tolua_S,2,0))
5217 #endif //#ifndef TOLUA_DISABLE
5219 /* get function: z of class meshio::Quaternion */
5220 #ifndef TOLUA_DISABLE_tolua_get_meshio__Quaternion_z
5221 static int tolua_get_meshio__Quaternion_z(lua_State* tolua_S)
5223 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5224 #ifndef TOLUA_RELEASE
5225 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
5227 tolua_pushnumber(tolua_S,(lua_Number)self->z);
5230 #endif //#ifndef TOLUA_DISABLE
5232 /* set function: z of class meshio::Quaternion */
5233 #ifndef TOLUA_DISABLE_tolua_set_meshio__Quaternion_z
5234 static int tolua_set_meshio__Quaternion_z(lua_State* tolua_S)
5236 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5237 #ifndef TOLUA_RELEASE
5238 tolua_Error tolua_err;
5239 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'z'",NULL);
5240 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5241 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5243 self->z = ((float) tolua_tonumber(tolua_S,2,0))
5247 #endif //#ifndef TOLUA_DISABLE
5249 /* get function: w of class meshio::Quaternion */
5250 #ifndef TOLUA_DISABLE_tolua_get_meshio__Quaternion_w
5251 static int tolua_get_meshio__Quaternion_w(lua_State* tolua_S)
5253 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5254 #ifndef TOLUA_RELEASE
5255 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
5257 tolua_pushnumber(tolua_S,(lua_Number)self->w);
5260 #endif //#ifndef TOLUA_DISABLE
5262 /* set function: w of class meshio::Quaternion */
5263 #ifndef TOLUA_DISABLE_tolua_set_meshio__Quaternion_w
5264 static int tolua_set_meshio__Quaternion_w(lua_State* tolua_S)
5266 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5267 #ifndef TOLUA_RELEASE
5268 tolua_Error tolua_err;
5269 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'w'",NULL);
5270 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5271 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5273 self->w = ((float) tolua_tonumber(tolua_S,2,0))
5277 #endif //#ifndef TOLUA_DISABLE
5279 /* method: new of class meshio::Quaternion */
5280 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Quaternion_new00
5281 static int tolua_lmeshio_meshio_Quaternion_new00(lua_State* tolua_S)
5283 #ifndef TOLUA_RELEASE
5284 tolua_Error tolua_err;
5286 !tolua_isusertable(tolua_S,1,"meshio::Quaternion",0,&tolua_err) ||
5287 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5288 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5289 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5290 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5291 !tolua_isnoobj(tolua_S,6,&tolua_err)
5298 float _x = ((float) tolua_tonumber(tolua_S,2,0));
5299 float _y = ((float) tolua_tonumber(tolua_S,3,0));
5300 float _z = ((float) tolua_tonumber(tolua_S,4,0));
5301 float _w = ((float) tolua_tonumber(tolua_S,5,0));
5304 meshio::Quaternion* tolua_ret = (meshio::Quaternion*) Mtolua_new((meshio::Quaternion)(_x,_y,_z,_w));
5305 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Quaternion");
5314 #ifndef TOLUA_RELEASE
5316 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5320 #endif //#ifndef TOLUA_DISABLE
5322 /* method: new_local of class meshio::Quaternion */
5323 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Quaternion_new00_local
5324 static int tolua_lmeshio_meshio_Quaternion_new00_local(lua_State* tolua_S)
5326 #ifndef TOLUA_RELEASE
5327 tolua_Error tolua_err;
5329 !tolua_isusertable(tolua_S,1,"meshio::Quaternion",0,&tolua_err) ||
5330 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5331 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
5332 !tolua_isnumber(tolua_S,4,0,&tolua_err) ||
5333 !tolua_isnumber(tolua_S,5,0,&tolua_err) ||
5334 !tolua_isnoobj(tolua_S,6,&tolua_err)
5341 float _x = ((float) tolua_tonumber(tolua_S,2,0));
5342 float _y = ((float) tolua_tonumber(tolua_S,3,0));
5343 float _z = ((float) tolua_tonumber(tolua_S,4,0));
5344 float _w = ((float) tolua_tonumber(tolua_S,5,0));
5347 meshio::Quaternion* tolua_ret = (meshio::Quaternion*) Mtolua_new((meshio::Quaternion)(_x,_y,_z,_w));
5348 tolua_pushusertype(tolua_S,(void*)tolua_ret,"meshio::Quaternion");
5349 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5358 #ifndef TOLUA_RELEASE
5360 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5364 #endif //#ifndef TOLUA_DISABLE
5366 /* method: dot of class meshio::Quaternion */
5367 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_Quaternion_dot00
5368 static int tolua_lmeshio_meshio_Quaternion_dot00(lua_State* tolua_S)
5370 #ifndef TOLUA_RELEASE
5371 tolua_Error tolua_err;
5373 !tolua_isusertype(tolua_S,1,"meshio::Quaternion",0,&tolua_err) ||
5374 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"const meshio::Quaternion",0,&tolua_err)) ||
5375 !tolua_isnoobj(tolua_S,3,&tolua_err)
5381 meshio::Quaternion* self = (meshio::Quaternion*) tolua_tousertype(tolua_S,1,0);
5382 const meshio::Quaternion* rhs = ((const meshio::Quaternion*) tolua_tousertype(tolua_S,2,0));
5383 #ifndef TOLUA_RELEASE
5384 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'dot'", NULL);
5387 float tolua_ret = (float) self->dot(*rhs);
5388 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5394 #ifndef TOLUA_RELEASE
5396 tolua_error(tolua_S,"#ferror in function 'dot'.",&tolua_err);
5400 #endif //#ifndef TOLUA_DISABLE
5402 /* get function: r of class meshio::fRGBA */
5403 #ifndef TOLUA_DISABLE_tolua_get_meshio__fRGBA_r
5404 static int tolua_get_meshio__fRGBA_r(lua_State* tolua_S)
5406 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5407 #ifndef TOLUA_RELEASE
5408 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
5410 tolua_pushnumber(tolua_S,(lua_Number)self->r);
5413 #endif //#ifndef TOLUA_DISABLE
5415 /* set function: r of class meshio::fRGBA */
5416 #ifndef TOLUA_DISABLE_tolua_set_meshio__fRGBA_r
5417 static int tolua_set_meshio__fRGBA_r(lua_State* tolua_S)
5419 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5420 #ifndef TOLUA_RELEASE
5421 tolua_Error tolua_err;
5422 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'r'",NULL);
5423 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5424 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5426 self->r = ((float) tolua_tonumber(tolua_S,2,0))
5430 #endif //#ifndef TOLUA_DISABLE
5432 /* get function: g of class meshio::fRGBA */
5433 #ifndef TOLUA_DISABLE_tolua_get_meshio__fRGBA_g
5434 static int tolua_get_meshio__fRGBA_g(lua_State* tolua_S)
5436 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5437 #ifndef TOLUA_RELEASE
5438 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
5440 tolua_pushnumber(tolua_S,(lua_Number)self->g);
5443 #endif //#ifndef TOLUA_DISABLE
5445 /* set function: g of class meshio::fRGBA */
5446 #ifndef TOLUA_DISABLE_tolua_set_meshio__fRGBA_g
5447 static int tolua_set_meshio__fRGBA_g(lua_State* tolua_S)
5449 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5450 #ifndef TOLUA_RELEASE
5451 tolua_Error tolua_err;
5452 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'g'",NULL);
5453 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5454 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5456 self->g = ((float) tolua_tonumber(tolua_S,2,0))
5460 #endif //#ifndef TOLUA_DISABLE
5462 /* get function: b of class meshio::fRGBA */
5463 #ifndef TOLUA_DISABLE_tolua_get_meshio__fRGBA_b
5464 static int tolua_get_meshio__fRGBA_b(lua_State* tolua_S)
5466 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5467 #ifndef TOLUA_RELEASE
5468 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
5470 tolua_pushnumber(tolua_S,(lua_Number)self->b);
5473 #endif //#ifndef TOLUA_DISABLE
5475 /* set function: b of class meshio::fRGBA */
5476 #ifndef TOLUA_DISABLE_tolua_set_meshio__fRGBA_b
5477 static int tolua_set_meshio__fRGBA_b(lua_State* tolua_S)
5479 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5480 #ifndef TOLUA_RELEASE
5481 tolua_Error tolua_err;
5482 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'b'",NULL);
5483 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5484 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5486 self->b = ((float) tolua_tonumber(tolua_S,2,0))
5490 #endif //#ifndef TOLUA_DISABLE
5492 /* get function: a of class meshio::fRGBA */
5493 #ifndef TOLUA_DISABLE_tolua_get_meshio__fRGBA_a
5494 static int tolua_get_meshio__fRGBA_a(lua_State* tolua_S)
5496 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5497 #ifndef TOLUA_RELEASE
5498 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
5500 tolua_pushnumber(tolua_S,(lua_Number)self->a);
5503 #endif //#ifndef TOLUA_DISABLE
5505 /* set function: a of class meshio::fRGBA */
5506 #ifndef TOLUA_DISABLE_tolua_set_meshio__fRGBA_a
5507 static int tolua_set_meshio__fRGBA_a(lua_State* tolua_S)
5509 meshio::fRGBA* self = (meshio::fRGBA*) tolua_tousertype(tolua_S,1,0);
5510 #ifndef TOLUA_RELEASE
5511 tolua_Error tolua_err;
5512 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'a'",NULL);
5513 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
5514 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
5516 self->a = ((float) tolua_tonumber(tolua_S,2,0))
5520 #endif //#ifndef TOLUA_DISABLE
5522 /* method: str of class meshio::fixed_string<20> */
5523 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_20__str00
5524 static int tolua_lmeshio_meshio_fixed_string_20__str00(lua_State* tolua_S)
5526 #ifndef TOLUA_RELEASE
5527 tolua_Error tolua_err;
5529 !tolua_isusertype(tolua_S,1,"const meshio::fixed_string<20>",0,&tolua_err) ||
5530 !tolua_isnoobj(tolua_S,2,&tolua_err)
5536 const meshio::fixed_string<20>* self = (const meshio::fixed_string<20>*) tolua_tousertype(tolua_S,1,0);
5537 #ifndef TOLUA_RELEASE
5538 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'str'", NULL);
5541 std::string tolua_ret = (std::string) self->str();
5542 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
5547 #ifndef TOLUA_RELEASE
5549 tolua_error(tolua_S,"#ferror in function 'str'.",&tolua_err);
5553 #endif //#ifndef TOLUA_DISABLE
5555 /* method: assign of class meshio::fixed_string<20> */
5556 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_20__assign00
5557 static int tolua_lmeshio_meshio_fixed_string_20__assign00(lua_State* tolua_S)
5559 #ifndef TOLUA_RELEASE
5560 tolua_Error tolua_err;
5562 !tolua_isusertype(tolua_S,1,"meshio::fixed_string<20>",0,&tolua_err) ||
5563 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
5564 !tolua_isnoobj(tolua_S,3,&tolua_err)
5570 meshio::fixed_string<20>* self = (meshio::fixed_string<20>*) tolua_tousertype(tolua_S,1,0);
5571 const std::string src = ((const std::string) tolua_tocppstring(tolua_S,2,0));
5572 #ifndef TOLUA_RELEASE
5573 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'", NULL);
5577 tolua_pushcppstring(tolua_S,(const char*)src);
5582 #ifndef TOLUA_RELEASE
5584 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
5588 #endif //#ifndef TOLUA_DISABLE
5590 /* method: str of class meshio::fixed_string<50> */
5591 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_50__str00
5592 static int tolua_lmeshio_meshio_fixed_string_50__str00(lua_State* tolua_S)
5594 #ifndef TOLUA_RELEASE
5595 tolua_Error tolua_err;
5597 !tolua_isusertype(tolua_S,1,"const meshio::fixed_string<50>",0,&tolua_err) ||
5598 !tolua_isnoobj(tolua_S,2,&tolua_err)
5604 const meshio::fixed_string<50>* self = (const meshio::fixed_string<50>*) tolua_tousertype(tolua_S,1,0);
5605 #ifndef TOLUA_RELEASE
5606 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'str'", NULL);
5609 std::string tolua_ret = (std::string) self->str();
5610 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
5615 #ifndef TOLUA_RELEASE
5617 tolua_error(tolua_S,"#ferror in function 'str'.",&tolua_err);
5621 #endif //#ifndef TOLUA_DISABLE
5623 /* method: assign of class meshio::fixed_string<50> */
5624 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_50__assign00
5625 static int tolua_lmeshio_meshio_fixed_string_50__assign00(lua_State* tolua_S)
5627 #ifndef TOLUA_RELEASE
5628 tolua_Error tolua_err;
5630 !tolua_isusertype(tolua_S,1,"meshio::fixed_string<50>",0,&tolua_err) ||
5631 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
5632 !tolua_isnoobj(tolua_S,3,&tolua_err)
5638 meshio::fixed_string<50>* self = (meshio::fixed_string<50>*) tolua_tousertype(tolua_S,1,0);
5639 const std::string src = ((const std::string) tolua_tocppstring(tolua_S,2,0));
5640 #ifndef TOLUA_RELEASE
5641 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'", NULL);
5645 tolua_pushcppstring(tolua_S,(const char*)src);
5650 #ifndef TOLUA_RELEASE
5652 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
5656 #endif //#ifndef TOLUA_DISABLE
5658 /* method: str of class meshio::fixed_string<100> */
5659 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_100__str00
5660 static int tolua_lmeshio_meshio_fixed_string_100__str00(lua_State* tolua_S)
5662 #ifndef TOLUA_RELEASE
5663 tolua_Error tolua_err;
5665 !tolua_isusertype(tolua_S,1,"const meshio::fixed_string<100>",0,&tolua_err) ||
5666 !tolua_isnoobj(tolua_S,2,&tolua_err)
5672 const meshio::fixed_string<100>* self = (const meshio::fixed_string<100>*) tolua_tousertype(tolua_S,1,0);
5673 #ifndef TOLUA_RELEASE
5674 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'str'", NULL);
5677 std::string tolua_ret = (std::string) self->str();
5678 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
5683 #ifndef TOLUA_RELEASE
5685 tolua_error(tolua_S,"#ferror in function 'str'.",&tolua_err);
5689 #endif //#ifndef TOLUA_DISABLE
5691 /* method: assign of class meshio::fixed_string<100> */
5692 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_100__assign00
5693 static int tolua_lmeshio_meshio_fixed_string_100__assign00(lua_State* tolua_S)
5695 #ifndef TOLUA_RELEASE
5696 tolua_Error tolua_err;
5698 !tolua_isusertype(tolua_S,1,"meshio::fixed_string<100>",0,&tolua_err) ||
5699 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
5700 !tolua_isnoobj(tolua_S,3,&tolua_err)
5706 meshio::fixed_string<100>* self = (meshio::fixed_string<100>*) tolua_tousertype(tolua_S,1,0);
5707 const std::string src = ((const std::string) tolua_tocppstring(tolua_S,2,0));
5708 #ifndef TOLUA_RELEASE
5709 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'", NULL);
5713 tolua_pushcppstring(tolua_S,(const char*)src);
5718 #ifndef TOLUA_RELEASE
5720 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
5724 #endif //#ifndef TOLUA_DISABLE
5726 /* method: str of class meshio::fixed_string<256> */
5727 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_256__str00
5728 static int tolua_lmeshio_meshio_fixed_string_256__str00(lua_State* tolua_S)
5730 #ifndef TOLUA_RELEASE
5731 tolua_Error tolua_err;
5733 !tolua_isusertype(tolua_S,1,"const meshio::fixed_string<256>",0,&tolua_err) ||
5734 !tolua_isnoobj(tolua_S,2,&tolua_err)
5740 const meshio::fixed_string<256>* self = (const meshio::fixed_string<256>*) tolua_tousertype(tolua_S,1,0);
5741 #ifndef TOLUA_RELEASE
5742 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'str'", NULL);
5745 std::string tolua_ret = (std::string) self->str();
5746 tolua_pushcppstring(tolua_S,(const char*)tolua_ret);
5751 #ifndef TOLUA_RELEASE
5753 tolua_error(tolua_S,"#ferror in function 'str'.",&tolua_err);
5757 #endif //#ifndef TOLUA_DISABLE
5759 /* method: assign of class meshio::fixed_string<256> */
5760 #ifndef TOLUA_DISABLE_tolua_lmeshio_meshio_fixed_string_256__assign00
5761 static int tolua_lmeshio_meshio_fixed_string_256__assign00(lua_State* tolua_S)
5763 #ifndef TOLUA_RELEASE
5764 tolua_Error tolua_err;
5766 !tolua_isusertype(tolua_S,1,"meshio::fixed_string<256>",0,&tolua_err) ||
5767 !tolua_iscppstring(tolua_S,2,0,&tolua_err) ||
5768 !tolua_isnoobj(tolua_S,3,&tolua_err)
5774 meshio::fixed_string<256>* self = (meshio::fixed_string<256>*) tolua_tousertype(tolua_S,1,0);
5775 const std::string src = ((const std::string) tolua_tocppstring(tolua_S,2,0));
5776 #ifndef TOLUA_RELEASE
5777 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'assign'", NULL);
5781 tolua_pushcppstring(tolua_S,(const char*)src);
5786 #ifndef TOLUA_RELEASE
5788 tolua_error(tolua_S,"#ferror in function 'assign'.",&tolua_err);
5792 #endif //#ifndef TOLUA_DISABLE
5794 /* method: new of class std::vector<meshio::pmd::Bone*> */
5795 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___new00
5796 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___new00(lua_State* tolua_S)
5798 #ifndef TOLUA_RELEASE
5799 tolua_Error tolua_err;
5801 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5802 !tolua_isnoobj(tolua_S,2,&tolua_err)
5811 std::vector<meshio::pmd::Bone>* tolua_ret = (std::vector<meshio::pmd::Bone>*) Mtolua_new((std::vector<meshio::pmd::Bone>)());
5812 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Bone>");
5817 #ifndef TOLUA_RELEASE
5819 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5823 #endif //#ifndef TOLUA_DISABLE
5825 /* method: new_local of class std::vector<meshio::pmd::Bone*> */
5826 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___new00_local
5827 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___new00_local(lua_State* tolua_S)
5829 #ifndef TOLUA_RELEASE
5830 tolua_Error tolua_err;
5832 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5833 !tolua_isnoobj(tolua_S,2,&tolua_err)
5842 std::vector<meshio::pmd::Bone>* tolua_ret = (std::vector<meshio::pmd::Bone>*) Mtolua_new((std::vector<meshio::pmd::Bone>)());
5843 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Bone>");
5844 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
5849 #ifndef TOLUA_RELEASE
5851 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
5855 #endif //#ifndef TOLUA_DISABLE
5857 /* method: size of class std::vector<meshio::pmd::Bone*> */
5858 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___size00
5859 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___size00(lua_State* tolua_S)
5861 #ifndef TOLUA_RELEASE
5862 tolua_Error tolua_err;
5864 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5865 !tolua_isnoobj(tolua_S,2,&tolua_err)
5871 const std::vector<meshio::pmd::Bone*>* self = (const std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
5872 #ifndef TOLUA_RELEASE
5873 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
5876 unsigned int tolua_ret = (unsigned int) self->size();
5877 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
5882 #ifndef TOLUA_RELEASE
5884 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
5888 #endif //#ifndef TOLUA_DISABLE
5890 /* method: push_back of class std::vector<meshio::pmd::Bone*> */
5891 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___push_back00
5892 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___push_back00(lua_State* tolua_S)
5894 #ifndef TOLUA_RELEASE
5895 tolua_Error tolua_err;
5897 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5898 !tolua_isusertype(tolua_S,2,"meshio::pmd::Bone",0,&tolua_err) ||
5899 !tolua_isnoobj(tolua_S,3,&tolua_err)
5905 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
5906 meshio::pmd::Bone* value = ((meshio::pmd::Bone*) tolua_tousertype(tolua_S,2,0));
5907 #ifndef TOLUA_RELEASE
5908 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
5911 self->push_back(value);
5912 tolua_pushusertype(tolua_S,(void*)value,"meshio::pmd::Bone");
5917 #ifndef TOLUA_RELEASE
5919 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
5923 #endif //#ifndef TOLUA_DISABLE
5925 /* method: back of class std::vector<meshio::pmd::Bone*> */
5926 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___back00
5927 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___back00(lua_State* tolua_S)
5929 #ifndef TOLUA_RELEASE
5930 tolua_Error tolua_err;
5932 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5933 !tolua_isnoobj(tolua_S,2,&tolua_err)
5939 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
5940 #ifndef TOLUA_RELEASE
5941 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
5944 meshio::pmd::Bone*& tolua_ret = (meshio::pmd::Bone*&) self->back();
5945 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone*");
5950 #ifndef TOLUA_RELEASE
5952 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
5956 #endif //#ifndef TOLUA_DISABLE
5958 /* method: operator[] of class std::vector<meshio::pmd::Bone*> */
5959 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone____geti00
5960 static int tolua_lmeshio_std_vector_meshio__pmd__Bone____geti00(lua_State* tolua_S)
5962 #ifndef TOLUA_RELEASE
5963 tolua_Error tolua_err;
5965 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
5966 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
5967 !tolua_isnoobj(tolua_S,3,&tolua_err)
5973 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
5974 int index = ((int) tolua_tonumber(tolua_S,2,0));
5975 #ifndef TOLUA_RELEASE
5976 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
5979 meshio::pmd::Bone*& tolua_ret = (meshio::pmd::Bone*&) self->operator[](index);
5980 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone*");
5986 #ifndef TOLUA_RELEASE
5988 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
5992 #endif //#ifndef TOLUA_DISABLE
5994 /* method: operator&[] of class std::vector<meshio::pmd::Bone*> */
5995 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone____seti00
5996 static int tolua_lmeshio_std_vector_meshio__pmd__Bone____seti00(lua_State* tolua_S)
5998 #ifndef TOLUA_RELEASE
5999 tolua_Error tolua_err;
6001 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
6002 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6003 !tolua_isusertype(tolua_S,3,"meshio::pmd::Bone",0,&tolua_err) ||
6004 !tolua_isnoobj(tolua_S,4,&tolua_err)
6010 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
6011 int index = ((int) tolua_tonumber(tolua_S,2,0));
6012 meshio::pmd::Bone* tolua_value = ((meshio::pmd::Bone*) tolua_tousertype(tolua_S,3,0));
6013 #ifndef TOLUA_RELEASE
6014 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
6016 self->operator[](index) = tolua_value;
6019 #ifndef TOLUA_RELEASE
6021 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
6025 #endif //#ifndef TOLUA_DISABLE
6027 /* stl foreachi: class std::vector<meshio::pmd::Bone*> */
6028 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator
6029 static int tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator_gc(lua_State* tolua_S)
6031 //printf("tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator_gc\n");
6032 std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator> *range=(std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>*)lua_touserdata(tolua_S, 1);
6033 range->~pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>();
6037 static int tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator_internal(lua_State* tolua_S)
6039 std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator> *range=(std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
6040 if(range->first==range->second){
6043 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
6044 tolua_pushnumber(tolua_S, index);
6046 tolua_pushnumber(tolua_S, index+1);
6047 lua_replace(tolua_S, lua_upvalueindex(2));
6049 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Bone*");
6050 meshio::pmd::Bone*& tolua_ret = (meshio::pmd::Bone*&) *range->first++;
6051 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone*");
6056 static int tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator(lua_State* tolua_S)
6058 #ifndef TOLUA_RELEASE
6059 tolua_Error tolua_err;
6061 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone*>",0,&tolua_err) ||
6062 !tolua_isnoobj(tolua_S,2,&tolua_err)
6068 std::vector<meshio::pmd::Bone*>* self = (std::vector<meshio::pmd::Bone*>*) tolua_tousertype(tolua_S,1,0);
6069 #ifndef TOLUA_RELEASE
6070 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
6073 std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>* range=(std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>));
6074 *range=std::make_pair(self->begin(), self->end());
6075 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>");
6076 lua_setmetatable(tolua_S, -2);
6077 lua_pushnumber(tolua_S, 0);
6079 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator_internal, 2);
6083 #ifndef TOLUA_RELEASE
6085 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
6089 #endif //#ifndef TOLUA_DISABLE
6092 /* method: new of class std::vector<unsigned short> */
6093 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short__new00
6094 static int tolua_lmeshio_std_vector_unsigned_short__new00(lua_State* tolua_S)
6096 #ifndef TOLUA_RELEASE
6097 tolua_Error tolua_err;
6099 !tolua_isusertable(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6100 !tolua_isnoobj(tolua_S,2,&tolua_err)
6109 std::vector<unsigned short>* tolua_ret = (std::vector<unsigned short>*) Mtolua_new((std::vector<unsigned short>)());
6110 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<unsigned short>");
6115 #ifndef TOLUA_RELEASE
6117 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6121 #endif //#ifndef TOLUA_DISABLE
6123 /* method: new_local of class std::vector<unsigned short> */
6124 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short__new00_local
6125 static int tolua_lmeshio_std_vector_unsigned_short__new00_local(lua_State* tolua_S)
6127 #ifndef TOLUA_RELEASE
6128 tolua_Error tolua_err;
6130 !tolua_isusertable(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6131 !tolua_isnoobj(tolua_S,2,&tolua_err)
6140 std::vector<unsigned short>* tolua_ret = (std::vector<unsigned short>*) Mtolua_new((std::vector<unsigned short>)());
6141 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<unsigned short>");
6142 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
6147 #ifndef TOLUA_RELEASE
6149 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6153 #endif //#ifndef TOLUA_DISABLE
6155 /* method: size of class std::vector<unsigned short> */
6156 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short__size00
6157 static int tolua_lmeshio_std_vector_unsigned_short__size00(lua_State* tolua_S)
6159 #ifndef TOLUA_RELEASE
6160 tolua_Error tolua_err;
6162 !tolua_isusertype(tolua_S,1,"const std::vector<unsigned short>",0,&tolua_err) ||
6163 !tolua_isnoobj(tolua_S,2,&tolua_err)
6169 const std::vector<unsigned short>* self = (const std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6170 #ifndef TOLUA_RELEASE
6171 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
6174 unsigned int tolua_ret = (unsigned int) self->size();
6175 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6180 #ifndef TOLUA_RELEASE
6182 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
6186 #endif //#ifndef TOLUA_DISABLE
6188 /* method: push_back of class std::vector<unsigned short> */
6189 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short__push_back00
6190 static int tolua_lmeshio_std_vector_unsigned_short__push_back00(lua_State* tolua_S)
6192 #ifndef TOLUA_RELEASE
6193 tolua_Error tolua_err;
6195 !tolua_isusertype(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6196 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6197 !tolua_isnoobj(tolua_S,3,&tolua_err)
6203 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6204 unsigned short value = ((unsigned short) tolua_tonumber(tolua_S,2,0));
6205 #ifndef TOLUA_RELEASE
6206 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
6209 self->push_back(value);
6210 tolua_pushnumber(tolua_S,(lua_Number)value);
6215 #ifndef TOLUA_RELEASE
6217 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
6221 #endif //#ifndef TOLUA_DISABLE
6223 /* method: back of class std::vector<unsigned short> */
6224 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short__back00
6225 static int tolua_lmeshio_std_vector_unsigned_short__back00(lua_State* tolua_S)
6227 #ifndef TOLUA_RELEASE
6228 tolua_Error tolua_err;
6230 !tolua_isusertype(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6231 !tolua_isnoobj(tolua_S,2,&tolua_err)
6237 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6238 #ifndef TOLUA_RELEASE
6239 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
6242 unsigned short& tolua_ret = (unsigned short&) self->back();
6243 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6248 #ifndef TOLUA_RELEASE
6250 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
6254 #endif //#ifndef TOLUA_DISABLE
6256 /* method: operator[] of class std::vector<unsigned short> */
6257 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short___geti00
6258 static int tolua_lmeshio_std_vector_unsigned_short___geti00(lua_State* tolua_S)
6260 #ifndef TOLUA_RELEASE
6261 tolua_Error tolua_err;
6263 !tolua_isusertype(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6264 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6265 !tolua_isnoobj(tolua_S,3,&tolua_err)
6271 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6272 int index = ((int) tolua_tonumber(tolua_S,2,0));
6273 #ifndef TOLUA_RELEASE
6274 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
6277 unsigned short& tolua_ret = (unsigned short&) self->operator[](index);
6278 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6284 #ifndef TOLUA_RELEASE
6286 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
6290 #endif //#ifndef TOLUA_DISABLE
6292 /* method: operator&[] of class std::vector<unsigned short> */
6293 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_short___seti00
6294 static int tolua_lmeshio_std_vector_unsigned_short___seti00(lua_State* tolua_S)
6296 #ifndef TOLUA_RELEASE
6297 tolua_Error tolua_err;
6299 !tolua_isusertype(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6300 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6301 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6302 !tolua_isnoobj(tolua_S,4,&tolua_err)
6308 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6309 int index = ((int) tolua_tonumber(tolua_S,2,0));
6310 unsigned short tolua_value = ((unsigned short) tolua_tonumber(tolua_S,3,0));
6311 #ifndef TOLUA_RELEASE
6312 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
6314 self->operator[](index) = tolua_value;
6317 #ifndef TOLUA_RELEASE
6319 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
6323 #endif //#ifndef TOLUA_DISABLE
6325 /* stl foreachi: class std::vector<unsigned short> */
6326 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_unsigned_short__iterator
6327 static int tolua_lmeshio_std__vector_unsigned_short__iterator_gc(lua_State* tolua_S)
6329 //printf("tolua_lmeshio_std__vector_unsigned_short__iterator_gc\n");
6330 std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator> *range=(std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>*)lua_touserdata(tolua_S, 1);
6331 range->~pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>();
6335 static int tolua_lmeshio_std__vector_unsigned_short__iterator_internal(lua_State* tolua_S)
6337 std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator> *range=(std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
6338 if(range->first==range->second){
6341 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
6342 tolua_pushnumber(tolua_S, index);
6344 tolua_pushnumber(tolua_S, index+1);
6345 lua_replace(tolua_S, lua_upvalueindex(2));
6347 //tolua_pushusertype(tolua_S, &(*range->first++), "unsigned short");
6348 unsigned short& tolua_ret = (unsigned short&) *range->first++;
6349 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6354 static int tolua_lmeshio_std__vector_unsigned_short__iterator(lua_State* tolua_S)
6356 #ifndef TOLUA_RELEASE
6357 tolua_Error tolua_err;
6359 !tolua_isusertype(tolua_S,1,"std::vector<unsigned short>",0,&tolua_err) ||
6360 !tolua_isnoobj(tolua_S,2,&tolua_err)
6366 std::vector<unsigned short>* self = (std::vector<unsigned short>*) tolua_tousertype(tolua_S,1,0);
6367 #ifndef TOLUA_RELEASE
6368 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
6371 std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>* range=(std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>));
6372 *range=std::make_pair(self->begin(), self->end());
6373 luaL_getmetatable(tolua_S, "std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>");
6374 lua_setmetatable(tolua_S, -2);
6375 lua_pushnumber(tolua_S, 0);
6377 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_unsigned_short__iterator_internal, 2);
6381 #ifndef TOLUA_RELEASE
6383 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
6387 #endif //#ifndef TOLUA_DISABLE
6390 /* method: new of class std::vector<unsigned int> */
6391 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int__new00
6392 static int tolua_lmeshio_std_vector_unsigned_int__new00(lua_State* tolua_S)
6394 #ifndef TOLUA_RELEASE
6395 tolua_Error tolua_err;
6397 !tolua_isusertable(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6398 !tolua_isnoobj(tolua_S,2,&tolua_err)
6407 std::vector<unsigned int>* tolua_ret = (std::vector<unsigned int>*) Mtolua_new((std::vector<unsigned int>)());
6408 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<unsigned int>");
6413 #ifndef TOLUA_RELEASE
6415 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6419 #endif //#ifndef TOLUA_DISABLE
6421 /* method: new_local of class std::vector<unsigned int> */
6422 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int__new00_local
6423 static int tolua_lmeshio_std_vector_unsigned_int__new00_local(lua_State* tolua_S)
6425 #ifndef TOLUA_RELEASE
6426 tolua_Error tolua_err;
6428 !tolua_isusertable(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6429 !tolua_isnoobj(tolua_S,2,&tolua_err)
6438 std::vector<unsigned int>* tolua_ret = (std::vector<unsigned int>*) Mtolua_new((std::vector<unsigned int>)());
6439 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<unsigned int>");
6440 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
6445 #ifndef TOLUA_RELEASE
6447 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6451 #endif //#ifndef TOLUA_DISABLE
6453 /* method: size of class std::vector<unsigned int> */
6454 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int__size00
6455 static int tolua_lmeshio_std_vector_unsigned_int__size00(lua_State* tolua_S)
6457 #ifndef TOLUA_RELEASE
6458 tolua_Error tolua_err;
6460 !tolua_isusertype(tolua_S,1,"const std::vector<unsigned int>",0,&tolua_err) ||
6461 !tolua_isnoobj(tolua_S,2,&tolua_err)
6467 const std::vector<unsigned int>* self = (const std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6468 #ifndef TOLUA_RELEASE
6469 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
6472 unsigned int tolua_ret = (unsigned int) self->size();
6473 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6478 #ifndef TOLUA_RELEASE
6480 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
6484 #endif //#ifndef TOLUA_DISABLE
6486 /* method: push_back of class std::vector<unsigned int> */
6487 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int__push_back00
6488 static int tolua_lmeshio_std_vector_unsigned_int__push_back00(lua_State* tolua_S)
6490 #ifndef TOLUA_RELEASE
6491 tolua_Error tolua_err;
6493 !tolua_isusertype(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6494 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6495 !tolua_isnoobj(tolua_S,3,&tolua_err)
6501 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6502 unsigned int value = ((unsigned int) tolua_tonumber(tolua_S,2,0));
6503 #ifndef TOLUA_RELEASE
6504 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
6507 self->push_back(value);
6508 tolua_pushnumber(tolua_S,(lua_Number)value);
6513 #ifndef TOLUA_RELEASE
6515 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
6519 #endif //#ifndef TOLUA_DISABLE
6521 /* method: back of class std::vector<unsigned int> */
6522 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int__back00
6523 static int tolua_lmeshio_std_vector_unsigned_int__back00(lua_State* tolua_S)
6525 #ifndef TOLUA_RELEASE
6526 tolua_Error tolua_err;
6528 !tolua_isusertype(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6529 !tolua_isnoobj(tolua_S,2,&tolua_err)
6535 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6536 #ifndef TOLUA_RELEASE
6537 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
6540 unsigned int& tolua_ret = (unsigned int&) self->back();
6541 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6546 #ifndef TOLUA_RELEASE
6548 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
6552 #endif //#ifndef TOLUA_DISABLE
6554 /* method: operator[] of class std::vector<unsigned int> */
6555 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int___geti00
6556 static int tolua_lmeshio_std_vector_unsigned_int___geti00(lua_State* tolua_S)
6558 #ifndef TOLUA_RELEASE
6559 tolua_Error tolua_err;
6561 !tolua_isusertype(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6562 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6563 !tolua_isnoobj(tolua_S,3,&tolua_err)
6569 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6570 int index = ((int) tolua_tonumber(tolua_S,2,0));
6571 #ifndef TOLUA_RELEASE
6572 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
6575 unsigned int& tolua_ret = (unsigned int&) self->operator[](index);
6576 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6582 #ifndef TOLUA_RELEASE
6584 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
6588 #endif //#ifndef TOLUA_DISABLE
6590 /* method: operator&[] of class std::vector<unsigned int> */
6591 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_unsigned_int___seti00
6592 static int tolua_lmeshio_std_vector_unsigned_int___seti00(lua_State* tolua_S)
6594 #ifndef TOLUA_RELEASE
6595 tolua_Error tolua_err;
6597 !tolua_isusertype(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6598 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6599 !tolua_isnumber(tolua_S,3,0,&tolua_err) ||
6600 !tolua_isnoobj(tolua_S,4,&tolua_err)
6606 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6607 int index = ((int) tolua_tonumber(tolua_S,2,0));
6608 unsigned int tolua_value = ((unsigned int) tolua_tonumber(tolua_S,3,0));
6609 #ifndef TOLUA_RELEASE
6610 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
6612 self->operator[](index) = tolua_value;
6615 #ifndef TOLUA_RELEASE
6617 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
6621 #endif //#ifndef TOLUA_DISABLE
6623 /* stl foreachi: class std::vector<unsigned int> */
6624 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_unsigned_int__iterator
6625 static int tolua_lmeshio_std__vector_unsigned_int__iterator_gc(lua_State* tolua_S)
6627 //printf("tolua_lmeshio_std__vector_unsigned_int__iterator_gc\n");
6628 std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator> *range=(std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>*)lua_touserdata(tolua_S, 1);
6629 range->~pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>();
6633 static int tolua_lmeshio_std__vector_unsigned_int__iterator_internal(lua_State* tolua_S)
6635 std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator> *range=(std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
6636 if(range->first==range->second){
6639 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
6640 tolua_pushnumber(tolua_S, index);
6642 tolua_pushnumber(tolua_S, index+1);
6643 lua_replace(tolua_S, lua_upvalueindex(2));
6645 //tolua_pushusertype(tolua_S, &(*range->first++), "unsigned int");
6646 unsigned int& tolua_ret = (unsigned int&) *range->first++;
6647 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6652 static int tolua_lmeshio_std__vector_unsigned_int__iterator(lua_State* tolua_S)
6654 #ifndef TOLUA_RELEASE
6655 tolua_Error tolua_err;
6657 !tolua_isusertype(tolua_S,1,"std::vector<unsigned int>",0,&tolua_err) ||
6658 !tolua_isnoobj(tolua_S,2,&tolua_err)
6664 std::vector<unsigned int>* self = (std::vector<unsigned int>*) tolua_tousertype(tolua_S,1,0);
6665 #ifndef TOLUA_RELEASE
6666 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
6669 std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>* range=(std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>));
6670 *range=std::make_pair(self->begin(), self->end());
6671 luaL_getmetatable(tolua_S, "std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>");
6672 lua_setmetatable(tolua_S, -2);
6673 lua_pushnumber(tolua_S, 0);
6675 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_unsigned_int__iterator_internal, 2);
6679 #ifndef TOLUA_RELEASE
6681 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
6685 #endif //#ifndef TOLUA_DISABLE
6688 /* method: new of class std::vector<meshio::Vector3> */
6689 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3__new00
6690 static int tolua_lmeshio_std_vector_meshio__Vector3__new00(lua_State* tolua_S)
6692 #ifndef TOLUA_RELEASE
6693 tolua_Error tolua_err;
6695 !tolua_isusertable(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6696 !tolua_isnoobj(tolua_S,2,&tolua_err)
6705 std::vector<meshio::Vector3>* tolua_ret = (std::vector<meshio::Vector3>*) Mtolua_new((std::vector<meshio::Vector3>)());
6706 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::Vector3>");
6711 #ifndef TOLUA_RELEASE
6713 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6717 #endif //#ifndef TOLUA_DISABLE
6719 /* method: new_local of class std::vector<meshio::Vector3> */
6720 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3__new00_local
6721 static int tolua_lmeshio_std_vector_meshio__Vector3__new00_local(lua_State* tolua_S)
6723 #ifndef TOLUA_RELEASE
6724 tolua_Error tolua_err;
6726 !tolua_isusertable(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6727 !tolua_isnoobj(tolua_S,2,&tolua_err)
6736 std::vector<meshio::Vector3>* tolua_ret = (std::vector<meshio::Vector3>*) Mtolua_new((std::vector<meshio::Vector3>)());
6737 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::Vector3>");
6738 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
6743 #ifndef TOLUA_RELEASE
6745 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
6749 #endif //#ifndef TOLUA_DISABLE
6751 /* method: size of class std::vector<meshio::Vector3> */
6752 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3__size00
6753 static int tolua_lmeshio_std_vector_meshio__Vector3__size00(lua_State* tolua_S)
6755 #ifndef TOLUA_RELEASE
6756 tolua_Error tolua_err;
6758 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::Vector3>",0,&tolua_err) ||
6759 !tolua_isnoobj(tolua_S,2,&tolua_err)
6765 const std::vector<meshio::Vector3>* self = (const std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6766 #ifndef TOLUA_RELEASE
6767 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
6770 unsigned int tolua_ret = (unsigned int) self->size();
6771 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
6776 #ifndef TOLUA_RELEASE
6778 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
6782 #endif //#ifndef TOLUA_DISABLE
6784 /* method: push_back of class std::vector<meshio::Vector3> */
6785 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3__push_back00
6786 static int tolua_lmeshio_std_vector_meshio__Vector3__push_back00(lua_State* tolua_S)
6788 #ifndef TOLUA_RELEASE
6789 tolua_Error tolua_err;
6791 !tolua_isusertype(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6792 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::Vector3",0,&tolua_err)) ||
6793 !tolua_isnoobj(tolua_S,3,&tolua_err)
6799 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6800 meshio::Vector3* value = ((meshio::Vector3*) tolua_tousertype(tolua_S,2,0));
6801 #ifndef TOLUA_RELEASE
6802 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
6805 self->push_back(*value);
6811 #ifndef TOLUA_RELEASE
6813 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
6817 #endif //#ifndef TOLUA_DISABLE
6819 /* method: back of class std::vector<meshio::Vector3> */
6820 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3__back00
6821 static int tolua_lmeshio_std_vector_meshio__Vector3__back00(lua_State* tolua_S)
6823 #ifndef TOLUA_RELEASE
6824 tolua_Error tolua_err;
6826 !tolua_isusertype(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6827 !tolua_isnoobj(tolua_S,2,&tolua_err)
6833 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6834 #ifndef TOLUA_RELEASE
6835 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
6838 meshio::Vector3& tolua_ret = (meshio::Vector3&) self->back();
6839 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::Vector3");
6844 #ifndef TOLUA_RELEASE
6846 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
6850 #endif //#ifndef TOLUA_DISABLE
6852 /* method: operator[] of class std::vector<meshio::Vector3> */
6853 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3___geti00
6854 static int tolua_lmeshio_std_vector_meshio__Vector3___geti00(lua_State* tolua_S)
6856 #ifndef TOLUA_RELEASE
6857 tolua_Error tolua_err;
6859 !tolua_isusertype(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6860 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6861 !tolua_isnoobj(tolua_S,3,&tolua_err)
6867 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6868 int index = ((int) tolua_tonumber(tolua_S,2,0));
6869 #ifndef TOLUA_RELEASE
6870 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
6873 meshio::Vector3& tolua_ret = (meshio::Vector3&) self->operator[](index);
6874 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::Vector3");
6880 #ifndef TOLUA_RELEASE
6882 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
6886 #endif //#ifndef TOLUA_DISABLE
6888 /* method: operator&[] of class std::vector<meshio::Vector3> */
6889 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__Vector3___seti00
6890 static int tolua_lmeshio_std_vector_meshio__Vector3___seti00(lua_State* tolua_S)
6892 #ifndef TOLUA_RELEASE
6893 tolua_Error tolua_err;
6895 !tolua_isusertype(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6896 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
6897 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::Vector3",0,&tolua_err)) ||
6898 !tolua_isnoobj(tolua_S,4,&tolua_err)
6904 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6905 int index = ((int) tolua_tonumber(tolua_S,2,0));
6906 meshio::Vector3 tolua_value = *((meshio::Vector3*) tolua_tousertype(tolua_S,3,0));
6907 #ifndef TOLUA_RELEASE
6908 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
6910 self->operator[](index) = tolua_value;
6913 #ifndef TOLUA_RELEASE
6915 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
6919 #endif //#ifndef TOLUA_DISABLE
6921 /* stl foreachi: class std::vector<meshio::Vector3> */
6922 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__Vector3__iterator
6923 static int tolua_lmeshio_std__vector_meshio__Vector3__iterator_gc(lua_State* tolua_S)
6925 //printf("tolua_lmeshio_std__vector_meshio__Vector3__iterator_gc\n");
6926 std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator> *range=(std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>*)lua_touserdata(tolua_S, 1);
6927 range->~pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>();
6931 static int tolua_lmeshio_std__vector_meshio__Vector3__iterator_internal(lua_State* tolua_S)
6933 std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator> *range=(std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
6934 if(range->first==range->second){
6937 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
6938 tolua_pushnumber(tolua_S, index);
6940 tolua_pushnumber(tolua_S, index+1);
6941 lua_replace(tolua_S, lua_upvalueindex(2));
6943 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::Vector3");
6944 meshio::Vector3& tolua_ret = (meshio::Vector3&) *range->first++;
6945 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::Vector3");
6950 static int tolua_lmeshio_std__vector_meshio__Vector3__iterator(lua_State* tolua_S)
6952 #ifndef TOLUA_RELEASE
6953 tolua_Error tolua_err;
6955 !tolua_isusertype(tolua_S,1,"std::vector<meshio::Vector3>",0,&tolua_err) ||
6956 !tolua_isnoobj(tolua_S,2,&tolua_err)
6962 std::vector<meshio::Vector3>* self = (std::vector<meshio::Vector3>*) tolua_tousertype(tolua_S,1,0);
6963 #ifndef TOLUA_RELEASE
6964 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
6967 std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>* range=(std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>));
6968 *range=std::make_pair(self->begin(), self->end());
6969 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>");
6970 lua_setmetatable(tolua_S, -2);
6971 lua_pushnumber(tolua_S, 0);
6973 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__Vector3__iterator_internal, 2);
6977 #ifndef TOLUA_RELEASE
6979 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
6983 #endif //#ifndef TOLUA_DISABLE
6986 /* method: new of class std::vector<meshio::pmd::Vertex> */
6987 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00
6988 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00(lua_State* tolua_S)
6990 #ifndef TOLUA_RELEASE
6991 tolua_Error tolua_err;
6993 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
6994 !tolua_isnoobj(tolua_S,2,&tolua_err)
7003 std::vector<meshio::pmd::Vertex>* tolua_ret = (std::vector<meshio::pmd::Vertex>*) Mtolua_new((std::vector<meshio::pmd::Vertex>)());
7004 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Vertex>");
7009 #ifndef TOLUA_RELEASE
7011 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7015 #endif //#ifndef TOLUA_DISABLE
7017 /* method: new_local of class std::vector<meshio::pmd::Vertex> */
7018 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00_local
7019 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00_local(lua_State* tolua_S)
7021 #ifndef TOLUA_RELEASE
7022 tolua_Error tolua_err;
7024 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7025 !tolua_isnoobj(tolua_S,2,&tolua_err)
7034 std::vector<meshio::pmd::Vertex>* tolua_ret = (std::vector<meshio::pmd::Vertex>*) Mtolua_new((std::vector<meshio::pmd::Vertex>)());
7035 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Vertex>");
7036 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
7041 #ifndef TOLUA_RELEASE
7043 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7047 #endif //#ifndef TOLUA_DISABLE
7049 /* method: size of class std::vector<meshio::pmd::Vertex> */
7050 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex__size00
7051 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex__size00(lua_State* tolua_S)
7053 #ifndef TOLUA_RELEASE
7054 tolua_Error tolua_err;
7056 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7057 !tolua_isnoobj(tolua_S,2,&tolua_err)
7063 const std::vector<meshio::pmd::Vertex>* self = (const std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7064 #ifndef TOLUA_RELEASE
7065 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
7068 unsigned int tolua_ret = (unsigned int) self->size();
7069 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7074 #ifndef TOLUA_RELEASE
7076 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
7080 #endif //#ifndef TOLUA_DISABLE
7082 /* method: push_back of class std::vector<meshio::pmd::Vertex> */
7083 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex__push_back00
7084 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex__push_back00(lua_State* tolua_S)
7086 #ifndef TOLUA_RELEASE
7087 tolua_Error tolua_err;
7089 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7090 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::Vertex",0,&tolua_err)) ||
7091 !tolua_isnoobj(tolua_S,3,&tolua_err)
7097 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7098 meshio::pmd::Vertex* value = ((meshio::pmd::Vertex*) tolua_tousertype(tolua_S,2,0));
7099 #ifndef TOLUA_RELEASE
7100 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
7103 self->push_back(*value);
7109 #ifndef TOLUA_RELEASE
7111 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
7115 #endif //#ifndef TOLUA_DISABLE
7117 /* method: back of class std::vector<meshio::pmd::Vertex> */
7118 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex__back00
7119 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex__back00(lua_State* tolua_S)
7121 #ifndef TOLUA_RELEASE
7122 tolua_Error tolua_err;
7124 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7125 !tolua_isnoobj(tolua_S,2,&tolua_err)
7131 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7132 #ifndef TOLUA_RELEASE
7133 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
7136 meshio::pmd::Vertex& tolua_ret = (meshio::pmd::Vertex&) self->back();
7137 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Vertex");
7142 #ifndef TOLUA_RELEASE
7144 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
7148 #endif //#ifndef TOLUA_DISABLE
7150 /* method: operator[] of class std::vector<meshio::pmd::Vertex> */
7151 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex___geti00
7152 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex___geti00(lua_State* tolua_S)
7154 #ifndef TOLUA_RELEASE
7155 tolua_Error tolua_err;
7157 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7158 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7159 !tolua_isnoobj(tolua_S,3,&tolua_err)
7165 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7166 int index = ((int) tolua_tonumber(tolua_S,2,0));
7167 #ifndef TOLUA_RELEASE
7168 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
7171 meshio::pmd::Vertex& tolua_ret = (meshio::pmd::Vertex&) self->operator[](index);
7172 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Vertex");
7178 #ifndef TOLUA_RELEASE
7180 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
7184 #endif //#ifndef TOLUA_DISABLE
7186 /* method: operator&[] of class std::vector<meshio::pmd::Vertex> */
7187 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Vertex___seti00
7188 static int tolua_lmeshio_std_vector_meshio__pmd__Vertex___seti00(lua_State* tolua_S)
7190 #ifndef TOLUA_RELEASE
7191 tolua_Error tolua_err;
7193 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7194 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7195 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::Vertex",0,&tolua_err)) ||
7196 !tolua_isnoobj(tolua_S,4,&tolua_err)
7202 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7203 int index = ((int) tolua_tonumber(tolua_S,2,0));
7204 meshio::pmd::Vertex tolua_value = *((meshio::pmd::Vertex*) tolua_tousertype(tolua_S,3,0));
7205 #ifndef TOLUA_RELEASE
7206 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
7208 self->operator[](index) = tolua_value;
7211 #ifndef TOLUA_RELEASE
7213 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
7217 #endif //#ifndef TOLUA_DISABLE
7219 /* stl foreachi: class std::vector<meshio::pmd::Vertex> */
7220 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator
7221 static int tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator_gc(lua_State* tolua_S)
7223 //printf("tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator_gc\n");
7224 std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator> *range=(std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>*)lua_touserdata(tolua_S, 1);
7225 range->~pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>();
7229 static int tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator_internal(lua_State* tolua_S)
7231 std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator> *range=(std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
7232 if(range->first==range->second){
7235 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
7236 tolua_pushnumber(tolua_S, index);
7238 tolua_pushnumber(tolua_S, index+1);
7239 lua_replace(tolua_S, lua_upvalueindex(2));
7241 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Vertex");
7242 meshio::pmd::Vertex& tolua_ret = (meshio::pmd::Vertex&) *range->first++;
7243 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Vertex");
7248 static int tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator(lua_State* tolua_S)
7250 #ifndef TOLUA_RELEASE
7251 tolua_Error tolua_err;
7253 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Vertex>",0,&tolua_err) ||
7254 !tolua_isnoobj(tolua_S,2,&tolua_err)
7260 std::vector<meshio::pmd::Vertex>* self = (std::vector<meshio::pmd::Vertex>*) tolua_tousertype(tolua_S,1,0);
7261 #ifndef TOLUA_RELEASE
7262 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
7265 std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>* range=(std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>));
7266 *range=std::make_pair(self->begin(), self->end());
7267 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>");
7268 lua_setmetatable(tolua_S, -2);
7269 lua_pushnumber(tolua_S, 0);
7271 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator_internal, 2);
7275 #ifndef TOLUA_RELEASE
7277 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
7281 #endif //#ifndef TOLUA_DISABLE
7284 /* method: new of class std::vector<meshio::pmd::Material> */
7285 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material__new00
7286 static int tolua_lmeshio_std_vector_meshio__pmd__Material__new00(lua_State* tolua_S)
7288 #ifndef TOLUA_RELEASE
7289 tolua_Error tolua_err;
7291 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7292 !tolua_isnoobj(tolua_S,2,&tolua_err)
7301 std::vector<meshio::pmd::Material>* tolua_ret = (std::vector<meshio::pmd::Material>*) Mtolua_new((std::vector<meshio::pmd::Material>)());
7302 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Material>");
7307 #ifndef TOLUA_RELEASE
7309 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7313 #endif //#ifndef TOLUA_DISABLE
7315 /* method: new_local of class std::vector<meshio::pmd::Material> */
7316 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material__new00_local
7317 static int tolua_lmeshio_std_vector_meshio__pmd__Material__new00_local(lua_State* tolua_S)
7319 #ifndef TOLUA_RELEASE
7320 tolua_Error tolua_err;
7322 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7323 !tolua_isnoobj(tolua_S,2,&tolua_err)
7332 std::vector<meshio::pmd::Material>* tolua_ret = (std::vector<meshio::pmd::Material>*) Mtolua_new((std::vector<meshio::pmd::Material>)());
7333 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Material>");
7334 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
7339 #ifndef TOLUA_RELEASE
7341 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7345 #endif //#ifndef TOLUA_DISABLE
7347 /* method: size of class std::vector<meshio::pmd::Material> */
7348 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material__size00
7349 static int tolua_lmeshio_std_vector_meshio__pmd__Material__size00(lua_State* tolua_S)
7351 #ifndef TOLUA_RELEASE
7352 tolua_Error tolua_err;
7354 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7355 !tolua_isnoobj(tolua_S,2,&tolua_err)
7361 const std::vector<meshio::pmd::Material>* self = (const std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7362 #ifndef TOLUA_RELEASE
7363 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
7366 unsigned int tolua_ret = (unsigned int) self->size();
7367 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7372 #ifndef TOLUA_RELEASE
7374 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
7378 #endif //#ifndef TOLUA_DISABLE
7380 /* method: push_back of class std::vector<meshio::pmd::Material> */
7381 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material__push_back00
7382 static int tolua_lmeshio_std_vector_meshio__pmd__Material__push_back00(lua_State* tolua_S)
7384 #ifndef TOLUA_RELEASE
7385 tolua_Error tolua_err;
7387 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7388 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::Material",0,&tolua_err)) ||
7389 !tolua_isnoobj(tolua_S,3,&tolua_err)
7395 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7396 meshio::pmd::Material* value = ((meshio::pmd::Material*) tolua_tousertype(tolua_S,2,0));
7397 #ifndef TOLUA_RELEASE
7398 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
7401 self->push_back(*value);
7407 #ifndef TOLUA_RELEASE
7409 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
7413 #endif //#ifndef TOLUA_DISABLE
7415 /* method: back of class std::vector<meshio::pmd::Material> */
7416 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material__back00
7417 static int tolua_lmeshio_std_vector_meshio__pmd__Material__back00(lua_State* tolua_S)
7419 #ifndef TOLUA_RELEASE
7420 tolua_Error tolua_err;
7422 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7423 !tolua_isnoobj(tolua_S,2,&tolua_err)
7429 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7430 #ifndef TOLUA_RELEASE
7431 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
7434 meshio::pmd::Material& tolua_ret = (meshio::pmd::Material&) self->back();
7435 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Material");
7440 #ifndef TOLUA_RELEASE
7442 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
7446 #endif //#ifndef TOLUA_DISABLE
7448 /* method: operator[] of class std::vector<meshio::pmd::Material> */
7449 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material___geti00
7450 static int tolua_lmeshio_std_vector_meshio__pmd__Material___geti00(lua_State* tolua_S)
7452 #ifndef TOLUA_RELEASE
7453 tolua_Error tolua_err;
7455 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7456 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7457 !tolua_isnoobj(tolua_S,3,&tolua_err)
7463 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7464 int index = ((int) tolua_tonumber(tolua_S,2,0));
7465 #ifndef TOLUA_RELEASE
7466 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
7469 meshio::pmd::Material& tolua_ret = (meshio::pmd::Material&) self->operator[](index);
7470 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Material");
7476 #ifndef TOLUA_RELEASE
7478 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
7482 #endif //#ifndef TOLUA_DISABLE
7484 /* method: operator&[] of class std::vector<meshio::pmd::Material> */
7485 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Material___seti00
7486 static int tolua_lmeshio_std_vector_meshio__pmd__Material___seti00(lua_State* tolua_S)
7488 #ifndef TOLUA_RELEASE
7489 tolua_Error tolua_err;
7491 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7492 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7493 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::Material",0,&tolua_err)) ||
7494 !tolua_isnoobj(tolua_S,4,&tolua_err)
7500 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7501 int index = ((int) tolua_tonumber(tolua_S,2,0));
7502 meshio::pmd::Material tolua_value = *((meshio::pmd::Material*) tolua_tousertype(tolua_S,3,0));
7503 #ifndef TOLUA_RELEASE
7504 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
7506 self->operator[](index) = tolua_value;
7509 #ifndef TOLUA_RELEASE
7511 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
7515 #endif //#ifndef TOLUA_DISABLE
7517 /* stl foreachi: class std::vector<meshio::pmd::Material> */
7518 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Material__iterator
7519 static int tolua_lmeshio_std__vector_meshio__pmd__Material__iterator_gc(lua_State* tolua_S)
7521 //printf("tolua_lmeshio_std__vector_meshio__pmd__Material__iterator_gc\n");
7522 std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator> *range=(std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>*)lua_touserdata(tolua_S, 1);
7523 range->~pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>();
7527 static int tolua_lmeshio_std__vector_meshio__pmd__Material__iterator_internal(lua_State* tolua_S)
7529 std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator> *range=(std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
7530 if(range->first==range->second){
7533 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
7534 tolua_pushnumber(tolua_S, index);
7536 tolua_pushnumber(tolua_S, index+1);
7537 lua_replace(tolua_S, lua_upvalueindex(2));
7539 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Material");
7540 meshio::pmd::Material& tolua_ret = (meshio::pmd::Material&) *range->first++;
7541 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Material");
7546 static int tolua_lmeshio_std__vector_meshio__pmd__Material__iterator(lua_State* tolua_S)
7548 #ifndef TOLUA_RELEASE
7549 tolua_Error tolua_err;
7551 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Material>",0,&tolua_err) ||
7552 !tolua_isnoobj(tolua_S,2,&tolua_err)
7558 std::vector<meshio::pmd::Material>* self = (std::vector<meshio::pmd::Material>*) tolua_tousertype(tolua_S,1,0);
7559 #ifndef TOLUA_RELEASE
7560 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
7563 std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>* range=(std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>));
7564 *range=std::make_pair(self->begin(), self->end());
7565 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>");
7566 lua_setmetatable(tolua_S, -2);
7567 lua_pushnumber(tolua_S, 0);
7569 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Material__iterator_internal, 2);
7573 #ifndef TOLUA_RELEASE
7575 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
7579 #endif //#ifndef TOLUA_DISABLE
7582 /* method: new of class std::vector<meshio::pmd::Bone> */
7583 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone__new00
7584 static int tolua_lmeshio_std_vector_meshio__pmd__Bone__new00(lua_State* tolua_S)
7586 #ifndef TOLUA_RELEASE
7587 tolua_Error tolua_err;
7589 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7590 !tolua_isnoobj(tolua_S,2,&tolua_err)
7599 std::vector<meshio::pmd::Bone>* tolua_ret = (std::vector<meshio::pmd::Bone>*) Mtolua_new((std::vector<meshio::pmd::Bone>)());
7600 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Bone>");
7605 #ifndef TOLUA_RELEASE
7607 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7611 #endif //#ifndef TOLUA_DISABLE
7613 /* method: new_local of class std::vector<meshio::pmd::Bone> */
7614 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone__new00_local
7615 static int tolua_lmeshio_std_vector_meshio__pmd__Bone__new00_local(lua_State* tolua_S)
7617 #ifndef TOLUA_RELEASE
7618 tolua_Error tolua_err;
7620 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7621 !tolua_isnoobj(tolua_S,2,&tolua_err)
7630 std::vector<meshio::pmd::Bone>* tolua_ret = (std::vector<meshio::pmd::Bone>*) Mtolua_new((std::vector<meshio::pmd::Bone>)());
7631 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Bone>");
7632 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
7637 #ifndef TOLUA_RELEASE
7639 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7643 #endif //#ifndef TOLUA_DISABLE
7645 /* method: size of class std::vector<meshio::pmd::Bone> */
7646 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone__size00
7647 static int tolua_lmeshio_std_vector_meshio__pmd__Bone__size00(lua_State* tolua_S)
7649 #ifndef TOLUA_RELEASE
7650 tolua_Error tolua_err;
7652 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7653 !tolua_isnoobj(tolua_S,2,&tolua_err)
7659 const std::vector<meshio::pmd::Bone>* self = (const std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7660 #ifndef TOLUA_RELEASE
7661 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
7664 unsigned int tolua_ret = (unsigned int) self->size();
7665 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7670 #ifndef TOLUA_RELEASE
7672 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
7676 #endif //#ifndef TOLUA_DISABLE
7678 /* method: push_back of class std::vector<meshio::pmd::Bone> */
7679 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone__push_back00
7680 static int tolua_lmeshio_std_vector_meshio__pmd__Bone__push_back00(lua_State* tolua_S)
7682 #ifndef TOLUA_RELEASE
7683 tolua_Error tolua_err;
7685 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7686 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::Bone",0,&tolua_err)) ||
7687 !tolua_isnoobj(tolua_S,3,&tolua_err)
7693 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7694 meshio::pmd::Bone* value = ((meshio::pmd::Bone*) tolua_tousertype(tolua_S,2,0));
7695 #ifndef TOLUA_RELEASE
7696 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
7699 self->push_back(*value);
7705 #ifndef TOLUA_RELEASE
7707 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
7711 #endif //#ifndef TOLUA_DISABLE
7713 /* method: back of class std::vector<meshio::pmd::Bone> */
7714 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone__back00
7715 static int tolua_lmeshio_std_vector_meshio__pmd__Bone__back00(lua_State* tolua_S)
7717 #ifndef TOLUA_RELEASE
7718 tolua_Error tolua_err;
7720 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7721 !tolua_isnoobj(tolua_S,2,&tolua_err)
7727 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7728 #ifndef TOLUA_RELEASE
7729 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
7732 meshio::pmd::Bone& tolua_ret = (meshio::pmd::Bone&) self->back();
7733 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone");
7738 #ifndef TOLUA_RELEASE
7740 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
7744 #endif //#ifndef TOLUA_DISABLE
7746 /* method: operator[] of class std::vector<meshio::pmd::Bone> */
7747 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___geti00
7748 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___geti00(lua_State* tolua_S)
7750 #ifndef TOLUA_RELEASE
7751 tolua_Error tolua_err;
7753 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7754 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7755 !tolua_isnoobj(tolua_S,3,&tolua_err)
7761 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7762 int index = ((int) tolua_tonumber(tolua_S,2,0));
7763 #ifndef TOLUA_RELEASE
7764 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
7767 meshio::pmd::Bone& tolua_ret = (meshio::pmd::Bone&) self->operator[](index);
7768 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone");
7774 #ifndef TOLUA_RELEASE
7776 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
7780 #endif //#ifndef TOLUA_DISABLE
7782 /* method: operator&[] of class std::vector<meshio::pmd::Bone> */
7783 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Bone___seti00
7784 static int tolua_lmeshio_std_vector_meshio__pmd__Bone___seti00(lua_State* tolua_S)
7786 #ifndef TOLUA_RELEASE
7787 tolua_Error tolua_err;
7789 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7790 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
7791 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::Bone",0,&tolua_err)) ||
7792 !tolua_isnoobj(tolua_S,4,&tolua_err)
7798 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7799 int index = ((int) tolua_tonumber(tolua_S,2,0));
7800 meshio::pmd::Bone tolua_value = *((meshio::pmd::Bone*) tolua_tousertype(tolua_S,3,0));
7801 #ifndef TOLUA_RELEASE
7802 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
7804 self->operator[](index) = tolua_value;
7807 #ifndef TOLUA_RELEASE
7809 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
7813 #endif //#ifndef TOLUA_DISABLE
7815 /* stl foreachi: class std::vector<meshio::pmd::Bone> */
7816 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator
7817 static int tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator_gc(lua_State* tolua_S)
7819 //printf("tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator_gc\n");
7820 std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator> *range=(std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>*)lua_touserdata(tolua_S, 1);
7821 range->~pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>();
7825 static int tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator_internal(lua_State* tolua_S)
7827 std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator> *range=(std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
7828 if(range->first==range->second){
7831 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
7832 tolua_pushnumber(tolua_S, index);
7834 tolua_pushnumber(tolua_S, index+1);
7835 lua_replace(tolua_S, lua_upvalueindex(2));
7837 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Bone");
7838 meshio::pmd::Bone& tolua_ret = (meshio::pmd::Bone&) *range->first++;
7839 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Bone");
7844 static int tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator(lua_State* tolua_S)
7846 #ifndef TOLUA_RELEASE
7847 tolua_Error tolua_err;
7849 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Bone>",0,&tolua_err) ||
7850 !tolua_isnoobj(tolua_S,2,&tolua_err)
7856 std::vector<meshio::pmd::Bone>* self = (std::vector<meshio::pmd::Bone>*) tolua_tousertype(tolua_S,1,0);
7857 #ifndef TOLUA_RELEASE
7858 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
7861 std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>* range=(std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>));
7862 *range=std::make_pair(self->begin(), self->end());
7863 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>");
7864 lua_setmetatable(tolua_S, -2);
7865 lua_pushnumber(tolua_S, 0);
7867 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator_internal, 2);
7871 #ifndef TOLUA_RELEASE
7873 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
7877 #endif //#ifndef TOLUA_DISABLE
7880 /* method: new of class std::vector<meshio::pmd::IK> */
7881 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK__new00
7882 static int tolua_lmeshio_std_vector_meshio__pmd__IK__new00(lua_State* tolua_S)
7884 #ifndef TOLUA_RELEASE
7885 tolua_Error tolua_err;
7887 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
7888 !tolua_isnoobj(tolua_S,2,&tolua_err)
7897 std::vector<meshio::pmd::IK>* tolua_ret = (std::vector<meshio::pmd::IK>*) Mtolua_new((std::vector<meshio::pmd::IK>)());
7898 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::IK>");
7903 #ifndef TOLUA_RELEASE
7905 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7909 #endif //#ifndef TOLUA_DISABLE
7911 /* method: new_local of class std::vector<meshio::pmd::IK> */
7912 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK__new00_local
7913 static int tolua_lmeshio_std_vector_meshio__pmd__IK__new00_local(lua_State* tolua_S)
7915 #ifndef TOLUA_RELEASE
7916 tolua_Error tolua_err;
7918 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
7919 !tolua_isnoobj(tolua_S,2,&tolua_err)
7928 std::vector<meshio::pmd::IK>* tolua_ret = (std::vector<meshio::pmd::IK>*) Mtolua_new((std::vector<meshio::pmd::IK>)());
7929 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::IK>");
7930 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
7935 #ifndef TOLUA_RELEASE
7937 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
7941 #endif //#ifndef TOLUA_DISABLE
7943 /* method: size of class std::vector<meshio::pmd::IK> */
7944 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK__size00
7945 static int tolua_lmeshio_std_vector_meshio__pmd__IK__size00(lua_State* tolua_S)
7947 #ifndef TOLUA_RELEASE
7948 tolua_Error tolua_err;
7950 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::IK>",0,&tolua_err) ||
7951 !tolua_isnoobj(tolua_S,2,&tolua_err)
7957 const std::vector<meshio::pmd::IK>* self = (const std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
7958 #ifndef TOLUA_RELEASE
7959 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
7962 unsigned int tolua_ret = (unsigned int) self->size();
7963 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
7968 #ifndef TOLUA_RELEASE
7970 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
7974 #endif //#ifndef TOLUA_DISABLE
7976 /* method: push_back of class std::vector<meshio::pmd::IK> */
7977 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK__push_back00
7978 static int tolua_lmeshio_std_vector_meshio__pmd__IK__push_back00(lua_State* tolua_S)
7980 #ifndef TOLUA_RELEASE
7981 tolua_Error tolua_err;
7983 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
7984 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::IK",0,&tolua_err)) ||
7985 !tolua_isnoobj(tolua_S,3,&tolua_err)
7991 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
7992 meshio::pmd::IK* value = ((meshio::pmd::IK*) tolua_tousertype(tolua_S,2,0));
7993 #ifndef TOLUA_RELEASE
7994 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
7997 self->push_back(*value);
8003 #ifndef TOLUA_RELEASE
8005 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
8009 #endif //#ifndef TOLUA_DISABLE
8011 /* method: back of class std::vector<meshio::pmd::IK> */
8012 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK__back00
8013 static int tolua_lmeshio_std_vector_meshio__pmd__IK__back00(lua_State* tolua_S)
8015 #ifndef TOLUA_RELEASE
8016 tolua_Error tolua_err;
8018 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
8019 !tolua_isnoobj(tolua_S,2,&tolua_err)
8025 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
8026 #ifndef TOLUA_RELEASE
8027 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
8030 meshio::pmd::IK& tolua_ret = (meshio::pmd::IK&) self->back();
8031 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::IK");
8036 #ifndef TOLUA_RELEASE
8038 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
8042 #endif //#ifndef TOLUA_DISABLE
8044 /* method: operator[] of class std::vector<meshio::pmd::IK> */
8045 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK___geti00
8046 static int tolua_lmeshio_std_vector_meshio__pmd__IK___geti00(lua_State* tolua_S)
8048 #ifndef TOLUA_RELEASE
8049 tolua_Error tolua_err;
8051 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
8052 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8053 !tolua_isnoobj(tolua_S,3,&tolua_err)
8059 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
8060 int index = ((int) tolua_tonumber(tolua_S,2,0));
8061 #ifndef TOLUA_RELEASE
8062 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
8065 meshio::pmd::IK& tolua_ret = (meshio::pmd::IK&) self->operator[](index);
8066 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::IK");
8072 #ifndef TOLUA_RELEASE
8074 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
8078 #endif //#ifndef TOLUA_DISABLE
8080 /* method: operator&[] of class std::vector<meshio::pmd::IK> */
8081 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__IK___seti00
8082 static int tolua_lmeshio_std_vector_meshio__pmd__IK___seti00(lua_State* tolua_S)
8084 #ifndef TOLUA_RELEASE
8085 tolua_Error tolua_err;
8087 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
8088 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8089 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::IK",0,&tolua_err)) ||
8090 !tolua_isnoobj(tolua_S,4,&tolua_err)
8096 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
8097 int index = ((int) tolua_tonumber(tolua_S,2,0));
8098 meshio::pmd::IK tolua_value = *((meshio::pmd::IK*) tolua_tousertype(tolua_S,3,0));
8099 #ifndef TOLUA_RELEASE
8100 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
8102 self->operator[](index) = tolua_value;
8105 #ifndef TOLUA_RELEASE
8107 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
8111 #endif //#ifndef TOLUA_DISABLE
8113 /* stl foreachi: class std::vector<meshio::pmd::IK> */
8114 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__IK__iterator
8115 static int tolua_lmeshio_std__vector_meshio__pmd__IK__iterator_gc(lua_State* tolua_S)
8117 //printf("tolua_lmeshio_std__vector_meshio__pmd__IK__iterator_gc\n");
8118 std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator> *range=(std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>*)lua_touserdata(tolua_S, 1);
8119 range->~pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>();
8123 static int tolua_lmeshio_std__vector_meshio__pmd__IK__iterator_internal(lua_State* tolua_S)
8125 std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator> *range=(std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
8126 if(range->first==range->second){
8129 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
8130 tolua_pushnumber(tolua_S, index);
8132 tolua_pushnumber(tolua_S, index+1);
8133 lua_replace(tolua_S, lua_upvalueindex(2));
8135 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::IK");
8136 meshio::pmd::IK& tolua_ret = (meshio::pmd::IK&) *range->first++;
8137 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::IK");
8142 static int tolua_lmeshio_std__vector_meshio__pmd__IK__iterator(lua_State* tolua_S)
8144 #ifndef TOLUA_RELEASE
8145 tolua_Error tolua_err;
8147 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::IK>",0,&tolua_err) ||
8148 !tolua_isnoobj(tolua_S,2,&tolua_err)
8154 std::vector<meshio::pmd::IK>* self = (std::vector<meshio::pmd::IK>*) tolua_tousertype(tolua_S,1,0);
8155 #ifndef TOLUA_RELEASE
8156 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
8159 std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>* range=(std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>));
8160 *range=std::make_pair(self->begin(), self->end());
8161 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>");
8162 lua_setmetatable(tolua_S, -2);
8163 lua_pushnumber(tolua_S, 0);
8165 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__IK__iterator_internal, 2);
8169 #ifndef TOLUA_RELEASE
8171 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
8175 #endif //#ifndef TOLUA_DISABLE
8178 /* method: new of class std::vector<meshio::pmd::Morph> */
8179 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph__new00
8180 static int tolua_lmeshio_std_vector_meshio__pmd__Morph__new00(lua_State* tolua_S)
8182 #ifndef TOLUA_RELEASE
8183 tolua_Error tolua_err;
8185 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8186 !tolua_isnoobj(tolua_S,2,&tolua_err)
8195 std::vector<meshio::pmd::Morph>* tolua_ret = (std::vector<meshio::pmd::Morph>*) Mtolua_new((std::vector<meshio::pmd::Morph>)());
8196 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Morph>");
8201 #ifndef TOLUA_RELEASE
8203 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8207 #endif //#ifndef TOLUA_DISABLE
8209 /* method: new_local of class std::vector<meshio::pmd::Morph> */
8210 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph__new00_local
8211 static int tolua_lmeshio_std_vector_meshio__pmd__Morph__new00_local(lua_State* tolua_S)
8213 #ifndef TOLUA_RELEASE
8214 tolua_Error tolua_err;
8216 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8217 !tolua_isnoobj(tolua_S,2,&tolua_err)
8226 std::vector<meshio::pmd::Morph>* tolua_ret = (std::vector<meshio::pmd::Morph>*) Mtolua_new((std::vector<meshio::pmd::Morph>)());
8227 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Morph>");
8228 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
8233 #ifndef TOLUA_RELEASE
8235 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8239 #endif //#ifndef TOLUA_DISABLE
8241 /* method: size of class std::vector<meshio::pmd::Morph> */
8242 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph__size00
8243 static int tolua_lmeshio_std_vector_meshio__pmd__Morph__size00(lua_State* tolua_S)
8245 #ifndef TOLUA_RELEASE
8246 tolua_Error tolua_err;
8248 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8249 !tolua_isnoobj(tolua_S,2,&tolua_err)
8255 const std::vector<meshio::pmd::Morph>* self = (const std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8256 #ifndef TOLUA_RELEASE
8257 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
8260 unsigned int tolua_ret = (unsigned int) self->size();
8261 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8266 #ifndef TOLUA_RELEASE
8268 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
8272 #endif //#ifndef TOLUA_DISABLE
8274 /* method: push_back of class std::vector<meshio::pmd::Morph> */
8275 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph__push_back00
8276 static int tolua_lmeshio_std_vector_meshio__pmd__Morph__push_back00(lua_State* tolua_S)
8278 #ifndef TOLUA_RELEASE
8279 tolua_Error tolua_err;
8281 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8282 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::Morph",0,&tolua_err)) ||
8283 !tolua_isnoobj(tolua_S,3,&tolua_err)
8289 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8290 meshio::pmd::Morph* value = ((meshio::pmd::Morph*) tolua_tousertype(tolua_S,2,0));
8291 #ifndef TOLUA_RELEASE
8292 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
8295 self->push_back(*value);
8301 #ifndef TOLUA_RELEASE
8303 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
8307 #endif //#ifndef TOLUA_DISABLE
8309 /* method: back of class std::vector<meshio::pmd::Morph> */
8310 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph__back00
8311 static int tolua_lmeshio_std_vector_meshio__pmd__Morph__back00(lua_State* tolua_S)
8313 #ifndef TOLUA_RELEASE
8314 tolua_Error tolua_err;
8316 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8317 !tolua_isnoobj(tolua_S,2,&tolua_err)
8323 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8324 #ifndef TOLUA_RELEASE
8325 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
8328 meshio::pmd::Morph& tolua_ret = (meshio::pmd::Morph&) self->back();
8329 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Morph");
8334 #ifndef TOLUA_RELEASE
8336 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
8340 #endif //#ifndef TOLUA_DISABLE
8342 /* method: operator[] of class std::vector<meshio::pmd::Morph> */
8343 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph___geti00
8344 static int tolua_lmeshio_std_vector_meshio__pmd__Morph___geti00(lua_State* tolua_S)
8346 #ifndef TOLUA_RELEASE
8347 tolua_Error tolua_err;
8349 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8350 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8351 !tolua_isnoobj(tolua_S,3,&tolua_err)
8357 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8358 int index = ((int) tolua_tonumber(tolua_S,2,0));
8359 #ifndef TOLUA_RELEASE
8360 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
8363 meshio::pmd::Morph& tolua_ret = (meshio::pmd::Morph&) self->operator[](index);
8364 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Morph");
8370 #ifndef TOLUA_RELEASE
8372 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
8376 #endif //#ifndef TOLUA_DISABLE
8378 /* method: operator&[] of class std::vector<meshio::pmd::Morph> */
8379 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Morph___seti00
8380 static int tolua_lmeshio_std_vector_meshio__pmd__Morph___seti00(lua_State* tolua_S)
8382 #ifndef TOLUA_RELEASE
8383 tolua_Error tolua_err;
8385 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8386 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8387 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::Morph",0,&tolua_err)) ||
8388 !tolua_isnoobj(tolua_S,4,&tolua_err)
8394 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8395 int index = ((int) tolua_tonumber(tolua_S,2,0));
8396 meshio::pmd::Morph tolua_value = *((meshio::pmd::Morph*) tolua_tousertype(tolua_S,3,0));
8397 #ifndef TOLUA_RELEASE
8398 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
8400 self->operator[](index) = tolua_value;
8403 #ifndef TOLUA_RELEASE
8405 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
8409 #endif //#ifndef TOLUA_DISABLE
8411 /* stl foreachi: class std::vector<meshio::pmd::Morph> */
8412 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator
8413 static int tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator_gc(lua_State* tolua_S)
8415 //printf("tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator_gc\n");
8416 std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator> *range=(std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>*)lua_touserdata(tolua_S, 1);
8417 range->~pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>();
8421 static int tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator_internal(lua_State* tolua_S)
8423 std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator> *range=(std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
8424 if(range->first==range->second){
8427 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
8428 tolua_pushnumber(tolua_S, index);
8430 tolua_pushnumber(tolua_S, index+1);
8431 lua_replace(tolua_S, lua_upvalueindex(2));
8433 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Morph");
8434 meshio::pmd::Morph& tolua_ret = (meshio::pmd::Morph&) *range->first++;
8435 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Morph");
8440 static int tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator(lua_State* tolua_S)
8442 #ifndef TOLUA_RELEASE
8443 tolua_Error tolua_err;
8445 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Morph>",0,&tolua_err) ||
8446 !tolua_isnoobj(tolua_S,2,&tolua_err)
8452 std::vector<meshio::pmd::Morph>* self = (std::vector<meshio::pmd::Morph>*) tolua_tousertype(tolua_S,1,0);
8453 #ifndef TOLUA_RELEASE
8454 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
8457 std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>* range=(std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>));
8458 *range=std::make_pair(self->begin(), self->end());
8459 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>");
8460 lua_setmetatable(tolua_S, -2);
8461 lua_pushnumber(tolua_S, 0);
8463 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator_internal, 2);
8467 #ifndef TOLUA_RELEASE
8469 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
8473 #endif //#ifndef TOLUA_DISABLE
8476 /* method: new of class std::vector<meshio::pmd::BoneGroup> */
8477 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00
8478 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00(lua_State* tolua_S)
8480 #ifndef TOLUA_RELEASE
8481 tolua_Error tolua_err;
8483 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8484 !tolua_isnoobj(tolua_S,2,&tolua_err)
8493 std::vector<meshio::pmd::BoneGroup>* tolua_ret = (std::vector<meshio::pmd::BoneGroup>*) Mtolua_new((std::vector<meshio::pmd::BoneGroup>)());
8494 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::BoneGroup>");
8499 #ifndef TOLUA_RELEASE
8501 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8505 #endif //#ifndef TOLUA_DISABLE
8507 /* method: new_local of class std::vector<meshio::pmd::BoneGroup> */
8508 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00_local
8509 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00_local(lua_State* tolua_S)
8511 #ifndef TOLUA_RELEASE
8512 tolua_Error tolua_err;
8514 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8515 !tolua_isnoobj(tolua_S,2,&tolua_err)
8524 std::vector<meshio::pmd::BoneGroup>* tolua_ret = (std::vector<meshio::pmd::BoneGroup>*) Mtolua_new((std::vector<meshio::pmd::BoneGroup>)());
8525 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::BoneGroup>");
8526 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
8531 #ifndef TOLUA_RELEASE
8533 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8537 #endif //#ifndef TOLUA_DISABLE
8539 /* method: size of class std::vector<meshio::pmd::BoneGroup> */
8540 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__size00
8541 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__size00(lua_State* tolua_S)
8543 #ifndef TOLUA_RELEASE
8544 tolua_Error tolua_err;
8546 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8547 !tolua_isnoobj(tolua_S,2,&tolua_err)
8553 const std::vector<meshio::pmd::BoneGroup>* self = (const std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8554 #ifndef TOLUA_RELEASE
8555 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
8558 unsigned int tolua_ret = (unsigned int) self->size();
8559 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8564 #ifndef TOLUA_RELEASE
8566 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
8570 #endif //#ifndef TOLUA_DISABLE
8572 /* method: push_back of class std::vector<meshio::pmd::BoneGroup> */
8573 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__push_back00
8574 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__push_back00(lua_State* tolua_S)
8576 #ifndef TOLUA_RELEASE
8577 tolua_Error tolua_err;
8579 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8580 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::BoneGroup",0,&tolua_err)) ||
8581 !tolua_isnoobj(tolua_S,3,&tolua_err)
8587 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8588 meshio::pmd::BoneGroup* value = ((meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,2,0));
8589 #ifndef TOLUA_RELEASE
8590 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
8593 self->push_back(*value);
8599 #ifndef TOLUA_RELEASE
8601 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
8605 #endif //#ifndef TOLUA_DISABLE
8607 /* method: back of class std::vector<meshio::pmd::BoneGroup> */
8608 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__back00
8609 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__back00(lua_State* tolua_S)
8611 #ifndef TOLUA_RELEASE
8612 tolua_Error tolua_err;
8614 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8615 !tolua_isnoobj(tolua_S,2,&tolua_err)
8621 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8622 #ifndef TOLUA_RELEASE
8623 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
8626 meshio::pmd::BoneGroup& tolua_ret = (meshio::pmd::BoneGroup&) self->back();
8627 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::BoneGroup");
8632 #ifndef TOLUA_RELEASE
8634 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
8638 #endif //#ifndef TOLUA_DISABLE
8640 /* method: operator[] of class std::vector<meshio::pmd::BoneGroup> */
8641 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___geti00
8642 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___geti00(lua_State* tolua_S)
8644 #ifndef TOLUA_RELEASE
8645 tolua_Error tolua_err;
8647 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8648 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8649 !tolua_isnoobj(tolua_S,3,&tolua_err)
8655 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8656 int index = ((int) tolua_tonumber(tolua_S,2,0));
8657 #ifndef TOLUA_RELEASE
8658 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
8661 meshio::pmd::BoneGroup& tolua_ret = (meshio::pmd::BoneGroup&) self->operator[](index);
8662 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::BoneGroup");
8668 #ifndef TOLUA_RELEASE
8670 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
8674 #endif //#ifndef TOLUA_DISABLE
8676 /* method: operator&[] of class std::vector<meshio::pmd::BoneGroup> */
8677 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___seti00
8678 static int tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___seti00(lua_State* tolua_S)
8680 #ifndef TOLUA_RELEASE
8681 tolua_Error tolua_err;
8683 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8684 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8685 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::BoneGroup",0,&tolua_err)) ||
8686 !tolua_isnoobj(tolua_S,4,&tolua_err)
8692 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8693 int index = ((int) tolua_tonumber(tolua_S,2,0));
8694 meshio::pmd::BoneGroup tolua_value = *((meshio::pmd::BoneGroup*) tolua_tousertype(tolua_S,3,0));
8695 #ifndef TOLUA_RELEASE
8696 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
8698 self->operator[](index) = tolua_value;
8701 #ifndef TOLUA_RELEASE
8703 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
8707 #endif //#ifndef TOLUA_DISABLE
8709 /* stl foreachi: class std::vector<meshio::pmd::BoneGroup> */
8710 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator
8711 static int tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator_gc(lua_State* tolua_S)
8713 //printf("tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator_gc\n");
8714 std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator> *range=(std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>*)lua_touserdata(tolua_S, 1);
8715 range->~pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>();
8719 static int tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator_internal(lua_State* tolua_S)
8721 std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator> *range=(std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
8722 if(range->first==range->second){
8725 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
8726 tolua_pushnumber(tolua_S, index);
8728 tolua_pushnumber(tolua_S, index+1);
8729 lua_replace(tolua_S, lua_upvalueindex(2));
8731 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::BoneGroup");
8732 meshio::pmd::BoneGroup& tolua_ret = (meshio::pmd::BoneGroup&) *range->first++;
8733 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::BoneGroup");
8738 static int tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator(lua_State* tolua_S)
8740 #ifndef TOLUA_RELEASE
8741 tolua_Error tolua_err;
8743 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::BoneGroup>",0,&tolua_err) ||
8744 !tolua_isnoobj(tolua_S,2,&tolua_err)
8750 std::vector<meshio::pmd::BoneGroup>* self = (std::vector<meshio::pmd::BoneGroup>*) tolua_tousertype(tolua_S,1,0);
8751 #ifndef TOLUA_RELEASE
8752 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
8755 std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>* range=(std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>));
8756 *range=std::make_pair(self->begin(), self->end());
8757 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>");
8758 lua_setmetatable(tolua_S, -2);
8759 lua_pushnumber(tolua_S, 0);
8761 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator_internal, 2);
8765 #ifndef TOLUA_RELEASE
8767 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
8771 #endif //#ifndef TOLUA_DISABLE
8774 /* method: new of class std::vector<std::pair<unsigned short,unsigned char> > */
8775 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00
8776 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00(lua_State* tolua_S)
8778 #ifndef TOLUA_RELEASE
8779 tolua_Error tolua_err;
8781 !tolua_isusertable(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8782 !tolua_isnoobj(tolua_S,2,&tolua_err)
8791 std::vector<std::pair<unsigned short,unsigned char> >* tolua_ret = (std::vector<std::pair<unsigned short,unsigned char> >*) Mtolua_new((std::vector<std::pair<unsigned short,unsigned char> >)());
8792 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<std::pair<unsigned short,unsigned char> >");
8797 #ifndef TOLUA_RELEASE
8799 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8803 #endif //#ifndef TOLUA_DISABLE
8805 /* method: new_local of class std::vector<std::pair<unsigned short,unsigned char> > */
8806 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00_local
8807 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00_local(lua_State* tolua_S)
8809 #ifndef TOLUA_RELEASE
8810 tolua_Error tolua_err;
8812 !tolua_isusertable(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8813 !tolua_isnoobj(tolua_S,2,&tolua_err)
8822 std::vector<std::pair<unsigned short,unsigned char> >* tolua_ret = (std::vector<std::pair<unsigned short,unsigned char> >*) Mtolua_new((std::vector<std::pair<unsigned short,unsigned char> >)());
8823 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<std::pair<unsigned short,unsigned char> >");
8824 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
8829 #ifndef TOLUA_RELEASE
8831 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
8835 #endif //#ifndef TOLUA_DISABLE
8837 /* method: size of class std::vector<std::pair<unsigned short,unsigned char> > */
8838 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____size00
8839 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____size00(lua_State* tolua_S)
8841 #ifndef TOLUA_RELEASE
8842 tolua_Error tolua_err;
8844 !tolua_isusertype(tolua_S,1,"const std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8845 !tolua_isnoobj(tolua_S,2,&tolua_err)
8851 const std::vector<std::pair<unsigned short,unsigned char> >* self = (const std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
8852 #ifndef TOLUA_RELEASE
8853 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
8856 unsigned int tolua_ret = (unsigned int) self->size();
8857 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
8862 #ifndef TOLUA_RELEASE
8864 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
8868 #endif //#ifndef TOLUA_DISABLE
8870 /* method: push_back of class std::vector<std::pair<unsigned short,unsigned char> > */
8871 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____push_back00
8872 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____push_back00(lua_State* tolua_S)
8874 #ifndef TOLUA_RELEASE
8875 tolua_Error tolua_err;
8877 !tolua_isusertype(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8878 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"std::pair<unsigned short,unsigned char>",0,&tolua_err)) ||
8879 !tolua_isnoobj(tolua_S,3,&tolua_err)
8885 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
8886 std::pair<unsigned short,unsigned char>* value = ((std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,2,0));
8887 #ifndef TOLUA_RELEASE
8888 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
8891 self->push_back(*value);
8897 #ifndef TOLUA_RELEASE
8899 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
8903 #endif //#ifndef TOLUA_DISABLE
8905 /* method: back of class std::vector<std::pair<unsigned short,unsigned char> > */
8906 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____back00
8907 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____back00(lua_State* tolua_S)
8909 #ifndef TOLUA_RELEASE
8910 tolua_Error tolua_err;
8912 !tolua_isusertype(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8913 !tolua_isnoobj(tolua_S,2,&tolua_err)
8919 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
8920 #ifndef TOLUA_RELEASE
8921 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
8924 std::pair<unsigned short,unsigned char>& tolua_ret = (std::pair<unsigned short,unsigned char>&) self->back();
8925 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"std::pair<unsigned short,unsigned char>");
8930 #ifndef TOLUA_RELEASE
8932 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
8936 #endif //#ifndef TOLUA_DISABLE
8938 /* method: operator[] of class std::vector<std::pair<unsigned short,unsigned char> > */
8939 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____geti00
8940 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____geti00(lua_State* tolua_S)
8942 #ifndef TOLUA_RELEASE
8943 tolua_Error tolua_err;
8945 !tolua_isusertype(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8946 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8947 !tolua_isnoobj(tolua_S,3,&tolua_err)
8953 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
8954 int index = ((int) tolua_tonumber(tolua_S,2,0));
8955 #ifndef TOLUA_RELEASE
8956 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
8959 std::pair<unsigned short,unsigned char>& tolua_ret = (std::pair<unsigned short,unsigned char>&) self->operator[](index);
8960 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"std::pair<unsigned short,unsigned char>");
8966 #ifndef TOLUA_RELEASE
8968 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
8972 #endif //#ifndef TOLUA_DISABLE
8974 /* method: operator&[] of class std::vector<std::pair<unsigned short,unsigned char> > */
8975 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____seti00
8976 static int tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____seti00(lua_State* tolua_S)
8978 #ifndef TOLUA_RELEASE
8979 tolua_Error tolua_err;
8981 !tolua_isusertype(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
8982 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
8983 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"std::pair<unsigned short,unsigned char>",0,&tolua_err)) ||
8984 !tolua_isnoobj(tolua_S,4,&tolua_err)
8990 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
8991 int index = ((int) tolua_tonumber(tolua_S,2,0));
8992 std::pair<unsigned short,unsigned char> tolua_value = *((std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,3,0));
8993 #ifndef TOLUA_RELEASE
8994 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
8996 self->operator[](index) = tolua_value;
8999 #ifndef TOLUA_RELEASE
9001 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
9005 #endif //#ifndef TOLUA_DISABLE
9007 /* stl foreachi: class std::vector<std::pair<unsigned short,unsigned char> > */
9008 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator
9009 static int tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator_gc(lua_State* tolua_S)
9011 //printf("tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator_gc\n");
9012 std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator> *range=(std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>*)lua_touserdata(tolua_S, 1);
9013 range->~pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>();
9017 static int tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator_internal(lua_State* tolua_S)
9019 std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator> *range=(std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
9020 if(range->first==range->second){
9023 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
9024 tolua_pushnumber(tolua_S, index);
9026 tolua_pushnumber(tolua_S, index+1);
9027 lua_replace(tolua_S, lua_upvalueindex(2));
9029 //tolua_pushusertype(tolua_S, &(*range->first++), "std::pair<unsigned short,unsigned char> ");
9030 std::pair<unsigned short,unsigned char>& tolua_ret = (std::pair<unsigned short,unsigned char>&) *range->first++;
9031 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"std::pair<unsigned short,unsigned char>");
9036 static int tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator(lua_State* tolua_S)
9038 #ifndef TOLUA_RELEASE
9039 tolua_Error tolua_err;
9041 !tolua_isusertype(tolua_S,1,"std::vector<std::pair<unsigned short,unsigned char> >",0,&tolua_err) ||
9042 !tolua_isnoobj(tolua_S,2,&tolua_err)
9048 std::vector<std::pair<unsigned short,unsigned char> >* self = (std::vector<std::pair<unsigned short,unsigned char> >*) tolua_tousertype(tolua_S,1,0);
9049 #ifndef TOLUA_RELEASE
9050 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
9053 std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>* range=(std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>));
9054 *range=std::make_pair(self->begin(), self->end());
9055 luaL_getmetatable(tolua_S, "std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>");
9056 lua_setmetatable(tolua_S, -2);
9057 lua_pushnumber(tolua_S, 0);
9059 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator_internal, 2);
9063 #ifndef TOLUA_RELEASE
9065 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
9069 #endif //#ifndef TOLUA_DISABLE
9072 /* method: new of class std::vector<meshio::pmd::RigidBody> */
9073 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00
9074 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00(lua_State* tolua_S)
9076 #ifndef TOLUA_RELEASE
9077 tolua_Error tolua_err;
9079 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9080 !tolua_isnoobj(tolua_S,2,&tolua_err)
9089 std::vector<meshio::pmd::RigidBody>* tolua_ret = (std::vector<meshio::pmd::RigidBody>*) Mtolua_new((std::vector<meshio::pmd::RigidBody>)());
9090 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::RigidBody>");
9095 #ifndef TOLUA_RELEASE
9097 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9101 #endif //#ifndef TOLUA_DISABLE
9103 /* method: new_local of class std::vector<meshio::pmd::RigidBody> */
9104 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00_local
9105 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00_local(lua_State* tolua_S)
9107 #ifndef TOLUA_RELEASE
9108 tolua_Error tolua_err;
9110 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9111 !tolua_isnoobj(tolua_S,2,&tolua_err)
9120 std::vector<meshio::pmd::RigidBody>* tolua_ret = (std::vector<meshio::pmd::RigidBody>*) Mtolua_new((std::vector<meshio::pmd::RigidBody>)());
9121 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::RigidBody>");
9122 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
9127 #ifndef TOLUA_RELEASE
9129 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9133 #endif //#ifndef TOLUA_DISABLE
9135 /* method: size of class std::vector<meshio::pmd::RigidBody> */
9136 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody__size00
9137 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody__size00(lua_State* tolua_S)
9139 #ifndef TOLUA_RELEASE
9140 tolua_Error tolua_err;
9142 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9143 !tolua_isnoobj(tolua_S,2,&tolua_err)
9149 const std::vector<meshio::pmd::RigidBody>* self = (const std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9150 #ifndef TOLUA_RELEASE
9151 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
9154 unsigned int tolua_ret = (unsigned int) self->size();
9155 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
9160 #ifndef TOLUA_RELEASE
9162 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
9166 #endif //#ifndef TOLUA_DISABLE
9168 /* method: push_back of class std::vector<meshio::pmd::RigidBody> */
9169 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody__push_back00
9170 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody__push_back00(lua_State* tolua_S)
9172 #ifndef TOLUA_RELEASE
9173 tolua_Error tolua_err;
9175 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9176 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::RigidBody",0,&tolua_err)) ||
9177 !tolua_isnoobj(tolua_S,3,&tolua_err)
9183 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9184 meshio::pmd::RigidBody* value = ((meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,2,0));
9185 #ifndef TOLUA_RELEASE
9186 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
9189 self->push_back(*value);
9195 #ifndef TOLUA_RELEASE
9197 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
9201 #endif //#ifndef TOLUA_DISABLE
9203 /* method: back of class std::vector<meshio::pmd::RigidBody> */
9204 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody__back00
9205 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody__back00(lua_State* tolua_S)
9207 #ifndef TOLUA_RELEASE
9208 tolua_Error tolua_err;
9210 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9211 !tolua_isnoobj(tolua_S,2,&tolua_err)
9217 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9218 #ifndef TOLUA_RELEASE
9219 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
9222 meshio::pmd::RigidBody& tolua_ret = (meshio::pmd::RigidBody&) self->back();
9223 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::RigidBody");
9228 #ifndef TOLUA_RELEASE
9230 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
9234 #endif //#ifndef TOLUA_DISABLE
9236 /* method: operator[] of class std::vector<meshio::pmd::RigidBody> */
9237 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody___geti00
9238 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody___geti00(lua_State* tolua_S)
9240 #ifndef TOLUA_RELEASE
9241 tolua_Error tolua_err;
9243 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9244 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9245 !tolua_isnoobj(tolua_S,3,&tolua_err)
9251 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9252 int index = ((int) tolua_tonumber(tolua_S,2,0));
9253 #ifndef TOLUA_RELEASE
9254 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
9257 meshio::pmd::RigidBody& tolua_ret = (meshio::pmd::RigidBody&) self->operator[](index);
9258 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::RigidBody");
9264 #ifndef TOLUA_RELEASE
9266 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
9270 #endif //#ifndef TOLUA_DISABLE
9272 /* method: operator&[] of class std::vector<meshio::pmd::RigidBody> */
9273 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__RigidBody___seti00
9274 static int tolua_lmeshio_std_vector_meshio__pmd__RigidBody___seti00(lua_State* tolua_S)
9276 #ifndef TOLUA_RELEASE
9277 tolua_Error tolua_err;
9279 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9280 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9281 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::RigidBody",0,&tolua_err)) ||
9282 !tolua_isnoobj(tolua_S,4,&tolua_err)
9288 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9289 int index = ((int) tolua_tonumber(tolua_S,2,0));
9290 meshio::pmd::RigidBody tolua_value = *((meshio::pmd::RigidBody*) tolua_tousertype(tolua_S,3,0));
9291 #ifndef TOLUA_RELEASE
9292 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
9294 self->operator[](index) = tolua_value;
9297 #ifndef TOLUA_RELEASE
9299 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
9303 #endif //#ifndef TOLUA_DISABLE
9305 /* stl foreachi: class std::vector<meshio::pmd::RigidBody> */
9306 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator
9307 static int tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator_gc(lua_State* tolua_S)
9309 //printf("tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator_gc\n");
9310 std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator> *range=(std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>*)lua_touserdata(tolua_S, 1);
9311 range->~pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>();
9315 static int tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator_internal(lua_State* tolua_S)
9317 std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator> *range=(std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
9318 if(range->first==range->second){
9321 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
9322 tolua_pushnumber(tolua_S, index);
9324 tolua_pushnumber(tolua_S, index+1);
9325 lua_replace(tolua_S, lua_upvalueindex(2));
9327 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::RigidBody");
9328 meshio::pmd::RigidBody& tolua_ret = (meshio::pmd::RigidBody&) *range->first++;
9329 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::RigidBody");
9334 static int tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator(lua_State* tolua_S)
9336 #ifndef TOLUA_RELEASE
9337 tolua_Error tolua_err;
9339 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::RigidBody>",0,&tolua_err) ||
9340 !tolua_isnoobj(tolua_S,2,&tolua_err)
9346 std::vector<meshio::pmd::RigidBody>* self = (std::vector<meshio::pmd::RigidBody>*) tolua_tousertype(tolua_S,1,0);
9347 #ifndef TOLUA_RELEASE
9348 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
9351 std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>* range=(std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>));
9352 *range=std::make_pair(self->begin(), self->end());
9353 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>");
9354 lua_setmetatable(tolua_S, -2);
9355 lua_pushnumber(tolua_S, 0);
9357 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator_internal, 2);
9361 #ifndef TOLUA_RELEASE
9363 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
9367 #endif //#ifndef TOLUA_DISABLE
9370 /* method: new of class std::vector<meshio::pmd::Constraint> */
9371 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00
9372 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00(lua_State* tolua_S)
9374 #ifndef TOLUA_RELEASE
9375 tolua_Error tolua_err;
9377 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9378 !tolua_isnoobj(tolua_S,2,&tolua_err)
9387 std::vector<meshio::pmd::Constraint>* tolua_ret = (std::vector<meshio::pmd::Constraint>*) Mtolua_new((std::vector<meshio::pmd::Constraint>)());
9388 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Constraint>");
9393 #ifndef TOLUA_RELEASE
9395 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9399 #endif //#ifndef TOLUA_DISABLE
9401 /* method: new_local of class std::vector<meshio::pmd::Constraint> */
9402 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00_local
9403 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00_local(lua_State* tolua_S)
9405 #ifndef TOLUA_RELEASE
9406 tolua_Error tolua_err;
9408 !tolua_isusertable(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9409 !tolua_isnoobj(tolua_S,2,&tolua_err)
9418 std::vector<meshio::pmd::Constraint>* tolua_ret = (std::vector<meshio::pmd::Constraint>*) Mtolua_new((std::vector<meshio::pmd::Constraint>)());
9419 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::pmd::Constraint>");
9420 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
9425 #ifndef TOLUA_RELEASE
9427 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9431 #endif //#ifndef TOLUA_DISABLE
9433 /* method: size of class std::vector<meshio::pmd::Constraint> */
9434 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint__size00
9435 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint__size00(lua_State* tolua_S)
9437 #ifndef TOLUA_RELEASE
9438 tolua_Error tolua_err;
9440 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9441 !tolua_isnoobj(tolua_S,2,&tolua_err)
9447 const std::vector<meshio::pmd::Constraint>* self = (const std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9448 #ifndef TOLUA_RELEASE
9449 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
9452 unsigned int tolua_ret = (unsigned int) self->size();
9453 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
9458 #ifndef TOLUA_RELEASE
9460 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
9464 #endif //#ifndef TOLUA_DISABLE
9466 /* method: push_back of class std::vector<meshio::pmd::Constraint> */
9467 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint__push_back00
9468 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint__push_back00(lua_State* tolua_S)
9470 #ifndef TOLUA_RELEASE
9471 tolua_Error tolua_err;
9473 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9474 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::pmd::Constraint",0,&tolua_err)) ||
9475 !tolua_isnoobj(tolua_S,3,&tolua_err)
9481 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9482 meshio::pmd::Constraint* value = ((meshio::pmd::Constraint*) tolua_tousertype(tolua_S,2,0));
9483 #ifndef TOLUA_RELEASE
9484 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
9487 self->push_back(*value);
9493 #ifndef TOLUA_RELEASE
9495 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
9499 #endif //#ifndef TOLUA_DISABLE
9501 /* method: back of class std::vector<meshio::pmd::Constraint> */
9502 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint__back00
9503 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint__back00(lua_State* tolua_S)
9505 #ifndef TOLUA_RELEASE
9506 tolua_Error tolua_err;
9508 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9509 !tolua_isnoobj(tolua_S,2,&tolua_err)
9515 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9516 #ifndef TOLUA_RELEASE
9517 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
9520 meshio::pmd::Constraint& tolua_ret = (meshio::pmd::Constraint&) self->back();
9521 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Constraint");
9526 #ifndef TOLUA_RELEASE
9528 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
9532 #endif //#ifndef TOLUA_DISABLE
9534 /* method: operator[] of class std::vector<meshio::pmd::Constraint> */
9535 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint___geti00
9536 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint___geti00(lua_State* tolua_S)
9538 #ifndef TOLUA_RELEASE
9539 tolua_Error tolua_err;
9541 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9542 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9543 !tolua_isnoobj(tolua_S,3,&tolua_err)
9549 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9550 int index = ((int) tolua_tonumber(tolua_S,2,0));
9551 #ifndef TOLUA_RELEASE
9552 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
9555 meshio::pmd::Constraint& tolua_ret = (meshio::pmd::Constraint&) self->operator[](index);
9556 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Constraint");
9562 #ifndef TOLUA_RELEASE
9564 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
9568 #endif //#ifndef TOLUA_DISABLE
9570 /* method: operator&[] of class std::vector<meshio::pmd::Constraint> */
9571 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__pmd__Constraint___seti00
9572 static int tolua_lmeshio_std_vector_meshio__pmd__Constraint___seti00(lua_State* tolua_S)
9574 #ifndef TOLUA_RELEASE
9575 tolua_Error tolua_err;
9577 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9578 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9579 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::pmd::Constraint",0,&tolua_err)) ||
9580 !tolua_isnoobj(tolua_S,4,&tolua_err)
9586 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9587 int index = ((int) tolua_tonumber(tolua_S,2,0));
9588 meshio::pmd::Constraint tolua_value = *((meshio::pmd::Constraint*) tolua_tousertype(tolua_S,3,0));
9589 #ifndef TOLUA_RELEASE
9590 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
9592 self->operator[](index) = tolua_value;
9595 #ifndef TOLUA_RELEASE
9597 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
9601 #endif //#ifndef TOLUA_DISABLE
9603 /* stl foreachi: class std::vector<meshio::pmd::Constraint> */
9604 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator
9605 static int tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator_gc(lua_State* tolua_S)
9607 //printf("tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator_gc\n");
9608 std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator> *range=(std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>*)lua_touserdata(tolua_S, 1);
9609 range->~pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>();
9613 static int tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator_internal(lua_State* tolua_S)
9615 std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator> *range=(std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
9616 if(range->first==range->second){
9619 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
9620 tolua_pushnumber(tolua_S, index);
9622 tolua_pushnumber(tolua_S, index+1);
9623 lua_replace(tolua_S, lua_upvalueindex(2));
9625 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::pmd::Constraint");
9626 meshio::pmd::Constraint& tolua_ret = (meshio::pmd::Constraint&) *range->first++;
9627 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::pmd::Constraint");
9632 static int tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator(lua_State* tolua_S)
9634 #ifndef TOLUA_RELEASE
9635 tolua_Error tolua_err;
9637 !tolua_isusertype(tolua_S,1,"std::vector<meshio::pmd::Constraint>",0,&tolua_err) ||
9638 !tolua_isnoobj(tolua_S,2,&tolua_err)
9644 std::vector<meshio::pmd::Constraint>* self = (std::vector<meshio::pmd::Constraint>*) tolua_tousertype(tolua_S,1,0);
9645 #ifndef TOLUA_RELEASE
9646 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
9649 std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>* range=(std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>));
9650 *range=std::make_pair(self->begin(), self->end());
9651 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>");
9652 lua_setmetatable(tolua_S, -2);
9653 lua_pushnumber(tolua_S, 0);
9655 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator_internal, 2);
9659 #ifndef TOLUA_RELEASE
9661 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
9665 #endif //#ifndef TOLUA_DISABLE
9668 /* method: new of class std::vector<meshio::mqo::Face> */
9669 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face__new00
9670 static int tolua_lmeshio_std_vector_meshio__mqo__Face__new00(lua_State* tolua_S)
9672 #ifndef TOLUA_RELEASE
9673 tolua_Error tolua_err;
9675 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9676 !tolua_isnoobj(tolua_S,2,&tolua_err)
9685 std::vector<meshio::mqo::Face>* tolua_ret = (std::vector<meshio::mqo::Face>*) Mtolua_new((std::vector<meshio::mqo::Face>)());
9686 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Face>");
9691 #ifndef TOLUA_RELEASE
9693 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9697 #endif //#ifndef TOLUA_DISABLE
9699 /* method: new_local of class std::vector<meshio::mqo::Face> */
9700 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face__new00_local
9701 static int tolua_lmeshio_std_vector_meshio__mqo__Face__new00_local(lua_State* tolua_S)
9703 #ifndef TOLUA_RELEASE
9704 tolua_Error tolua_err;
9706 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9707 !tolua_isnoobj(tolua_S,2,&tolua_err)
9716 std::vector<meshio::mqo::Face>* tolua_ret = (std::vector<meshio::mqo::Face>*) Mtolua_new((std::vector<meshio::mqo::Face>)());
9717 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Face>");
9718 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
9723 #ifndef TOLUA_RELEASE
9725 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9729 #endif //#ifndef TOLUA_DISABLE
9731 /* method: size of class std::vector<meshio::mqo::Face> */
9732 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face__size00
9733 static int tolua_lmeshio_std_vector_meshio__mqo__Face__size00(lua_State* tolua_S)
9735 #ifndef TOLUA_RELEASE
9736 tolua_Error tolua_err;
9738 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9739 !tolua_isnoobj(tolua_S,2,&tolua_err)
9745 const std::vector<meshio::mqo::Face>* self = (const std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9746 #ifndef TOLUA_RELEASE
9747 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
9750 unsigned int tolua_ret = (unsigned int) self->size();
9751 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
9756 #ifndef TOLUA_RELEASE
9758 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
9762 #endif //#ifndef TOLUA_DISABLE
9764 /* method: push_back of class std::vector<meshio::mqo::Face> */
9765 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face__push_back00
9766 static int tolua_lmeshio_std_vector_meshio__mqo__Face__push_back00(lua_State* tolua_S)
9768 #ifndef TOLUA_RELEASE
9769 tolua_Error tolua_err;
9771 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9772 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::mqo::Face",0,&tolua_err)) ||
9773 !tolua_isnoobj(tolua_S,3,&tolua_err)
9779 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9780 meshio::mqo::Face* value = ((meshio::mqo::Face*) tolua_tousertype(tolua_S,2,0));
9781 #ifndef TOLUA_RELEASE
9782 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
9785 self->push_back(*value);
9791 #ifndef TOLUA_RELEASE
9793 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
9797 #endif //#ifndef TOLUA_DISABLE
9799 /* method: back of class std::vector<meshio::mqo::Face> */
9800 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face__back00
9801 static int tolua_lmeshio_std_vector_meshio__mqo__Face__back00(lua_State* tolua_S)
9803 #ifndef TOLUA_RELEASE
9804 tolua_Error tolua_err;
9806 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9807 !tolua_isnoobj(tolua_S,2,&tolua_err)
9813 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9814 #ifndef TOLUA_RELEASE
9815 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
9818 meshio::mqo::Face& tolua_ret = (meshio::mqo::Face&) self->back();
9819 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Face");
9824 #ifndef TOLUA_RELEASE
9826 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
9830 #endif //#ifndef TOLUA_DISABLE
9832 /* method: operator[] of class std::vector<meshio::mqo::Face> */
9833 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face___geti00
9834 static int tolua_lmeshio_std_vector_meshio__mqo__Face___geti00(lua_State* tolua_S)
9836 #ifndef TOLUA_RELEASE
9837 tolua_Error tolua_err;
9839 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9840 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9841 !tolua_isnoobj(tolua_S,3,&tolua_err)
9847 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9848 int index = ((int) tolua_tonumber(tolua_S,2,0));
9849 #ifndef TOLUA_RELEASE
9850 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
9853 meshio::mqo::Face& tolua_ret = (meshio::mqo::Face&) self->operator[](index);
9854 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Face");
9860 #ifndef TOLUA_RELEASE
9862 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
9866 #endif //#ifndef TOLUA_DISABLE
9868 /* method: operator&[] of class std::vector<meshio::mqo::Face> */
9869 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Face___seti00
9870 static int tolua_lmeshio_std_vector_meshio__mqo__Face___seti00(lua_State* tolua_S)
9872 #ifndef TOLUA_RELEASE
9873 tolua_Error tolua_err;
9875 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9876 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
9877 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::mqo::Face",0,&tolua_err)) ||
9878 !tolua_isnoobj(tolua_S,4,&tolua_err)
9884 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9885 int index = ((int) tolua_tonumber(tolua_S,2,0));
9886 meshio::mqo::Face tolua_value = *((meshio::mqo::Face*) tolua_tousertype(tolua_S,3,0));
9887 #ifndef TOLUA_RELEASE
9888 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
9890 self->operator[](index) = tolua_value;
9893 #ifndef TOLUA_RELEASE
9895 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
9899 #endif //#ifndef TOLUA_DISABLE
9901 /* stl foreachi: class std::vector<meshio::mqo::Face> */
9902 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__mqo__Face__iterator
9903 static int tolua_lmeshio_std__vector_meshio__mqo__Face__iterator_gc(lua_State* tolua_S)
9905 //printf("tolua_lmeshio_std__vector_meshio__mqo__Face__iterator_gc\n");
9906 std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator> *range=(std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>*)lua_touserdata(tolua_S, 1);
9907 range->~pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>();
9911 static int tolua_lmeshio_std__vector_meshio__mqo__Face__iterator_internal(lua_State* tolua_S)
9913 std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator> *range=(std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
9914 if(range->first==range->second){
9917 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
9918 tolua_pushnumber(tolua_S, index);
9920 tolua_pushnumber(tolua_S, index+1);
9921 lua_replace(tolua_S, lua_upvalueindex(2));
9923 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::mqo::Face");
9924 meshio::mqo::Face& tolua_ret = (meshio::mqo::Face&) *range->first++;
9925 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Face");
9930 static int tolua_lmeshio_std__vector_meshio__mqo__Face__iterator(lua_State* tolua_S)
9932 #ifndef TOLUA_RELEASE
9933 tolua_Error tolua_err;
9935 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Face>",0,&tolua_err) ||
9936 !tolua_isnoobj(tolua_S,2,&tolua_err)
9942 std::vector<meshio::mqo::Face>* self = (std::vector<meshio::mqo::Face>*) tolua_tousertype(tolua_S,1,0);
9943 #ifndef TOLUA_RELEASE
9944 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
9947 std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>* range=(std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>));
9948 *range=std::make_pair(self->begin(), self->end());
9949 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>");
9950 lua_setmetatable(tolua_S, -2);
9951 lua_pushnumber(tolua_S, 0);
9953 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Face__iterator_internal, 2);
9957 #ifndef TOLUA_RELEASE
9959 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
9963 #endif //#ifndef TOLUA_DISABLE
9966 /* method: new of class std::vector<meshio::mqo::Material> */
9967 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material__new00
9968 static int tolua_lmeshio_std_vector_meshio__mqo__Material__new00(lua_State* tolua_S)
9970 #ifndef TOLUA_RELEASE
9971 tolua_Error tolua_err;
9973 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
9974 !tolua_isnoobj(tolua_S,2,&tolua_err)
9983 std::vector<meshio::mqo::Material>* tolua_ret = (std::vector<meshio::mqo::Material>*) Mtolua_new((std::vector<meshio::mqo::Material>)());
9984 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Material>");
9989 #ifndef TOLUA_RELEASE
9991 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
9995 #endif //#ifndef TOLUA_DISABLE
9997 /* method: new_local of class std::vector<meshio::mqo::Material> */
9998 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material__new00_local
9999 static int tolua_lmeshio_std_vector_meshio__mqo__Material__new00_local(lua_State* tolua_S)
10001 #ifndef TOLUA_RELEASE
10002 tolua_Error tolua_err;
10004 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10005 !tolua_isnoobj(tolua_S,2,&tolua_err)
10014 std::vector<meshio::mqo::Material>* tolua_ret = (std::vector<meshio::mqo::Material>*) Mtolua_new((std::vector<meshio::mqo::Material>)());
10015 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Material>");
10016 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
10021 #ifndef TOLUA_RELEASE
10023 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10027 #endif //#ifndef TOLUA_DISABLE
10029 /* method: size of class std::vector<meshio::mqo::Material> */
10030 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material__size00
10031 static int tolua_lmeshio_std_vector_meshio__mqo__Material__size00(lua_State* tolua_S)
10033 #ifndef TOLUA_RELEASE
10034 tolua_Error tolua_err;
10036 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10037 !tolua_isnoobj(tolua_S,2,&tolua_err)
10043 const std::vector<meshio::mqo::Material>* self = (const std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10044 #ifndef TOLUA_RELEASE
10045 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
10048 unsigned int tolua_ret = (unsigned int) self->size();
10049 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10054 #ifndef TOLUA_RELEASE
10056 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
10060 #endif //#ifndef TOLUA_DISABLE
10062 /* method: push_back of class std::vector<meshio::mqo::Material> */
10063 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material__push_back00
10064 static int tolua_lmeshio_std_vector_meshio__mqo__Material__push_back00(lua_State* tolua_S)
10066 #ifndef TOLUA_RELEASE
10067 tolua_Error tolua_err;
10069 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10070 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::mqo::Material",0,&tolua_err)) ||
10071 !tolua_isnoobj(tolua_S,3,&tolua_err)
10077 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10078 meshio::mqo::Material* value = ((meshio::mqo::Material*) tolua_tousertype(tolua_S,2,0));
10079 #ifndef TOLUA_RELEASE
10080 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
10083 self->push_back(*value);
10089 #ifndef TOLUA_RELEASE
10091 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
10095 #endif //#ifndef TOLUA_DISABLE
10097 /* method: back of class std::vector<meshio::mqo::Material> */
10098 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material__back00
10099 static int tolua_lmeshio_std_vector_meshio__mqo__Material__back00(lua_State* tolua_S)
10101 #ifndef TOLUA_RELEASE
10102 tolua_Error tolua_err;
10104 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10105 !tolua_isnoobj(tolua_S,2,&tolua_err)
10111 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10112 #ifndef TOLUA_RELEASE
10113 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
10116 meshio::mqo::Material& tolua_ret = (meshio::mqo::Material&) self->back();
10117 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Material");
10122 #ifndef TOLUA_RELEASE
10124 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
10128 #endif //#ifndef TOLUA_DISABLE
10130 /* method: operator[] of class std::vector<meshio::mqo::Material> */
10131 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material___geti00
10132 static int tolua_lmeshio_std_vector_meshio__mqo__Material___geti00(lua_State* tolua_S)
10134 #ifndef TOLUA_RELEASE
10135 tolua_Error tolua_err;
10137 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10138 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10139 !tolua_isnoobj(tolua_S,3,&tolua_err)
10145 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10146 int index = ((int) tolua_tonumber(tolua_S,2,0));
10147 #ifndef TOLUA_RELEASE
10148 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
10151 meshio::mqo::Material& tolua_ret = (meshio::mqo::Material&) self->operator[](index);
10152 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Material");
10158 #ifndef TOLUA_RELEASE
10160 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
10164 #endif //#ifndef TOLUA_DISABLE
10166 /* method: operator&[] of class std::vector<meshio::mqo::Material> */
10167 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Material___seti00
10168 static int tolua_lmeshio_std_vector_meshio__mqo__Material___seti00(lua_State* tolua_S)
10170 #ifndef TOLUA_RELEASE
10171 tolua_Error tolua_err;
10173 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10174 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10175 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::mqo::Material",0,&tolua_err)) ||
10176 !tolua_isnoobj(tolua_S,4,&tolua_err)
10182 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10183 int index = ((int) tolua_tonumber(tolua_S,2,0));
10184 meshio::mqo::Material tolua_value = *((meshio::mqo::Material*) tolua_tousertype(tolua_S,3,0));
10185 #ifndef TOLUA_RELEASE
10186 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
10188 self->operator[](index) = tolua_value;
10191 #ifndef TOLUA_RELEASE
10193 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
10197 #endif //#ifndef TOLUA_DISABLE
10199 /* stl foreachi: class std::vector<meshio::mqo::Material> */
10200 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__mqo__Material__iterator
10201 static int tolua_lmeshio_std__vector_meshio__mqo__Material__iterator_gc(lua_State* tolua_S)
10203 //printf("tolua_lmeshio_std__vector_meshio__mqo__Material__iterator_gc\n");
10204 std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator> *range=(std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>*)lua_touserdata(tolua_S, 1);
10205 range->~pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>();
10209 static int tolua_lmeshio_std__vector_meshio__mqo__Material__iterator_internal(lua_State* tolua_S)
10211 std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator> *range=(std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
10212 if(range->first==range->second){
10215 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
10216 tolua_pushnumber(tolua_S, index);
10218 tolua_pushnumber(tolua_S, index+1);
10219 lua_replace(tolua_S, lua_upvalueindex(2));
10221 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::mqo::Material");
10222 meshio::mqo::Material& tolua_ret = (meshio::mqo::Material&) *range->first++;
10223 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Material");
10228 static int tolua_lmeshio_std__vector_meshio__mqo__Material__iterator(lua_State* tolua_S)
10230 #ifndef TOLUA_RELEASE
10231 tolua_Error tolua_err;
10233 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Material>",0,&tolua_err) ||
10234 !tolua_isnoobj(tolua_S,2,&tolua_err)
10240 std::vector<meshio::mqo::Material>* self = (std::vector<meshio::mqo::Material>*) tolua_tousertype(tolua_S,1,0);
10241 #ifndef TOLUA_RELEASE
10242 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
10245 std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>* range=(std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>));
10246 *range=std::make_pair(self->begin(), self->end());
10247 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>");
10248 lua_setmetatable(tolua_S, -2);
10249 lua_pushnumber(tolua_S, 0);
10251 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Material__iterator_internal, 2);
10255 #ifndef TOLUA_RELEASE
10257 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
10261 #endif //#ifndef TOLUA_DISABLE
10264 /* method: new of class std::vector<meshio::mqo::Object> */
10265 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object__new00
10266 static int tolua_lmeshio_std_vector_meshio__mqo__Object__new00(lua_State* tolua_S)
10268 #ifndef TOLUA_RELEASE
10269 tolua_Error tolua_err;
10271 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10272 !tolua_isnoobj(tolua_S,2,&tolua_err)
10281 std::vector<meshio::mqo::Object>* tolua_ret = (std::vector<meshio::mqo::Object>*) Mtolua_new((std::vector<meshio::mqo::Object>)());
10282 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Object>");
10287 #ifndef TOLUA_RELEASE
10289 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10293 #endif //#ifndef TOLUA_DISABLE
10295 /* method: new_local of class std::vector<meshio::mqo::Object> */
10296 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object__new00_local
10297 static int tolua_lmeshio_std_vector_meshio__mqo__Object__new00_local(lua_State* tolua_S)
10299 #ifndef TOLUA_RELEASE
10300 tolua_Error tolua_err;
10302 !tolua_isusertable(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10303 !tolua_isnoobj(tolua_S,2,&tolua_err)
10312 std::vector<meshio::mqo::Object>* tolua_ret = (std::vector<meshio::mqo::Object>*) Mtolua_new((std::vector<meshio::mqo::Object>)());
10313 tolua_pushusertype(tolua_S,(void*)tolua_ret,"std::vector<meshio::mqo::Object>");
10314 tolua_register_gc(tolua_S,lua_gettop(tolua_S));
10319 #ifndef TOLUA_RELEASE
10321 tolua_error(tolua_S,"#ferror in function 'new'.",&tolua_err);
10325 #endif //#ifndef TOLUA_DISABLE
10327 /* method: size of class std::vector<meshio::mqo::Object> */
10328 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object__size00
10329 static int tolua_lmeshio_std_vector_meshio__mqo__Object__size00(lua_State* tolua_S)
10331 #ifndef TOLUA_RELEASE
10332 tolua_Error tolua_err;
10334 !tolua_isusertype(tolua_S,1,"const std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10335 !tolua_isnoobj(tolua_S,2,&tolua_err)
10341 const std::vector<meshio::mqo::Object>* self = (const std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10342 #ifndef TOLUA_RELEASE
10343 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'size'", NULL);
10346 unsigned int tolua_ret = (unsigned int) self->size();
10347 tolua_pushnumber(tolua_S,(lua_Number)tolua_ret);
10352 #ifndef TOLUA_RELEASE
10354 tolua_error(tolua_S,"#ferror in function 'size'.",&tolua_err);
10358 #endif //#ifndef TOLUA_DISABLE
10360 /* method: push_back of class std::vector<meshio::mqo::Object> */
10361 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object__push_back00
10362 static int tolua_lmeshio_std_vector_meshio__mqo__Object__push_back00(lua_State* tolua_S)
10364 #ifndef TOLUA_RELEASE
10365 tolua_Error tolua_err;
10367 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10368 (tolua_isvaluenil(tolua_S,2,&tolua_err) || !tolua_isusertype(tolua_S,2,"meshio::mqo::Object",0,&tolua_err)) ||
10369 !tolua_isnoobj(tolua_S,3,&tolua_err)
10375 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10376 meshio::mqo::Object* value = ((meshio::mqo::Object*) tolua_tousertype(tolua_S,2,0));
10377 #ifndef TOLUA_RELEASE
10378 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'push_back'", NULL);
10381 self->push_back(*value);
10387 #ifndef TOLUA_RELEASE
10389 tolua_error(tolua_S,"#ferror in function 'push_back'.",&tolua_err);
10393 #endif //#ifndef TOLUA_DISABLE
10395 /* method: back of class std::vector<meshio::mqo::Object> */
10396 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object__back00
10397 static int tolua_lmeshio_std_vector_meshio__mqo__Object__back00(lua_State* tolua_S)
10399 #ifndef TOLUA_RELEASE
10400 tolua_Error tolua_err;
10402 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10403 !tolua_isnoobj(tolua_S,2,&tolua_err)
10409 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10410 #ifndef TOLUA_RELEASE
10411 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'back'", NULL);
10414 meshio::mqo::Object& tolua_ret = (meshio::mqo::Object&) self->back();
10415 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Object");
10420 #ifndef TOLUA_RELEASE
10422 tolua_error(tolua_S,"#ferror in function 'back'.",&tolua_err);
10426 #endif //#ifndef TOLUA_DISABLE
10428 /* method: operator[] of class std::vector<meshio::mqo::Object> */
10429 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object___geti00
10430 static int tolua_lmeshio_std_vector_meshio__mqo__Object___geti00(lua_State* tolua_S)
10432 #ifndef TOLUA_RELEASE
10433 tolua_Error tolua_err;
10435 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10436 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10437 !tolua_isnoobj(tolua_S,3,&tolua_err)
10443 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10444 int index = ((int) tolua_tonumber(tolua_S,2,0));
10445 #ifndef TOLUA_RELEASE
10446 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator[]'", NULL);
10449 meshio::mqo::Object& tolua_ret = (meshio::mqo::Object&) self->operator[](index);
10450 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Object");
10456 #ifndef TOLUA_RELEASE
10458 tolua_error(tolua_S,"#ferror in function '.geti'.",&tolua_err);
10462 #endif //#ifndef TOLUA_DISABLE
10464 /* method: operator&[] of class std::vector<meshio::mqo::Object> */
10465 #ifndef TOLUA_DISABLE_tolua_lmeshio_std_vector_meshio__mqo__Object___seti00
10466 static int tolua_lmeshio_std_vector_meshio__mqo__Object___seti00(lua_State* tolua_S)
10468 #ifndef TOLUA_RELEASE
10469 tolua_Error tolua_err;
10471 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10472 !tolua_isnumber(tolua_S,2,0,&tolua_err) ||
10473 (tolua_isvaluenil(tolua_S,3,&tolua_err) || !tolua_isusertype(tolua_S,3,"meshio::mqo::Object",0,&tolua_err)) ||
10474 !tolua_isnoobj(tolua_S,4,&tolua_err)
10480 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10481 int index = ((int) tolua_tonumber(tolua_S,2,0));
10482 meshio::mqo::Object tolua_value = *((meshio::mqo::Object*) tolua_tousertype(tolua_S,3,0));
10483 #ifndef TOLUA_RELEASE
10484 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'operator&[]'", NULL);
10486 self->operator[](index) = tolua_value;
10489 #ifndef TOLUA_RELEASE
10491 tolua_error(tolua_S,"#ferror in function '.seti'.",&tolua_err);
10495 #endif //#ifndef TOLUA_DISABLE
10497 /* stl foreachi: class std::vector<meshio::mqo::Object> */
10498 #ifndef TOLUA_DISABLE_tolua_lmeshio_std__vector_meshio__mqo__Object__iterator
10499 static int tolua_lmeshio_std__vector_meshio__mqo__Object__iterator_gc(lua_State* tolua_S)
10501 //printf("tolua_lmeshio_std__vector_meshio__mqo__Object__iterator_gc\n");
10502 std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator> *range=(std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>*)lua_touserdata(tolua_S, 1);
10503 range->~pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>();
10507 static int tolua_lmeshio_std__vector_meshio__mqo__Object__iterator_internal(lua_State* tolua_S)
10509 std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator> *range=(std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>*)lua_touserdata(tolua_S, lua_upvalueindex(1));
10510 if(range->first==range->second){
10513 int index=lua_tonumber(tolua_S, lua_upvalueindex(2));
10514 tolua_pushnumber(tolua_S, index);
10516 tolua_pushnumber(tolua_S, index+1);
10517 lua_replace(tolua_S, lua_upvalueindex(2));
10519 //tolua_pushusertype(tolua_S, &(*range->first++), "meshio::mqo::Object");
10520 meshio::mqo::Object& tolua_ret = (meshio::mqo::Object&) *range->first++;
10521 tolua_pushusertype(tolua_S,(void*)&tolua_ret,"meshio::mqo::Object");
10526 static int tolua_lmeshio_std__vector_meshio__mqo__Object__iterator(lua_State* tolua_S)
10528 #ifndef TOLUA_RELEASE
10529 tolua_Error tolua_err;
10531 !tolua_isusertype(tolua_S,1,"std::vector<meshio::mqo::Object>",0,&tolua_err) ||
10532 !tolua_isnoobj(tolua_S,2,&tolua_err)
10538 std::vector<meshio::mqo::Object>* self = (std::vector<meshio::mqo::Object>*) tolua_tousertype(tolua_S,1,0);
10539 #ifndef TOLUA_RELEASE
10540 if (!self) tolua_error(tolua_S,"invalid 'self' in function 'foreachi'", NULL);
10543 std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>* range=(std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>*)lua_newuserdata(tolua_S, sizeof(std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>));
10544 *range=std::make_pair(self->begin(), self->end());
10545 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>");
10546 lua_setmetatable(tolua_S, -2);
10547 lua_pushnumber(tolua_S, 0);
10549 lua_pushcclosure(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Object__iterator_internal, 2);
10553 #ifndef TOLUA_RELEASE
10555 tolua_error(tolua_S,"#ferror in function 'foreachi'.",&tolua_err);
10559 #endif //#ifndef TOLUA_DISABLE
10562 /* get function: first of class std::pair<unsigned short,unsigned char> */
10563 #ifndef TOLUA_DISABLE_tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_first
10564 static int tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_first(lua_State* tolua_S)
10566 std::pair<unsigned short,unsigned char>* self = (std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,1,0);
10567 #ifndef TOLUA_RELEASE
10568 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'first'",NULL);
10570 tolua_pushnumber(tolua_S,(lua_Number)self->first);
10573 #endif //#ifndef TOLUA_DISABLE
10575 /* set function: first of class std::pair<unsigned short,unsigned char> */
10576 #ifndef TOLUA_DISABLE_tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_first
10577 static int tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_first(lua_State* tolua_S)
10579 std::pair<unsigned short,unsigned char>* self = (std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,1,0);
10580 #ifndef TOLUA_RELEASE
10581 tolua_Error tolua_err;
10582 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'first'",NULL);
10583 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
10584 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
10586 self->first = ((unsigned short) tolua_tonumber(tolua_S,2,0))
10590 #endif //#ifndef TOLUA_DISABLE
10592 /* get function: second of class std::pair<unsigned short,unsigned char> */
10593 #ifndef TOLUA_DISABLE_tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_second
10594 static int tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_second(lua_State* tolua_S)
10596 std::pair<unsigned short,unsigned char>* self = (std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,1,0);
10597 #ifndef TOLUA_RELEASE
10598 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'second'",NULL);
10600 tolua_pushnumber(tolua_S,(lua_Number)self->second);
10603 #endif //#ifndef TOLUA_DISABLE
10605 /* set function: second of class std::pair<unsigned short,unsigned char> */
10606 #ifndef TOLUA_DISABLE_tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_second
10607 static int tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_second(lua_State* tolua_S)
10609 std::pair<unsigned short,unsigned char>* self = (std::pair<unsigned short,unsigned char>*) tolua_tousertype(tolua_S,1,0);
10610 #ifndef TOLUA_RELEASE
10611 tolua_Error tolua_err;
10612 if (!self) tolua_error(tolua_S,"invalid 'self' in accessing variable 'second'",NULL);
10613 if (!tolua_isnumber(tolua_S,2,0,&tolua_err))
10614 tolua_error(tolua_S,"#vinvalid type in variable assignment.",&tolua_err);
10616 self->second = ((unsigned char) tolua_tonumber(tolua_S,2,0))
10620 #endif //#ifndef TOLUA_DISABLE
10622 /* Open function */
10623 TOLUA_API int tolua_lmeshio_open (lua_State* tolua_S)
10625 tolua_open(tolua_S);
10626 tolua_reg_types(tolua_S);
10627 tolua_module(tolua_S,NULL,0);
10628 tolua_beginmodule(tolua_S,NULL);
10629 tolua_module(tolua_S,"meshio",0);
10630 tolua_beginmodule(tolua_S,"meshio");
10631 tolua_module(tolua_S,"pmd",0);
10632 tolua_beginmodule(tolua_S,"pmd");
10634 tolua_cclass(tolua_S,"Vertex","meshio::pmd::Vertex","",tolua_collect_meshio__pmd__Vertex);
10636 tolua_cclass(tolua_S,"Vertex","meshio::pmd::Vertex","",NULL);
10638 tolua_beginmodule(tolua_S,"Vertex");
10639 tolua_variable(tolua_S,"pos",tolua_get_meshio__pmd__Vertex_pos,tolua_set_meshio__pmd__Vertex_pos);
10640 tolua_variable(tolua_S,"normal",tolua_get_meshio__pmd__Vertex_normal,tolua_set_meshio__pmd__Vertex_normal);
10641 tolua_variable(tolua_S,"uv",tolua_get_meshio__pmd__Vertex_uv,tolua_set_meshio__pmd__Vertex_uv);
10642 tolua_variable(tolua_S,"bone0",tolua_get_meshio__pmd__Vertex_unsigned_bone0,tolua_set_meshio__pmd__Vertex_unsigned_bone0);
10643 tolua_variable(tolua_S,"bone1",tolua_get_meshio__pmd__Vertex_unsigned_bone1,tolua_set_meshio__pmd__Vertex_unsigned_bone1);
10644 tolua_variable(tolua_S,"weight0",tolua_get_meshio__pmd__Vertex_unsigned_weight0,tolua_set_meshio__pmd__Vertex_unsigned_weight0);
10645 tolua_variable(tolua_S,"edge_flag",tolua_get_meshio__pmd__Vertex_unsigned_edge_flag,tolua_set_meshio__pmd__Vertex_unsigned_edge_flag);
10646 tolua_endmodule(tolua_S);
10648 tolua_cclass(tolua_S,"Material","meshio::pmd::Material","",tolua_collect_meshio__pmd__Material);
10650 tolua_cclass(tolua_S,"Material","meshio::pmd::Material","",NULL);
10652 tolua_beginmodule(tolua_S,"Material");
10653 tolua_variable(tolua_S,"diffuse",tolua_get_meshio__pmd__Material_diffuse,tolua_set_meshio__pmd__Material_diffuse);
10654 tolua_variable(tolua_S,"shinness",tolua_get_meshio__pmd__Material_shinness,tolua_set_meshio__pmd__Material_shinness);
10655 tolua_variable(tolua_S,"specular",tolua_get_meshio__pmd__Material_specular,tolua_set_meshio__pmd__Material_specular);
10656 tolua_variable(tolua_S,"ambient",tolua_get_meshio__pmd__Material_ambient,tolua_set_meshio__pmd__Material_ambient);
10657 tolua_variable(tolua_S,"toon_index",tolua_get_meshio__pmd__Material_unsigned_toon_index,tolua_set_meshio__pmd__Material_unsigned_toon_index);
10658 tolua_variable(tolua_S,"flag",tolua_get_meshio__pmd__Material_unsigned_flag,tolua_set_meshio__pmd__Material_unsigned_flag);
10659 tolua_variable(tolua_S,"vertex_count",tolua_get_meshio__pmd__Material_unsigned_vertex_count,tolua_set_meshio__pmd__Material_unsigned_vertex_count);
10660 tolua_variable(tolua_S,"texture",tolua_get_meshio__pmd__Material_texture,tolua_set_meshio__pmd__Material_texture);
10661 tolua_endmodule(tolua_S);
10662 tolua_constant(tolua_S,"BONE_ROTATE",meshio::pmd::BONE_ROTATE);
10663 tolua_constant(tolua_S,"BONE_ROTATE_MOVE",meshio::pmd::BONE_ROTATE_MOVE);
10664 tolua_constant(tolua_S,"BONE_IK",meshio::pmd::BONE_IK);
10665 tolua_constant(tolua_S,"BONE_UNKNOWN",meshio::pmd::BONE_UNKNOWN);
10666 tolua_constant(tolua_S,"BONE_IK_INFLUENCED",meshio::pmd::BONE_IK_INFLUENCED);
10667 tolua_constant(tolua_S,"BONE_ROTATE_INFLUENCED",meshio::pmd::BONE_ROTATE_INFLUENCED);
10668 tolua_constant(tolua_S,"BONE_IK_CONNECT",meshio::pmd::BONE_IK_CONNECT);
10669 tolua_constant(tolua_S,"BONE_INVISIBLE",meshio::pmd::BONE_INVISIBLE);
10670 tolua_constant(tolua_S,"BONE_TWIST",meshio::pmd::BONE_TWIST);
10671 tolua_constant(tolua_S,"BONE_REVOLVE",meshio::pmd::BONE_REVOLVE);
10673 tolua_cclass(tolua_S,"Bone","meshio::pmd::Bone","",tolua_collect_meshio__pmd__Bone);
10675 tolua_cclass(tolua_S,"Bone","meshio::pmd::Bone","",NULL);
10677 tolua_beginmodule(tolua_S,"Bone");
10678 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__Bone_name,tolua_set_meshio__pmd__Bone_name);
10679 tolua_variable(tolua_S,"parent_index",tolua_get_meshio__pmd__Bone_unsigned_parent_index,tolua_set_meshio__pmd__Bone_unsigned_parent_index);
10680 tolua_variable(tolua_S,"tail_index",tolua_get_meshio__pmd__Bone_unsigned_tail_index,tolua_set_meshio__pmd__Bone_unsigned_tail_index);
10681 tolua_variable(tolua_S,"type",tolua_get_meshio__pmd__Bone_type,tolua_set_meshio__pmd__Bone_type);
10682 tolua_variable(tolua_S,"ik_index",tolua_get_meshio__pmd__Bone_unsigned_ik_index,tolua_set_meshio__pmd__Bone_unsigned_ik_index);
10683 tolua_variable(tolua_S,"pos",tolua_get_meshio__pmd__Bone_pos,tolua_set_meshio__pmd__Bone_pos);
10684 tolua_variable(tolua_S,"english_name",tolua_get_meshio__pmd__Bone_english_name,tolua_set_meshio__pmd__Bone_english_name);
10685 tolua_variable(tolua_S,"parent",tolua_get_meshio__pmd__Bone_parent_ptr,tolua_set_meshio__pmd__Bone_parent_ptr);
10686 tolua_variable(tolua_S,"tail",tolua_get_meshio__pmd__Bone_tail,tolua_set_meshio__pmd__Bone_tail);
10687 tolua_variable(tolua_S,"children",tolua_get_meshio__pmd__Bone_children,tolua_set_meshio__pmd__Bone_children);
10688 tolua_variable(tolua_S,"index",tolua_get_meshio__pmd__Bone_unsigned_index,tolua_set_meshio__pmd__Bone_unsigned_index);
10689 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_pmd_Bone_new00);
10690 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_pmd_Bone_new00_local);
10691 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_pmd_Bone_new00_local);
10692 tolua_endmodule(tolua_S);
10694 tolua_cclass(tolua_S,"IK","meshio::pmd::IK","",tolua_collect_meshio__pmd__IK);
10696 tolua_cclass(tolua_S,"IK","meshio::pmd::IK","",NULL);
10698 tolua_beginmodule(tolua_S,"IK");
10699 tolua_variable(tolua_S,"index",tolua_get_meshio__pmd__IK_unsigned_index,tolua_set_meshio__pmd__IK_unsigned_index);
10700 tolua_variable(tolua_S,"target",tolua_get_meshio__pmd__IK_unsigned_target,tolua_set_meshio__pmd__IK_unsigned_target);
10701 tolua_variable(tolua_S,"length",tolua_get_meshio__pmd__IK_unsigned_length,tolua_set_meshio__pmd__IK_unsigned_length);
10702 tolua_variable(tolua_S,"iterations",tolua_get_meshio__pmd__IK_unsigned_iterations,tolua_set_meshio__pmd__IK_unsigned_iterations);
10703 tolua_variable(tolua_S,"weight",tolua_get_meshio__pmd__IK_weight,tolua_set_meshio__pmd__IK_weight);
10704 tolua_variable(tolua_S,"children",tolua_get_meshio__pmd__IK_children,tolua_set_meshio__pmd__IK_children);
10705 tolua_endmodule(tolua_S);
10706 tolua_constant(tolua_S,"MORPH_BASE",meshio::pmd::MORPH_BASE);
10707 tolua_constant(tolua_S,"MORPH_MAYU",meshio::pmd::MORPH_MAYU);
10708 tolua_constant(tolua_S,"MORPH_ME",meshio::pmd::MORPH_ME);
10709 tolua_constant(tolua_S,"MORPH_LIP",meshio::pmd::MORPH_LIP);
10710 tolua_constant(tolua_S,"MORPH_OTHER",meshio::pmd::MORPH_OTHER);
10712 tolua_cclass(tolua_S,"Morph","meshio::pmd::Morph","",tolua_collect_meshio__pmd__Morph);
10714 tolua_cclass(tolua_S,"Morph","meshio::pmd::Morph","",NULL);
10716 tolua_beginmodule(tolua_S,"Morph");
10717 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__Morph_name,tolua_set_meshio__pmd__Morph_name);
10718 tolua_variable(tolua_S,"vertex_count",tolua_get_meshio__pmd__Morph_unsigned_vertex_count,tolua_set_meshio__pmd__Morph_unsigned_vertex_count);
10719 tolua_variable(tolua_S,"type",tolua_get_meshio__pmd__Morph_unsigned_type,tolua_set_meshio__pmd__Morph_unsigned_type);
10720 tolua_variable(tolua_S,"indices",tolua_get_meshio__pmd__Morph_indices,tolua_set_meshio__pmd__Morph_indices);
10721 tolua_variable(tolua_S,"pos_list",tolua_get_meshio__pmd__Morph_pos_list,tolua_set_meshio__pmd__Morph_pos_list);
10722 tolua_variable(tolua_S,"english_name",tolua_get_meshio__pmd__Morph_english_name,tolua_set_meshio__pmd__Morph_english_name);
10723 tolua_endmodule(tolua_S);
10725 tolua_cclass(tolua_S,"BoneGroup","meshio::pmd::BoneGroup","",tolua_collect_meshio__pmd__BoneGroup);
10727 tolua_cclass(tolua_S,"BoneGroup","meshio::pmd::BoneGroup","",NULL);
10729 tolua_beginmodule(tolua_S,"BoneGroup");
10730 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__BoneGroup_name,tolua_set_meshio__pmd__BoneGroup_name);
10731 tolua_variable(tolua_S,"english_name",tolua_get_meshio__pmd__BoneGroup_english_name,tolua_set_meshio__pmd__BoneGroup_english_name);
10732 tolua_endmodule(tolua_S);
10733 tolua_constant(tolua_S,"SHAPE_SPHERE",meshio::pmd::SHAPE_SPHERE);
10734 tolua_constant(tolua_S,"SHAPE_BOX",meshio::pmd::SHAPE_BOX);
10735 tolua_constant(tolua_S,"SHAPE_CAPSULE",meshio::pmd::SHAPE_CAPSULE);
10736 tolua_constant(tolua_S,"RIGIDBODY_KINEMATICS",meshio::pmd::RIGIDBODY_KINEMATICS);
10737 tolua_constant(tolua_S,"RIGIDBODY_PHYSICS",meshio::pmd::RIGIDBODY_PHYSICS);
10738 tolua_constant(tolua_S,"RIGIDBODY_PHYSICS_WITH_BONE",meshio::pmd::RIGIDBODY_PHYSICS_WITH_BONE);
10740 tolua_cclass(tolua_S,"RigidBody","meshio::pmd::RigidBody","",tolua_collect_meshio__pmd__RigidBody);
10742 tolua_cclass(tolua_S,"RigidBody","meshio::pmd::RigidBody","",NULL);
10744 tolua_beginmodule(tolua_S,"RigidBody");
10745 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__RigidBody_name,tolua_set_meshio__pmd__RigidBody_name);
10746 tolua_variable(tolua_S,"boneIndex",tolua_get_meshio__pmd__RigidBody_unsigned_boneIndex,tolua_set_meshio__pmd__RigidBody_unsigned_boneIndex);
10747 tolua_variable(tolua_S,"group",tolua_get_meshio__pmd__RigidBody_unsigned_group,tolua_set_meshio__pmd__RigidBody_unsigned_group);
10748 tolua_variable(tolua_S,"target",tolua_get_meshio__pmd__RigidBody_unsigned_target,tolua_set_meshio__pmd__RigidBody_unsigned_target);
10749 tolua_variable(tolua_S,"shapeType",tolua_get_meshio__pmd__RigidBody_shapeType,tolua_set_meshio__pmd__RigidBody_shapeType);
10750 tolua_variable(tolua_S,"w",tolua_get_meshio__pmd__RigidBody_w,tolua_set_meshio__pmd__RigidBody_w);
10751 tolua_variable(tolua_S,"h",tolua_get_meshio__pmd__RigidBody_h,tolua_set_meshio__pmd__RigidBody_h);
10752 tolua_variable(tolua_S,"d",tolua_get_meshio__pmd__RigidBody_d,tolua_set_meshio__pmd__RigidBody_d);
10753 tolua_variable(tolua_S,"position",tolua_get_meshio__pmd__RigidBody_position,tolua_set_meshio__pmd__RigidBody_position);
10754 tolua_variable(tolua_S,"rotation",tolua_get_meshio__pmd__RigidBody_rotation,tolua_set_meshio__pmd__RigidBody_rotation);
10755 tolua_variable(tolua_S,"weight",tolua_get_meshio__pmd__RigidBody_weight,tolua_set_meshio__pmd__RigidBody_weight);
10756 tolua_variable(tolua_S,"linearDamping",tolua_get_meshio__pmd__RigidBody_linearDamping,tolua_set_meshio__pmd__RigidBody_linearDamping);
10757 tolua_variable(tolua_S,"angularDamping",tolua_get_meshio__pmd__RigidBody_angularDamping,tolua_set_meshio__pmd__RigidBody_angularDamping);
10758 tolua_variable(tolua_S,"restitution",tolua_get_meshio__pmd__RigidBody_restitution,tolua_set_meshio__pmd__RigidBody_restitution);
10759 tolua_variable(tolua_S,"friction",tolua_get_meshio__pmd__RigidBody_friction,tolua_set_meshio__pmd__RigidBody_friction);
10760 tolua_variable(tolua_S,"processType",tolua_get_meshio__pmd__RigidBody_processType,tolua_set_meshio__pmd__RigidBody_processType);
10761 tolua_endmodule(tolua_S);
10763 tolua_cclass(tolua_S,"Constraint","meshio::pmd::Constraint","",tolua_collect_meshio__pmd__Constraint);
10765 tolua_cclass(tolua_S,"Constraint","meshio::pmd::Constraint","",NULL);
10767 tolua_beginmodule(tolua_S,"Constraint");
10768 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__Constraint_name,tolua_set_meshio__pmd__Constraint_name);
10769 tolua_variable(tolua_S,"rigidA",tolua_get_meshio__pmd__Constraint_unsigned_rigidA,tolua_set_meshio__pmd__Constraint_unsigned_rigidA);
10770 tolua_variable(tolua_S,"rigidB",tolua_get_meshio__pmd__Constraint_unsigned_rigidB,tolua_set_meshio__pmd__Constraint_unsigned_rigidB);
10771 tolua_variable(tolua_S,"pos",tolua_get_meshio__pmd__Constraint_pos,tolua_set_meshio__pmd__Constraint_pos);
10772 tolua_variable(tolua_S,"rot",tolua_get_meshio__pmd__Constraint_rot,tolua_set_meshio__pmd__Constraint_rot);
10773 tolua_variable(tolua_S,"constraintPosMin",tolua_get_meshio__pmd__Constraint_constraintPosMin,tolua_set_meshio__pmd__Constraint_constraintPosMin);
10774 tolua_variable(tolua_S,"constraintPosMax",tolua_get_meshio__pmd__Constraint_constraintPosMax,tolua_set_meshio__pmd__Constraint_constraintPosMax);
10775 tolua_variable(tolua_S,"constraintRotMin",tolua_get_meshio__pmd__Constraint_constraintRotMin,tolua_set_meshio__pmd__Constraint_constraintRotMin);
10776 tolua_variable(tolua_S,"constraintRotMax",tolua_get_meshio__pmd__Constraint_constraintRotMax,tolua_set_meshio__pmd__Constraint_constraintRotMax);
10777 tolua_variable(tolua_S,"springPos",tolua_get_meshio__pmd__Constraint_springPos,tolua_set_meshio__pmd__Constraint_springPos);
10778 tolua_variable(tolua_S,"springRot",tolua_get_meshio__pmd__Constraint_springRot,tolua_set_meshio__pmd__Constraint_springRot);
10779 tolua_endmodule(tolua_S);
10781 tolua_cclass(tolua_S,"IO","meshio::pmd::IO","",tolua_collect_meshio__pmd__IO);
10783 tolua_cclass(tolua_S,"IO","meshio::pmd::IO","",NULL);
10785 tolua_beginmodule(tolua_S,"IO");
10786 tolua_variable(tolua_S,"version",tolua_get_meshio__pmd__IO_version,tolua_set_meshio__pmd__IO_version);
10787 tolua_variable(tolua_S,"name",tolua_get_meshio__pmd__IO_name,tolua_set_meshio__pmd__IO_name);
10788 tolua_variable(tolua_S,"comment",tolua_get_meshio__pmd__IO_comment,tolua_set_meshio__pmd__IO_comment);
10789 tolua_variable(tolua_S,"vertices",tolua_get_meshio__pmd__IO_vertices,tolua_set_meshio__pmd__IO_vertices);
10790 tolua_variable(tolua_S,"indices",tolua_get_meshio__pmd__IO_indices,tolua_set_meshio__pmd__IO_indices);
10791 tolua_variable(tolua_S,"materials",tolua_get_meshio__pmd__IO_materials,tolua_set_meshio__pmd__IO_materials);
10792 tolua_variable(tolua_S,"bones",tolua_get_meshio__pmd__IO_bones,tolua_set_meshio__pmd__IO_bones);
10793 tolua_variable(tolua_S,"ik_list",tolua_get_meshio__pmd__IO_ik_list,tolua_set_meshio__pmd__IO_ik_list);
10794 tolua_variable(tolua_S,"morph_list",tolua_get_meshio__pmd__IO_morph_list,tolua_set_meshio__pmd__IO_morph_list);
10795 tolua_variable(tolua_S,"face_list",tolua_get_meshio__pmd__IO_face_list,tolua_set_meshio__pmd__IO_face_list);
10796 tolua_variable(tolua_S,"bone_group_list",tolua_get_meshio__pmd__IO_bone_group_list,tolua_set_meshio__pmd__IO_bone_group_list);
10797 tolua_variable(tolua_S,"bone_display_list",tolua_get_meshio__pmd__IO_bone_display_list,tolua_set_meshio__pmd__IO_bone_display_list);
10798 tolua_variable(tolua_S,"toon_textures",tolua_get_meshio__pmd__IO_toon_textures,tolua_set_meshio__pmd__IO_toon_textures);
10799 tolua_variable(tolua_S,"rigidbodies",tolua_get_meshio__pmd__IO_rigidbodies,tolua_set_meshio__pmd__IO_rigidbodies);
10800 tolua_variable(tolua_S,"constraints",tolua_get_meshio__pmd__IO_constraints,tolua_set_meshio__pmd__IO_constraints);
10801 tolua_variable(tolua_S,"english_name",tolua_get_meshio__pmd__IO_english_name,tolua_set_meshio__pmd__IO_english_name);
10802 tolua_variable(tolua_S,"english_comment",tolua_get_meshio__pmd__IO_english_comment,tolua_set_meshio__pmd__IO_english_comment);
10803 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_pmd_IO_new00);
10804 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_pmd_IO_new00_local);
10805 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_pmd_IO_new00_local);
10806 tolua_function(tolua_S,"read",tolua_lmeshio_meshio_pmd_IO_read00);
10807 tolua_function(tolua_S,"write",tolua_lmeshio_meshio_pmd_IO_write00);
10808 tolua_endmodule(tolua_S);
10809 tolua_endmodule(tolua_S);
10810 tolua_module(tolua_S,"mqo",0);
10811 tolua_beginmodule(tolua_S,"mqo");
10812 tolua_cclass(tolua_S,"Scene","meshio::mqo::Scene","",NULL);
10813 tolua_beginmodule(tolua_S,"Scene");
10814 tolua_variable(tolua_S,"pos",tolua_get_meshio__mqo__Scene_pos,tolua_set_meshio__mqo__Scene_pos);
10815 tolua_variable(tolua_S,"lookat",tolua_get_meshio__mqo__Scene_lookat,tolua_set_meshio__mqo__Scene_lookat);
10816 tolua_variable(tolua_S,"head",tolua_get_meshio__mqo__Scene_head,tolua_set_meshio__mqo__Scene_head);
10817 tolua_variable(tolua_S,"pitch",tolua_get_meshio__mqo__Scene_pitch,tolua_set_meshio__mqo__Scene_pitch);
10818 tolua_variable(tolua_S,"ortho",tolua_get_meshio__mqo__Scene_ortho,tolua_set_meshio__mqo__Scene_ortho);
10819 tolua_variable(tolua_S,"zoom2",tolua_get_meshio__mqo__Scene_zoom2,tolua_set_meshio__mqo__Scene_zoom2);
10820 tolua_variable(tolua_S,"ambient",tolua_get_meshio__mqo__Scene_ambient,tolua_set_meshio__mqo__Scene_ambient);
10821 tolua_endmodule(tolua_S);
10823 tolua_cclass(tolua_S,"Material","meshio::mqo::Material","",tolua_collect_meshio__mqo__Material);
10825 tolua_cclass(tolua_S,"Material","meshio::mqo::Material","",NULL);
10827 tolua_beginmodule(tolua_S,"Material");
10828 tolua_variable(tolua_S,"name",tolua_get_meshio__mqo__Material_name,tolua_set_meshio__mqo__Material_name);
10829 tolua_variable(tolua_S,"shader",tolua_get_meshio__mqo__Material_shader,tolua_set_meshio__mqo__Material_shader);
10830 tolua_variable(tolua_S,"color",tolua_get_meshio__mqo__Material_color,tolua_set_meshio__mqo__Material_color);
10831 tolua_variable(tolua_S,"diffuse",tolua_get_meshio__mqo__Material_diffuse,tolua_set_meshio__mqo__Material_diffuse);
10832 tolua_variable(tolua_S,"ambient",tolua_get_meshio__mqo__Material_ambient,tolua_set_meshio__mqo__Material_ambient);
10833 tolua_variable(tolua_S,"emit",tolua_get_meshio__mqo__Material_emit,tolua_set_meshio__mqo__Material_emit);
10834 tolua_variable(tolua_S,"specular",tolua_get_meshio__mqo__Material_specular,tolua_set_meshio__mqo__Material_specular);
10835 tolua_variable(tolua_S,"power",tolua_get_meshio__mqo__Material_power,tolua_set_meshio__mqo__Material_power);
10836 tolua_variable(tolua_S,"texture",tolua_get_meshio__mqo__Material_texture,tolua_set_meshio__mqo__Material_texture);
10837 tolua_variable(tolua_S,"alphamap",tolua_get_meshio__mqo__Material_alphamap,tolua_set_meshio__mqo__Material_alphamap);
10838 tolua_variable(tolua_S,"bumpmap",tolua_get_meshio__mqo__Material_bumpmap,tolua_set_meshio__mqo__Material_bumpmap);
10839 tolua_variable(tolua_S,"vcol",tolua_get_meshio__mqo__Material_vcol,tolua_set_meshio__mqo__Material_vcol);
10840 tolua_endmodule(tolua_S);
10842 tolua_cclass(tolua_S,"Face","meshio::mqo::Face","",tolua_collect_meshio__mqo__Face);
10844 tolua_cclass(tolua_S,"Face","meshio::mqo::Face","",NULL);
10846 tolua_beginmodule(tolua_S,"Face");
10847 tolua_variable(tolua_S,"index_count",tolua_get_meshio__mqo__Face_unsigned_index_count,tolua_set_meshio__mqo__Face_unsigned_index_count);
10848 tolua_array(tolua_S,"indices",tolua_get_lmeshio_meshio_mqo_Face_indices,tolua_set_lmeshio_meshio_mqo_Face_indices);
10849 tolua_variable(tolua_S,"material_index",tolua_get_meshio__mqo__Face_unsigned_material_index,tolua_set_meshio__mqo__Face_unsigned_material_index);
10850 tolua_array(tolua_S,"uv",tolua_get_lmeshio_meshio_mqo_Face_uv,tolua_set_lmeshio_meshio_mqo_Face_uv);
10851 tolua_array(tolua_S,"color",tolua_get_lmeshio_meshio_mqo_Face_color,tolua_set_lmeshio_meshio_mqo_Face_color);
10852 tolua_endmodule(tolua_S);
10854 tolua_cclass(tolua_S,"Object","meshio::mqo::Object","",tolua_collect_meshio__mqo__Object);
10856 tolua_cclass(tolua_S,"Object","meshio::mqo::Object","",NULL);
10858 tolua_beginmodule(tolua_S,"Object");
10859 tolua_variable(tolua_S,"name",tolua_get_meshio__mqo__Object_name,tolua_set_meshio__mqo__Object_name);
10860 tolua_variable(tolua_S,"depth",tolua_get_meshio__mqo__Object_depth,tolua_set_meshio__mqo__Object_depth);
10861 tolua_variable(tolua_S,"folding",tolua_get_meshio__mqo__Object_folding,tolua_set_meshio__mqo__Object_folding);
10862 tolua_variable(tolua_S,"scale",tolua_get_meshio__mqo__Object_scale,tolua_set_meshio__mqo__Object_scale);
10863 tolua_variable(tolua_S,"rotation",tolua_get_meshio__mqo__Object_rotation,tolua_set_meshio__mqo__Object_rotation);
10864 tolua_variable(tolua_S,"translation",tolua_get_meshio__mqo__Object_translation,tolua_set_meshio__mqo__Object_translation);
10865 tolua_variable(tolua_S,"visible",tolua_get_meshio__mqo__Object_visible,tolua_set_meshio__mqo__Object_visible);
10866 tolua_variable(tolua_S,"locking",tolua_get_meshio__mqo__Object_locking,tolua_set_meshio__mqo__Object_locking);
10867 tolua_variable(tolua_S,"shading",tolua_get_meshio__mqo__Object_shading,tolua_set_meshio__mqo__Object_shading);
10868 tolua_variable(tolua_S,"smoothing",tolua_get_meshio__mqo__Object_smoothing,tolua_set_meshio__mqo__Object_smoothing);
10869 tolua_variable(tolua_S,"color",tolua_get_meshio__mqo__Object_color,tolua_set_meshio__mqo__Object_color);
10870 tolua_variable(tolua_S,"color_type",tolua_get_meshio__mqo__Object_color_type,tolua_set_meshio__mqo__Object_color_type);
10871 tolua_variable(tolua_S,"mirror",tolua_get_meshio__mqo__Object_mirror,tolua_set_meshio__mqo__Object_mirror);
10872 tolua_variable(tolua_S,"vertices",tolua_get_meshio__mqo__Object_vertices,tolua_set_meshio__mqo__Object_vertices);
10873 tolua_variable(tolua_S,"faces",tolua_get_meshio__mqo__Object_faces,tolua_set_meshio__mqo__Object_faces);
10874 tolua_endmodule(tolua_S);
10876 tolua_cclass(tolua_S,"IO","meshio::mqo::IO","",tolua_collect_meshio__mqo__IO);
10878 tolua_cclass(tolua_S,"IO","meshio::mqo::IO","",NULL);
10880 tolua_beginmodule(tolua_S,"IO");
10881 tolua_variable(tolua_S,"scene",tolua_get_meshio__mqo__IO_scene,tolua_set_meshio__mqo__IO_scene);
10882 tolua_variable(tolua_S,"materials",tolua_get_meshio__mqo__IO_materials,tolua_set_meshio__mqo__IO_materials);
10883 tolua_variable(tolua_S,"objects",tolua_get_meshio__mqo__IO_objects,tolua_set_meshio__mqo__IO_objects);
10884 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_mqo_IO_new00);
10885 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_mqo_IO_new00_local);
10886 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_mqo_IO_new00_local);
10887 tolua_function(tolua_S,"read",tolua_lmeshio_meshio_mqo_IO_read00);
10888 tolua_function(tolua_S,"write",tolua_lmeshio_meshio_mqo_IO_write00);
10889 tolua_endmodule(tolua_S);
10890 tolua_endmodule(tolua_S);
10892 tolua_cclass(tolua_S,"Vector2","meshio::Vector2","",tolua_collect_meshio__Vector2);
10894 tolua_cclass(tolua_S,"Vector2","meshio::Vector2","",NULL);
10896 tolua_beginmodule(tolua_S,"Vector2");
10897 tolua_variable(tolua_S,"x",tolua_get_meshio__Vector2_x,tolua_set_meshio__Vector2_x);
10898 tolua_variable(tolua_S,"y",tolua_get_meshio__Vector2_y,tolua_set_meshio__Vector2_y);
10899 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_Vector2_new00);
10900 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_Vector2_new00_local);
10901 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_Vector2_new00_local);
10902 tolua_endmodule(tolua_S);
10904 tolua_cclass(tolua_S,"Vector3","meshio::Vector3","",tolua_collect_meshio__Vector3);
10906 tolua_cclass(tolua_S,"Vector3","meshio::Vector3","",NULL);
10908 tolua_beginmodule(tolua_S,"Vector3");
10909 tolua_variable(tolua_S,"x",tolua_get_meshio__Vector3_x,tolua_set_meshio__Vector3_x);
10910 tolua_variable(tolua_S,"y",tolua_get_meshio__Vector3_y,tolua_set_meshio__Vector3_y);
10911 tolua_variable(tolua_S,"z",tolua_get_meshio__Vector3_z,tolua_set_meshio__Vector3_z);
10912 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_Vector3_new00);
10913 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_Vector3_new00_local);
10914 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_Vector3_new00_local);
10915 tolua_function(tolua_S,".eq",tolua_lmeshio_meshio_Vector3__eq00);
10916 tolua_function(tolua_S,".add",tolua_lmeshio_meshio_Vector3__add00);
10917 tolua_function(tolua_S,".sub",tolua_lmeshio_meshio_Vector3__sub00);
10918 tolua_endmodule(tolua_S);
10920 tolua_cclass(tolua_S,"Vector4","meshio::Vector4","",tolua_collect_meshio__Vector4);
10922 tolua_cclass(tolua_S,"Vector4","meshio::Vector4","",NULL);
10924 tolua_beginmodule(tolua_S,"Vector4");
10925 tolua_variable(tolua_S,"x",tolua_get_meshio__Vector4_x,tolua_set_meshio__Vector4_x);
10926 tolua_variable(tolua_S,"y",tolua_get_meshio__Vector4_y,tolua_set_meshio__Vector4_y);
10927 tolua_variable(tolua_S,"z",tolua_get_meshio__Vector4_z,tolua_set_meshio__Vector4_z);
10928 tolua_variable(tolua_S,"w",tolua_get_meshio__Vector4_w,tolua_set_meshio__Vector4_w);
10929 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_Vector4_new00);
10930 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_Vector4_new00_local);
10931 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_Vector4_new00_local);
10932 tolua_endmodule(tolua_S);
10934 tolua_cclass(tolua_S,"Quaternion","meshio::Quaternion","",tolua_collect_meshio__Quaternion);
10936 tolua_cclass(tolua_S,"Quaternion","meshio::Quaternion","",NULL);
10938 tolua_beginmodule(tolua_S,"Quaternion");
10939 tolua_variable(tolua_S,"x",tolua_get_meshio__Quaternion_x,tolua_set_meshio__Quaternion_x);
10940 tolua_variable(tolua_S,"y",tolua_get_meshio__Quaternion_y,tolua_set_meshio__Quaternion_y);
10941 tolua_variable(tolua_S,"z",tolua_get_meshio__Quaternion_z,tolua_set_meshio__Quaternion_z);
10942 tolua_variable(tolua_S,"w",tolua_get_meshio__Quaternion_w,tolua_set_meshio__Quaternion_w);
10943 tolua_function(tolua_S,"new",tolua_lmeshio_meshio_Quaternion_new00);
10944 tolua_function(tolua_S,"new_local",tolua_lmeshio_meshio_Quaternion_new00_local);
10945 tolua_function(tolua_S,".call",tolua_lmeshio_meshio_Quaternion_new00_local);
10946 tolua_function(tolua_S,"dot",tolua_lmeshio_meshio_Quaternion_dot00);
10947 tolua_endmodule(tolua_S);
10949 tolua_cclass(tolua_S,"fRGBA","meshio::fRGBA","",tolua_collect_meshio__fRGBA);
10951 tolua_cclass(tolua_S,"fRGBA","meshio::fRGBA","",NULL);
10953 tolua_beginmodule(tolua_S,"fRGBA");
10954 tolua_variable(tolua_S,"r",tolua_get_meshio__fRGBA_r,tolua_set_meshio__fRGBA_r);
10955 tolua_variable(tolua_S,"g",tolua_get_meshio__fRGBA_g,tolua_set_meshio__fRGBA_g);
10956 tolua_variable(tolua_S,"b",tolua_get_meshio__fRGBA_b,tolua_set_meshio__fRGBA_b);
10957 tolua_variable(tolua_S,"a",tolua_get_meshio__fRGBA_a,tolua_set_meshio__fRGBA_a);
10958 tolua_endmodule(tolua_S);
10959 tolua_cclass(tolua_S,"fixed_string_20_","meshio::fixed_string<20>","",NULL);
10960 tolua_beginmodule(tolua_S,"fixed_string_20_");
10961 tolua_function(tolua_S,"str",tolua_lmeshio_meshio_fixed_string_20__str00);
10962 tolua_function(tolua_S,"assign",tolua_lmeshio_meshio_fixed_string_20__assign00);
10963 tolua_endmodule(tolua_S);
10964 tolua_cclass(tolua_S,"fixed_string_50_","meshio::fixed_string<50>","",NULL);
10965 tolua_beginmodule(tolua_S,"fixed_string_50_");
10966 tolua_function(tolua_S,"str",tolua_lmeshio_meshio_fixed_string_50__str00);
10967 tolua_function(tolua_S,"assign",tolua_lmeshio_meshio_fixed_string_50__assign00);
10968 tolua_endmodule(tolua_S);
10969 tolua_cclass(tolua_S,"fixed_string_100_","meshio::fixed_string<100>","",NULL);
10970 tolua_beginmodule(tolua_S,"fixed_string_100_");
10971 tolua_function(tolua_S,"str",tolua_lmeshio_meshio_fixed_string_100__str00);
10972 tolua_function(tolua_S,"assign",tolua_lmeshio_meshio_fixed_string_100__assign00);
10973 tolua_endmodule(tolua_S);
10974 tolua_cclass(tolua_S,"fixed_string_256_","meshio::fixed_string<256>","",NULL);
10975 tolua_beginmodule(tolua_S,"fixed_string_256_");
10976 tolua_function(tolua_S,"str",tolua_lmeshio_meshio_fixed_string_256__str00);
10977 tolua_function(tolua_S,"assign",tolua_lmeshio_meshio_fixed_string_256__assign00);
10978 tolua_endmodule(tolua_S);
10979 tolua_endmodule(tolua_S);
10980 tolua_module(tolua_S,"std",0);
10981 tolua_beginmodule(tolua_S,"std");
10983 tolua_cclass(tolua_S,"vector_meshio__pmd__Bone__","std::vector<meshio::pmd::Bone*>","",tolua_collect_std__vector_meshio__pmd__Bone__);
10985 tolua_cclass(tolua_S,"vector_meshio__pmd__Bone__","std::vector<meshio::pmd::Bone*>","",NULL);
10987 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Bone__");
10988 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Bone___new00);
10989 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Bone___new00_local);
10990 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Bone___new00_local);
10991 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Bone___size00);
10992 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Bone___push_back00);
10993 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Bone___back00);
10994 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Bone____geti00);
10995 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Bone____seti00);
10996 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Bone*>::iterator, std::vector<meshio::pmd::Bone*>::iterator>");
10997 lua_pushstring(tolua_S, "__gc");
10998 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator_gc);
10999 lua_settable(tolua_S, -3);
11000 lua_pop(tolua_S, 1);
11001 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Bone___iterator);
11002 tolua_endmodule(tolua_S);
11004 tolua_cclass(tolua_S,"vector_unsigned_short_","std::vector<unsigned short>","",tolua_collect_std__vector_unsigned_short_);
11006 tolua_cclass(tolua_S,"vector_unsigned_short_","std::vector<unsigned short>","",NULL);
11008 tolua_beginmodule(tolua_S,"vector_unsigned_short_");
11009 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_unsigned_short__new00);
11010 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_unsigned_short__new00_local);
11011 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_unsigned_short__new00_local);
11012 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_unsigned_short__size00);
11013 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_unsigned_short__push_back00);
11014 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_unsigned_short__back00);
11015 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_unsigned_short___geti00);
11016 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_unsigned_short___seti00);
11017 luaL_getmetatable(tolua_S, "std::pair<std::vector<unsigned short>::iterator, std::vector<unsigned short>::iterator>");
11018 lua_pushstring(tolua_S, "__gc");
11019 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_unsigned_short__iterator_gc);
11020 lua_settable(tolua_S, -3);
11021 lua_pop(tolua_S, 1);
11022 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_unsigned_short__iterator);
11023 tolua_endmodule(tolua_S);
11025 tolua_cclass(tolua_S,"vector_unsigned_int_","std::vector<unsigned int>","",tolua_collect_std__vector_unsigned_int_);
11027 tolua_cclass(tolua_S,"vector_unsigned_int_","std::vector<unsigned int>","",NULL);
11029 tolua_beginmodule(tolua_S,"vector_unsigned_int_");
11030 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_unsigned_int__new00);
11031 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_unsigned_int__new00_local);
11032 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_unsigned_int__new00_local);
11033 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_unsigned_int__size00);
11034 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_unsigned_int__push_back00);
11035 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_unsigned_int__back00);
11036 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_unsigned_int___geti00);
11037 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_unsigned_int___seti00);
11038 luaL_getmetatable(tolua_S, "std::pair<std::vector<unsigned int>::iterator, std::vector<unsigned int>::iterator>");
11039 lua_pushstring(tolua_S, "__gc");
11040 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_unsigned_int__iterator_gc);
11041 lua_settable(tolua_S, -3);
11042 lua_pop(tolua_S, 1);
11043 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_unsigned_int__iterator);
11044 tolua_endmodule(tolua_S);
11046 tolua_cclass(tolua_S,"vector_meshio__Vector3_","std::vector<meshio::Vector3>","",tolua_collect_std__vector_meshio__Vector3_);
11048 tolua_cclass(tolua_S,"vector_meshio__Vector3_","std::vector<meshio::Vector3>","",NULL);
11050 tolua_beginmodule(tolua_S,"vector_meshio__Vector3_");
11051 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__Vector3__new00);
11052 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__Vector3__new00_local);
11053 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__Vector3__new00_local);
11054 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__Vector3__size00);
11055 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__Vector3__push_back00);
11056 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__Vector3__back00);
11057 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__Vector3___geti00);
11058 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__Vector3___seti00);
11059 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::Vector3>::iterator, std::vector<meshio::Vector3>::iterator>");
11060 lua_pushstring(tolua_S, "__gc");
11061 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__Vector3__iterator_gc);
11062 lua_settable(tolua_S, -3);
11063 lua_pop(tolua_S, 1);
11064 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__Vector3__iterator);
11065 tolua_endmodule(tolua_S);
11067 tolua_cclass(tolua_S,"vector_meshio__pmd__Vertex_","std::vector<meshio::pmd::Vertex>","",tolua_collect_std__vector_meshio__pmd__Vertex_);
11069 tolua_cclass(tolua_S,"vector_meshio__pmd__Vertex_","std::vector<meshio::pmd::Vertex>","",NULL);
11071 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Vertex_");
11072 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00);
11073 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00_local);
11074 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Vertex__new00_local);
11075 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Vertex__size00);
11076 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Vertex__push_back00);
11077 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Vertex__back00);
11078 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Vertex___geti00);
11079 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Vertex___seti00);
11080 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Vertex>::iterator, std::vector<meshio::pmd::Vertex>::iterator>");
11081 lua_pushstring(tolua_S, "__gc");
11082 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator_gc);
11083 lua_settable(tolua_S, -3);
11084 lua_pop(tolua_S, 1);
11085 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Vertex__iterator);
11086 tolua_endmodule(tolua_S);
11088 tolua_cclass(tolua_S,"vector_meshio__pmd__Material_","std::vector<meshio::pmd::Material>","",tolua_collect_std__vector_meshio__pmd__Material_);
11090 tolua_cclass(tolua_S,"vector_meshio__pmd__Material_","std::vector<meshio::pmd::Material>","",NULL);
11092 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Material_");
11093 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Material__new00);
11094 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Material__new00_local);
11095 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Material__new00_local);
11096 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Material__size00);
11097 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Material__push_back00);
11098 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Material__back00);
11099 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Material___geti00);
11100 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Material___seti00);
11101 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Material>::iterator, std::vector<meshio::pmd::Material>::iterator>");
11102 lua_pushstring(tolua_S, "__gc");
11103 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Material__iterator_gc);
11104 lua_settable(tolua_S, -3);
11105 lua_pop(tolua_S, 1);
11106 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Material__iterator);
11107 tolua_endmodule(tolua_S);
11109 tolua_cclass(tolua_S,"vector_meshio__pmd__Bone_","std::vector<meshio::pmd::Bone>","",tolua_collect_std__vector_meshio__pmd__Bone_);
11111 tolua_cclass(tolua_S,"vector_meshio__pmd__Bone_","std::vector<meshio::pmd::Bone>","",NULL);
11113 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Bone_");
11114 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Bone__new00);
11115 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Bone__new00_local);
11116 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Bone__new00_local);
11117 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Bone__size00);
11118 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Bone__push_back00);
11119 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Bone__back00);
11120 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Bone___geti00);
11121 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Bone___seti00);
11122 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Bone>::iterator, std::vector<meshio::pmd::Bone>::iterator>");
11123 lua_pushstring(tolua_S, "__gc");
11124 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator_gc);
11125 lua_settable(tolua_S, -3);
11126 lua_pop(tolua_S, 1);
11127 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Bone__iterator);
11128 tolua_endmodule(tolua_S);
11130 tolua_cclass(tolua_S,"vector_meshio__pmd__IK_","std::vector<meshio::pmd::IK>","",tolua_collect_std__vector_meshio__pmd__IK_);
11132 tolua_cclass(tolua_S,"vector_meshio__pmd__IK_","std::vector<meshio::pmd::IK>","",NULL);
11134 tolua_beginmodule(tolua_S,"vector_meshio__pmd__IK_");
11135 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__IK__new00);
11136 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__IK__new00_local);
11137 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__IK__new00_local);
11138 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__IK__size00);
11139 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__IK__push_back00);
11140 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__IK__back00);
11141 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__IK___geti00);
11142 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__IK___seti00);
11143 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::IK>::iterator, std::vector<meshio::pmd::IK>::iterator>");
11144 lua_pushstring(tolua_S, "__gc");
11145 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__IK__iterator_gc);
11146 lua_settable(tolua_S, -3);
11147 lua_pop(tolua_S, 1);
11148 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__IK__iterator);
11149 tolua_endmodule(tolua_S);
11151 tolua_cclass(tolua_S,"vector_meshio__pmd__Morph_","std::vector<meshio::pmd::Morph>","",tolua_collect_std__vector_meshio__pmd__Morph_);
11153 tolua_cclass(tolua_S,"vector_meshio__pmd__Morph_","std::vector<meshio::pmd::Morph>","",NULL);
11155 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Morph_");
11156 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Morph__new00);
11157 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Morph__new00_local);
11158 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Morph__new00_local);
11159 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Morph__size00);
11160 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Morph__push_back00);
11161 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Morph__back00);
11162 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Morph___geti00);
11163 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Morph___seti00);
11164 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Morph>::iterator, std::vector<meshio::pmd::Morph>::iterator>");
11165 lua_pushstring(tolua_S, "__gc");
11166 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator_gc);
11167 lua_settable(tolua_S, -3);
11168 lua_pop(tolua_S, 1);
11169 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Morph__iterator);
11170 tolua_endmodule(tolua_S);
11172 tolua_cclass(tolua_S,"vector_meshio__pmd__BoneGroup_","std::vector<meshio::pmd::BoneGroup>","",tolua_collect_std__vector_meshio__pmd__BoneGroup_);
11174 tolua_cclass(tolua_S,"vector_meshio__pmd__BoneGroup_","std::vector<meshio::pmd::BoneGroup>","",NULL);
11176 tolua_beginmodule(tolua_S,"vector_meshio__pmd__BoneGroup_");
11177 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00);
11178 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00_local);
11179 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__new00_local);
11180 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__size00);
11181 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__push_back00);
11182 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup__back00);
11183 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___geti00);
11184 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__BoneGroup___seti00);
11185 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::BoneGroup>::iterator, std::vector<meshio::pmd::BoneGroup>::iterator>");
11186 lua_pushstring(tolua_S, "__gc");
11187 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator_gc);
11188 lua_settable(tolua_S, -3);
11189 lua_pop(tolua_S, 1);
11190 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__BoneGroup__iterator);
11191 tolua_endmodule(tolua_S);
11193 tolua_cclass(tolua_S,"vector_std__pair_unsigned_short_unsigned_char___","std::vector<std::pair<unsigned short,unsigned char> >","",tolua_collect_std__vector_std__pair_unsigned_short_unsigned_char___);
11195 tolua_cclass(tolua_S,"vector_std__pair_unsigned_short_unsigned_char___","std::vector<std::pair<unsigned short,unsigned char> >","",NULL);
11197 tolua_beginmodule(tolua_S,"vector_std__pair_unsigned_short_unsigned_char___");
11198 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00);
11199 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00_local);
11200 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____new00_local);
11201 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____size00);
11202 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____push_back00);
11203 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char____back00);
11204 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____geti00);
11205 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_std__pair_unsigned_short_unsigned_char_____seti00);
11206 luaL_getmetatable(tolua_S, "std::pair<std::vector<std::pair<unsigned short,unsigned char> >::iterator, std::vector<std::pair<unsigned short,unsigned char> >::iterator>");
11207 lua_pushstring(tolua_S, "__gc");
11208 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator_gc);
11209 lua_settable(tolua_S, -3);
11210 lua_pop(tolua_S, 1);
11211 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_std__pair_unsigned_short_unsigned_char____iterator);
11212 tolua_endmodule(tolua_S);
11214 tolua_cclass(tolua_S,"vector_meshio__pmd__RigidBody_","std::vector<meshio::pmd::RigidBody>","",tolua_collect_std__vector_meshio__pmd__RigidBody_);
11216 tolua_cclass(tolua_S,"vector_meshio__pmd__RigidBody_","std::vector<meshio::pmd::RigidBody>","",NULL);
11218 tolua_beginmodule(tolua_S,"vector_meshio__pmd__RigidBody_");
11219 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00);
11220 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00_local);
11221 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__new00_local);
11222 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__size00);
11223 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__push_back00);
11224 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__RigidBody__back00);
11225 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__RigidBody___geti00);
11226 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__RigidBody___seti00);
11227 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::RigidBody>::iterator, std::vector<meshio::pmd::RigidBody>::iterator>");
11228 lua_pushstring(tolua_S, "__gc");
11229 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator_gc);
11230 lua_settable(tolua_S, -3);
11231 lua_pop(tolua_S, 1);
11232 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__RigidBody__iterator);
11233 tolua_endmodule(tolua_S);
11235 tolua_cclass(tolua_S,"vector_meshio__pmd__Constraint_","std::vector<meshio::pmd::Constraint>","",tolua_collect_std__vector_meshio__pmd__Constraint_);
11237 tolua_cclass(tolua_S,"vector_meshio__pmd__Constraint_","std::vector<meshio::pmd::Constraint>","",NULL);
11239 tolua_beginmodule(tolua_S,"vector_meshio__pmd__Constraint_");
11240 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00);
11241 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00_local);
11242 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__pmd__Constraint__new00_local);
11243 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__pmd__Constraint__size00);
11244 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__pmd__Constraint__push_back00);
11245 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__pmd__Constraint__back00);
11246 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__pmd__Constraint___geti00);
11247 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__pmd__Constraint___seti00);
11248 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::pmd::Constraint>::iterator, std::vector<meshio::pmd::Constraint>::iterator>");
11249 lua_pushstring(tolua_S, "__gc");
11250 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator_gc);
11251 lua_settable(tolua_S, -3);
11252 lua_pop(tolua_S, 1);
11253 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__pmd__Constraint__iterator);
11254 tolua_endmodule(tolua_S);
11256 tolua_cclass(tolua_S,"vector_meshio__mqo__Face_","std::vector<meshio::mqo::Face>","",tolua_collect_std__vector_meshio__mqo__Face_);
11258 tolua_cclass(tolua_S,"vector_meshio__mqo__Face_","std::vector<meshio::mqo::Face>","",NULL);
11260 tolua_beginmodule(tolua_S,"vector_meshio__mqo__Face_");
11261 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__mqo__Face__new00);
11262 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__mqo__Face__new00_local);
11263 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__mqo__Face__new00_local);
11264 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__mqo__Face__size00);
11265 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__mqo__Face__push_back00);
11266 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__mqo__Face__back00);
11267 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__mqo__Face___geti00);
11268 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__mqo__Face___seti00);
11269 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Face>::iterator, std::vector<meshio::mqo::Face>::iterator>");
11270 lua_pushstring(tolua_S, "__gc");
11271 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Face__iterator_gc);
11272 lua_settable(tolua_S, -3);
11273 lua_pop(tolua_S, 1);
11274 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__mqo__Face__iterator);
11275 tolua_endmodule(tolua_S);
11277 tolua_cclass(tolua_S,"vector_meshio__mqo__Material_","std::vector<meshio::mqo::Material>","",tolua_collect_std__vector_meshio__mqo__Material_);
11279 tolua_cclass(tolua_S,"vector_meshio__mqo__Material_","std::vector<meshio::mqo::Material>","",NULL);
11281 tolua_beginmodule(tolua_S,"vector_meshio__mqo__Material_");
11282 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__mqo__Material__new00);
11283 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__mqo__Material__new00_local);
11284 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__mqo__Material__new00_local);
11285 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__mqo__Material__size00);
11286 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__mqo__Material__push_back00);
11287 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__mqo__Material__back00);
11288 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__mqo__Material___geti00);
11289 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__mqo__Material___seti00);
11290 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Material>::iterator, std::vector<meshio::mqo::Material>::iterator>");
11291 lua_pushstring(tolua_S, "__gc");
11292 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Material__iterator_gc);
11293 lua_settable(tolua_S, -3);
11294 lua_pop(tolua_S, 1);
11295 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__mqo__Material__iterator);
11296 tolua_endmodule(tolua_S);
11298 tolua_cclass(tolua_S,"vector_meshio__mqo__Object_","std::vector<meshio::mqo::Object>","",tolua_collect_std__vector_meshio__mqo__Object_);
11300 tolua_cclass(tolua_S,"vector_meshio__mqo__Object_","std::vector<meshio::mqo::Object>","",NULL);
11302 tolua_beginmodule(tolua_S,"vector_meshio__mqo__Object_");
11303 tolua_function(tolua_S,"new",tolua_lmeshio_std_vector_meshio__mqo__Object__new00);
11304 tolua_function(tolua_S,"new_local",tolua_lmeshio_std_vector_meshio__mqo__Object__new00_local);
11305 tolua_function(tolua_S,".call",tolua_lmeshio_std_vector_meshio__mqo__Object__new00_local);
11306 tolua_function(tolua_S,"size",tolua_lmeshio_std_vector_meshio__mqo__Object__size00);
11307 tolua_function(tolua_S,"push_back",tolua_lmeshio_std_vector_meshio__mqo__Object__push_back00);
11308 tolua_function(tolua_S,"back",tolua_lmeshio_std_vector_meshio__mqo__Object__back00);
11309 tolua_function(tolua_S,".geti",tolua_lmeshio_std_vector_meshio__mqo__Object___geti00);
11310 tolua_function(tolua_S,".seti",tolua_lmeshio_std_vector_meshio__mqo__Object___seti00);
11311 luaL_getmetatable(tolua_S, "std::pair<std::vector<meshio::mqo::Object>::iterator, std::vector<meshio::mqo::Object>::iterator>");
11312 lua_pushstring(tolua_S, "__gc");
11313 lua_pushcfunction(tolua_S, tolua_lmeshio_std__vector_meshio__mqo__Object__iterator_gc);
11314 lua_settable(tolua_S, -3);
11315 lua_pop(tolua_S, 1);
11316 tolua_function(tolua_S,"foreachi",tolua_lmeshio_std__vector_meshio__mqo__Object__iterator);
11317 tolua_endmodule(tolua_S);
11319 tolua_cclass(tolua_S,"pair_unsigned_short_unsigned_char_","std::pair<unsigned short,unsigned char>","",tolua_collect_std__pair_unsigned_short_unsigned_char_);
11321 tolua_cclass(tolua_S,"pair_unsigned_short_unsigned_char_","std::pair<unsigned short,unsigned char>","",NULL);
11323 tolua_beginmodule(tolua_S,"pair_unsigned_short_unsigned_char_");
11324 tolua_variable(tolua_S,"first",tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_first,tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_first);
11325 tolua_variable(tolua_S,"second",tolua_get_std__pair_unsigned_short_unsigned_char__unsigned_second,tolua_set_std__pair_unsigned_short_unsigned_char__unsigned_second);
11326 tolua_endmodule(tolua_S);
11327 tolua_endmodule(tolua_S);
11328 tolua_endmodule(tolua_S);
11332 #if defined(LUA_VERSION_NUM) && LUA_VERSION_NUM >= 501
11337 TOLUA_API int luaopen_lmeshio (lua_State* tolua_S) {
11338 return tolua_lmeshio_open(tolua_S);