axmol/extensions/scripting/lua-bindings/auto/axlua_3d_auto.cpp

7752 lines
210 KiB
C++

#include "lua-bindings/auto/axlua_3d_auto.hpp"
#if defined(AX_ENABLE_3D)
#include "cocos2d.h"
#include "3d/Bundle3D.h"
#include "lua-bindings/manual/tolua_fix.h"
#include "lua-bindings/manual/LuaBasicConversions.h"
int lua_ax_3d_Animation3D_getDuration(lua_State* tolua_S)
{
int argc = 0;
ax::Animation3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animation3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animation3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_getDuration'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_getDuration'", nullptr);
return 0;
}
auto&& ret = cobj->getDuration();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:getDuration",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_getDuration'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animation3D_init(lua_State* tolua_S)
{
int argc = 0;
ax::Animation3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animation3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animation3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_init'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Animation3DData arg0;
#pragma warning NO CONVERSION TO NATIVE FOR Animation3DData
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_init'", nullptr);
return 0;
}
auto&& ret = cobj->init(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:init",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_init'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animation3D_initWithFile(lua_State* tolua_S)
{
int argc = 0;
ax::Animation3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animation3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animation3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
std::string_view arg0;
std::string_view arg1;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Animation3D:initWithFile");
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Animation3D:initWithFile");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_initWithFile'", nullptr);
return 0;
}
auto&& ret = cobj->initWithFile(arg0, arg1);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:initWithFile",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_initWithFile'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animation3D_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Animation3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Animation3D:create");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_create'", nullptr);
return 0;
}
auto&& ret = ax::Animation3D::create(arg0);
object_to_luaval<ax::Animation3D>(tolua_S, "ax.Animation3D",(ax::Animation3D*)ret);
return 1;
}
if (argc == 2)
{
std::string_view arg0;
std::string_view arg1;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Animation3D:create");
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Animation3D:create");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_create'", nullptr);
return 0;
}
auto&& ret = ax::Animation3D::create(arg0, arg1);
object_to_luaval<ax::Animation3D>(tolua_S, "ax.Animation3D",(ax::Animation3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animation3D:create",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animation3D_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Animation3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animation3D_constructor'", nullptr);
return 0;
}
cobj = new ax::Animation3D();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Animation3D");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animation3D:Animation3D",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animation3D_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Animation3D_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Animation3D)");
return 0;
}
int lua_register_ax_3d_Animation3D(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Animation3D");
tolua_cclass(tolua_S,"Animation3D","ax.Animation3D","ax.Ref",nullptr);
tolua_beginmodule(tolua_S,"Animation3D");
tolua_function(tolua_S,"new",lua_ax_3d_Animation3D_constructor);
tolua_function(tolua_S,"getDuration",lua_ax_3d_Animation3D_getDuration);
tolua_function(tolua_S,"init",lua_ax_3d_Animation3D_init);
tolua_function(tolua_S,"initWithFile",lua_ax_3d_Animation3D_initWithFile);
tolua_function(tolua_S,"create", lua_ax_3d_Animation3D_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Animation3D).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Animation3D";
g_typeCast[typeName] = "ax.Animation3D";
return 1;
}
int lua_ax_3d_Animate3D_getSpeed(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getSpeed'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getSpeed'", nullptr);
return 0;
}
auto&& ret = cobj->getSpeed();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getSpeed",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getSpeed'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setSpeed(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setSpeed");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setSpeed'", nullptr);
return 0;
}
cobj->setSpeed(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setSpeed",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setSpeed'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_getWeight(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getWeight'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getWeight'", nullptr);
return 0;
}
auto&& ret = cobj->getWeight();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getWeight",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getWeight'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setWeight(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setWeight'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setWeight");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setWeight'", nullptr);
return 0;
}
cobj->setWeight(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setWeight",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setWeight'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setOriginInterval(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setOriginInterval");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setOriginInterval'", nullptr);
return 0;
}
cobj->setOriginInterval(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setOriginInterval",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setOriginInterval'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_getOriginInterval(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getOriginInterval'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getOriginInterval'", nullptr);
return 0;
}
auto&& ret = cobj->getOriginInterval();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getOriginInterval",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getOriginInterval'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setQuality(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setQuality'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Animate3DQuality arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setQuality");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setQuality'", nullptr);
return 0;
}
cobj->setQuality(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setQuality",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setQuality'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_getQuality(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_getQuality'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getQuality'", nullptr);
return 0;
}
int ret = (int)cobj->getQuality();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:getQuality",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getQuality'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setKeyFrameUserInfo(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
int arg0;
ax::ValueMap arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Animate3D:setKeyFrameUserInfo");
ok &= luaval_to_ccvaluemap(tolua_S, 3, &arg1, "ax.Animate3D:setKeyFrameUserInfo");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'", nullptr);
return 0;
}
cobj->setKeyFrameUserInfo(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:setKeyFrameUserInfo",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setKeyFrameUserInfo'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_removeFromMap(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_removeFromMap'", nullptr);
return 0;
}
cobj->removeFromMap();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:removeFromMap",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_removeFromMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_init(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_init'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 3) {
ax::Animation3D* arg0;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:init");
if (!ok) { break; }
double arg1;
ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Animate3D:init");
if (!ok) { break; }
double arg2;
ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Animate3D:init");
if (!ok) { break; }
bool ret = cobj->init(arg0, arg1, arg2);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 1) {
ax::Animation3D* arg0;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:init");
if (!ok) { break; }
bool ret = cobj->init(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:init",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_init'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_initWithFrames(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Animate3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 4)
{
ax::Animation3D* arg0;
int arg1;
int arg2;
double arg3;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:initWithFrames");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Animate3D:initWithFrames");
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Animate3D:initWithFrames");
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Animate3D:initWithFrames");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_initWithFrames'", nullptr);
return 0;
}
auto&& ret = cobj->initWithFrames(arg0, arg1, arg2, arg3);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:initWithFrames",argc, 4);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_initWithFrames'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 3)
{
ax::Animation3D* arg0;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:create");
if (!ok) { break; }
double arg1;
ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Animate3D:create");
if (!ok) { break; }
double arg2;
ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Animate3D:create");
if (!ok) { break; }
ax::Animate3D* ret = ax::Animate3D::create(arg0, arg1, arg2);
object_to_luaval<ax::Animate3D>(tolua_S, "ax.Animate3D",(ax::Animate3D*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 1)
{
ax::Animation3D* arg0;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:create");
if (!ok) { break; }
ax::Animate3D* ret = ax::Animate3D::create(arg0);
object_to_luaval<ax::Animate3D>(tolua_S, "ax.Animate3D",(ax::Animate3D*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Animate3D:create",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_createWithFrames(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 3)
{
ax::Animation3D* arg0;
int arg1;
int arg2;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:createWithFrames");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Animate3D:createWithFrames");
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Animate3D:createWithFrames");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_createWithFrames'", nullptr);
return 0;
}
auto&& ret = ax::Animate3D::createWithFrames(arg0, arg1, arg2);
object_to_luaval<ax::Animate3D>(tolua_S, "ax.Animate3D",(ax::Animate3D*)ret);
return 1;
}
if (argc == 4)
{
ax::Animation3D* arg0;
int arg1;
int arg2;
double arg3;
ok &= luaval_to_object<ax::Animation3D>(tolua_S, 2, "ax.Animation3D",&arg0, "ax.Animate3D:createWithFrames");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Animate3D:createWithFrames");
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.Animate3D:createWithFrames");
ok &= luaval_to_number(tolua_S, 5,&arg3, "ax.Animate3D:createWithFrames");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_createWithFrames'", nullptr);
return 0;
}
auto&& ret = ax::Animate3D::createWithFrames(arg0, arg1, arg2, arg3);
object_to_luaval<ax::Animate3D>(tolua_S, "ax.Animate3D",(ax::Animate3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animate3D:createWithFrames",argc, 3);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_createWithFrames'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_getTransitionTime(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_getTransitionTime'", nullptr);
return 0;
}
auto&& ret = ax::Animate3D::getTransitionTime();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animate3D:getTransitionTime",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_getTransitionTime'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_setTransitionTime(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Animate3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Animate3D:setTransitionTime");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_setTransitionTime'", nullptr);
return 0;
}
ax::Animate3D::setTransitionTime(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Animate3D:setTransitionTime",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_setTransitionTime'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Animate3D_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Animate3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Animate3D_constructor'", nullptr);
return 0;
}
cobj = new ax::Animate3D();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Animate3D");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Animate3D:Animate3D",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Animate3D_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Animate3D_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Animate3D)");
return 0;
}
int lua_register_ax_3d_Animate3D(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Animate3D");
tolua_cclass(tolua_S,"Animate3D","ax.Animate3D","ax.ActionInterval",nullptr);
tolua_beginmodule(tolua_S,"Animate3D");
tolua_function(tolua_S,"new",lua_ax_3d_Animate3D_constructor);
tolua_function(tolua_S,"getSpeed",lua_ax_3d_Animate3D_getSpeed);
tolua_function(tolua_S,"setSpeed",lua_ax_3d_Animate3D_setSpeed);
tolua_function(tolua_S,"getWeight",lua_ax_3d_Animate3D_getWeight);
tolua_function(tolua_S,"setWeight",lua_ax_3d_Animate3D_setWeight);
tolua_function(tolua_S,"setOriginInterval",lua_ax_3d_Animate3D_setOriginInterval);
tolua_function(tolua_S,"getOriginInterval",lua_ax_3d_Animate3D_getOriginInterval);
tolua_function(tolua_S,"setQuality",lua_ax_3d_Animate3D_setQuality);
tolua_function(tolua_S,"getQuality",lua_ax_3d_Animate3D_getQuality);
tolua_function(tolua_S,"setKeyFrameUserInfo",lua_ax_3d_Animate3D_setKeyFrameUserInfo);
tolua_function(tolua_S,"removeFromMap",lua_ax_3d_Animate3D_removeFromMap);
tolua_function(tolua_S,"init",lua_ax_3d_Animate3D_init);
tolua_function(tolua_S,"initWithFrames",lua_ax_3d_Animate3D_initWithFrames);
tolua_function(tolua_S,"create", lua_ax_3d_Animate3D_create);
tolua_function(tolua_S,"createWithFrames", lua_ax_3d_Animate3D_createWithFrames);
tolua_function(tolua_S,"getTransitionTime", lua_ax_3d_Animate3D_getTransitionTime);
tolua_function(tolua_S,"setTransitionTime", lua_ax_3d_Animate3D_setTransitionTime);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Animate3D).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Animate3D";
g_typeCast[typeName] = "ax.Animate3D";
return 1;
}
int lua_ax_3d_TextureCube_setTexParameters(lua_State* tolua_S)
{
int argc = 0;
ax::TextureCube* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Texture2D::TexParams arg0;
ok &= luaval_to_texparams(tolua_S, 2, &arg0, "ax.TextureCube:setTexParameters");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_setTexParameters'", nullptr);
return 0;
}
cobj->setTexParameters(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:setTexParameters",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_setTexParameters'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_TextureCube_getBackendTexture(lua_State* tolua_S)
{
int argc = 0;
ax::TextureCube* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_getBackendTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_getBackendTexture'", nullptr);
return 0;
}
auto&& ret = cobj->getBackendTexture();
object_to_luaval<ax::backend::TextureBackend>(tolua_S, "axb.TextureBackend",(ax::backend::TextureBackend*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:getBackendTexture",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_getBackendTexture'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_TextureCube_getImagePaths(lua_State* tolua_S)
{
int argc = 0;
ax::TextureCube* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_getImagePaths'", nullptr);
return 0;
}
auto&& ret = cobj->getImagePaths();
ccvector_std_string_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:getImagePaths",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_getImagePaths'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_TextureCube_reloadTexture(lua_State* tolua_S)
{
int argc = 0;
ax::TextureCube* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::TextureCube*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_TextureCube_reloadTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_reloadTexture'", nullptr);
return 0;
}
auto&& ret = cobj->reloadTexture();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:reloadTexture",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_reloadTexture'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_TextureCube_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.TextureCube",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 6)
{
std::string_view arg0;
std::string_view arg1;
std::string_view arg2;
std::string_view arg3;
std::string_view arg4;
std::string_view arg5;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.TextureCube:create");
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.TextureCube:create");
ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ax.TextureCube:create");
ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ax.TextureCube:create");
ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ax.TextureCube:create");
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.TextureCube:create");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_create'", nullptr);
return 0;
}
auto&& ret = ax::TextureCube::create(arg0, arg1, arg2, arg3, arg4, arg5);
object_to_luaval<ax::TextureCube>(tolua_S, "ax.TextureCube",(ax::TextureCube*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.TextureCube:create",argc, 6);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_TextureCube_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::TextureCube* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_TextureCube_constructor'", nullptr);
return 0;
}
cobj = new ax::TextureCube();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.TextureCube");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.TextureCube:TextureCube",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_TextureCube_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_TextureCube_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (TextureCube)");
return 0;
}
int lua_register_ax_3d_TextureCube(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.TextureCube");
tolua_cclass(tolua_S,"TextureCube","ax.TextureCube","ax.Ref",nullptr);
tolua_beginmodule(tolua_S,"TextureCube");
tolua_function(tolua_S,"new",lua_ax_3d_TextureCube_constructor);
tolua_function(tolua_S,"setTexParameters",lua_ax_3d_TextureCube_setTexParameters);
tolua_function(tolua_S,"getBackendTexture",lua_ax_3d_TextureCube_getBackendTexture);
tolua_function(tolua_S,"getImagePaths",lua_ax_3d_TextureCube_getImagePaths);
tolua_function(tolua_S,"reloadTexture",lua_ax_3d_TextureCube_reloadTexture);
tolua_function(tolua_S,"create", lua_ax_3d_TextureCube_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::TextureCube).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.TextureCube";
g_typeCast[typeName] = "ax.TextureCube";
return 1;
}
int lua_ax_3d_AttachNode_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.AttachNode",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Bone3D* arg0;
ok &= luaval_to_object<ax::Bone3D>(tolua_S, 2, "ax.Bone3D",&arg0, "ax.AttachNode:create");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_AttachNode_create'", nullptr);
return 0;
}
auto&& ret = ax::AttachNode::create(arg0);
object_to_luaval<ax::AttachNode>(tolua_S, "ax.AttachNode",(ax::AttachNode*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.AttachNode:create",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_AttachNode_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_AttachNode_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::AttachNode* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_AttachNode_constructor'", nullptr);
return 0;
}
cobj = new ax::AttachNode();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.AttachNode");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.AttachNode:AttachNode",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_AttachNode_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_AttachNode_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (AttachNode)");
return 0;
}
int lua_register_ax_3d_AttachNode(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.AttachNode");
tolua_cclass(tolua_S,"AttachNode","ax.AttachNode","ax.Node",nullptr);
tolua_beginmodule(tolua_S,"AttachNode");
tolua_function(tolua_S,"new",lua_ax_3d_AttachNode_constructor);
tolua_function(tolua_S,"create", lua_ax_3d_AttachNode_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::AttachNode).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.AttachNode";
g_typeCast[typeName] = "ax.AttachNode";
return 1;
}
int lua_ax_3d_BillBoard_setMode(lua_State* tolua_S)
{
int argc = 0;
ax::BillBoard* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::BillBoard*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_BillBoard_setMode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::BillBoard::Mode arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.BillBoard:setMode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_setMode'", nullptr);
return 0;
}
cobj->setMode(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BillBoard:setMode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_setMode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_BillBoard_getMode(lua_State* tolua_S)
{
int argc = 0;
ax::BillBoard* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::BillBoard*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_BillBoard_getMode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_getMode'", nullptr);
return 0;
}
int ret = (int)cobj->getMode();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BillBoard:getMode",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_getMode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_BillBoard_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard* ret = ax::BillBoard::create(arg0);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 2)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard::Mode arg1;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard* ret = ax::BillBoard::create(arg0, arg1);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 0)
{
ax::BillBoard* ret = ax::BillBoard::create();
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 1)
{
ax::BillBoard::Mode arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard* ret = ax::BillBoard::create(arg0);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 2)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.BillBoard:create");
if (!ok) { break; }
ax::Rect arg1;
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard* ret = ax::BillBoard::create(arg0, arg1);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 3)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.BillBoard:create");
if (!ok) { break; }
ax::Rect arg1;
ok &= luaval_to_rect(tolua_S, 3, &arg1, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard::Mode arg2;
ok &= luaval_to_int32(tolua_S, 4,(int *)&arg2, "ax.BillBoard:create");
if (!ok) { break; }
ax::BillBoard* ret = ax::BillBoard::create(arg0, arg1, arg2);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.BillBoard:create",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_BillBoard_createWithTexture(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.BillBoard",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Texture2D* arg0;
ok &= luaval_to_object<ax::Texture2D>(tolua_S, 2, "ax.Texture2D",&arg0, "ax.BillBoard:createWithTexture");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_createWithTexture'", nullptr);
return 0;
}
auto&& ret = ax::BillBoard::createWithTexture(arg0);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
if (argc == 2)
{
ax::Texture2D* arg0;
ax::BillBoard::Mode arg1;
ok &= luaval_to_object<ax::Texture2D>(tolua_S, 2, "ax.Texture2D",&arg0, "ax.BillBoard:createWithTexture");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.BillBoard:createWithTexture");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_createWithTexture'", nullptr);
return 0;
}
auto&& ret = ax::BillBoard::createWithTexture(arg0, arg1);
object_to_luaval<ax::BillBoard>(tolua_S, "ax.BillBoard",(ax::BillBoard*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.BillBoard:createWithTexture",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_createWithTexture'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_BillBoard_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::BillBoard* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_BillBoard_constructor'", nullptr);
return 0;
}
cobj = new ax::BillBoard();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.BillBoard");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.BillBoard:BillBoard",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_BillBoard_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_BillBoard_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (BillBoard)");
return 0;
}
int lua_register_ax_3d_BillBoard(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.BillBoard");
tolua_cclass(tolua_S,"BillBoard","ax.BillBoard","ax.Sprite",nullptr);
tolua_beginmodule(tolua_S,"BillBoard");
tolua_function(tolua_S,"new",lua_ax_3d_BillBoard_constructor);
tolua_function(tolua_S,"setMode",lua_ax_3d_BillBoard_setMode);
tolua_function(tolua_S,"getMode",lua_ax_3d_BillBoard_getMode);
tolua_function(tolua_S,"create", lua_ax_3d_BillBoard_create);
tolua_function(tolua_S,"createWithTexture", lua_ax_3d_BillBoard_createWithTexture);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::BillBoard).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.BillBoard";
g_typeCast[typeName] = "ax.BillBoard";
return 1;
}
int lua_ax_3d_Mesh_getMeshVertexAttribCount(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshVertexAttribCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMeshVertexAttribCount",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMeshVertexAttribCount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getMeshVertexAttribute(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMeshVertexAttribute'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Mesh:getMeshVertexAttribute");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMeshVertexAttribute'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshVertexAttribute(arg0);
mesh_vertex_attrib_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMeshVertexAttribute",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMeshVertexAttribute'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getVertexSizeInBytes(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'", nullptr);
return 0;
}
auto&& ret = cobj->getVertexSizeInBytes();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getVertexSizeInBytes",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getVertexSizeInBytes'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setVisible(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setVisible'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:setVisible");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setVisible'", nullptr);
return 0;
}
cobj->setVisible(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setVisible",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setVisible'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_isVisible(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_isVisible'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_isVisible'", nullptr);
return 0;
}
auto&& ret = cobj->isVisible();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:isVisible",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_isVisible'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getProgramState(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getProgramState'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getProgramState'", nullptr);
return 0;
}
auto&& ret = cobj->getProgramState();
object_to_luaval<ax::backend::ProgramState>(tolua_S, "axb.ProgramState",(ax::backend::ProgramState*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getProgramState",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getProgramState'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getName(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getName'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getName'", nullptr);
return 0;
}
auto&& ret = cobj->getName();
lua_pushlstring(tolua_S,ret.data(),ret.length());
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getName",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getName'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setBlendFunc(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::BlendFunc arg0;
ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.Mesh:setBlendFunc");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setBlendFunc'", nullptr);
return 0;
}
cobj->setBlendFunc(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setBlendFunc",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setBlendFunc'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getBlendFunc(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getBlendFunc'", nullptr);
return 0;
}
auto&& ret = cobj->getBlendFunc();
blendfunc_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getBlendFunc",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getBlendFunc'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setIndexFormat(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::backend::IndexFormat arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Mesh:setIndexFormat");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setIndexFormat'", nullptr);
return 0;
}
cobj->setIndexFormat(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setIndexFormat",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setIndexFormat'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setProgramState(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setProgramState'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::backend::ProgramState* arg0;
ok &= luaval_to_object<ax::backend::ProgramState>(tolua_S, 2, "axb.ProgramState",&arg0, "ax.Mesh:setProgramState");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setProgramState'", nullptr);
return 0;
}
cobj->setProgramState(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setProgramState",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setProgramState'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setMaterial(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setMaterial'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Material* arg0;
ok &= luaval_to_object<ax::Material>(tolua_S, 2, "ax.Material",&arg0, "ax.Mesh:setMaterial");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setMaterial'", nullptr);
return 0;
}
cobj->setMaterial(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setMaterial",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_getMaterial(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_getMaterial'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_getMaterial'", nullptr);
return 0;
}
auto&& ret = cobj->getMaterial();
object_to_luaval<ax::Material>(tolua_S, "ax.Material",(ax::Material*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:getMaterial",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_getMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_draw(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_draw'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 8)
{
ax::Renderer* arg0;
double arg1;
ax::Mat4 arg2;
unsigned int arg3;
unsigned int arg4;
ax::Vec4 arg5;
bool arg6;
bool arg7;
ok &= luaval_to_object<ax::Renderer>(tolua_S, 2, "ax.Renderer",&arg0, "ax.Mesh:draw");
ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Mesh:draw");
ok &= luaval_to_mat4(tolua_S, 4, &arg2, "ax.Mesh:draw");
ok &= luaval_to_uint32(tolua_S, 5,&arg3, "ax.Mesh:draw");
ok &= luaval_to_uint32(tolua_S, 6,&arg4, "ax.Mesh:draw");
ok &= luaval_to_vec4(tolua_S, 7, &arg5, "ax.Mesh:draw");
ok &= luaval_to_boolean(tolua_S, 8,&arg6, "ax.Mesh:draw");
ok &= luaval_to_boolean(tolua_S, 9,&arg7, "ax.Mesh:draw");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_draw'", nullptr);
return 0;
}
cobj->draw(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:draw",argc, 8);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_draw'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setSkin(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setSkin'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::MeshSkin* arg0;
ok &= luaval_to_object<ax::MeshSkin>(tolua_S, 2, "ax.MeshSkin",&arg0, "ax.Mesh:setSkin");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setSkin'", nullptr);
return 0;
}
cobj->setSkin(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setSkin",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setSkin'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setMeshIndexData(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setMeshIndexData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::MeshIndexData* arg0;
ok &= luaval_to_object<ax::MeshIndexData>(tolua_S, 2, "ax.MeshIndexData",&arg0, "ax.Mesh:setMeshIndexData");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setMeshIndexData'", nullptr);
return 0;
}
cobj->setMeshIndexData(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setMeshIndexData",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setMeshIndexData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setName(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setName'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Mesh:setName");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setName'", nullptr);
return 0;
}
cobj->setName(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setName",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setName'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_calculateAABB(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_calculateAABB'", nullptr);
return 0;
}
cobj->calculateAABB();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:calculateAABB",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_calculateAABB'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setInstanceCount(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setInstanceCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setInstanceCount'", nullptr);
return 0;
}
cobj->setInstanceCount();
lua_settop(tolua_S, 1);
return 1;
}
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Mesh:setInstanceCount");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setInstanceCount'", nullptr);
return 0;
}
cobj->setInstanceCount(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setInstanceCount",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setInstanceCount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_enableInstancing(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_enableInstancing'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:enableInstancing");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_enableInstancing'", nullptr);
return 0;
}
cobj->enableInstancing(arg0);
lua_settop(tolua_S, 1);
return 1;
}
if (argc == 2)
{
bool arg0;
int arg1;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:enableInstancing");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Mesh:enableInstancing");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_enableInstancing'", nullptr);
return 0;
}
cobj->enableInstancing(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:enableInstancing",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_enableInstancing'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_setDynamicInstancing(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_setDynamicInstancing'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Mesh:setDynamicInstancing");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_setDynamicInstancing'", nullptr);
return 0;
}
cobj->setDynamicInstancing(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:setDynamicInstancing",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_setDynamicInstancing'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_addInstanceChild(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_addInstanceChild'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Node* arg0;
ok &= luaval_to_object<ax::Node>(tolua_S, 2, "ax.Node",&arg0, "ax.Mesh:addInstanceChild");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_addInstanceChild'", nullptr);
return 0;
}
cobj->addInstanceChild(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:addInstanceChild",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_addInstanceChild'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_shrinkToFitInstances(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_shrinkToFitInstances'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_shrinkToFitInstances'", nullptr);
return 0;
}
cobj->shrinkToFitInstances();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:shrinkToFitInstances",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_shrinkToFitInstances'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_rebuildInstances(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Mesh",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Mesh*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Mesh_rebuildInstances'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_rebuildInstances'", nullptr);
return 0;
}
cobj->rebuildInstances();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:rebuildInstances",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_rebuildInstances'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Mesh_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Mesh* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Mesh_constructor'", nullptr);
return 0;
}
cobj = new ax::Mesh();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Mesh");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Mesh:Mesh",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Mesh_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Mesh_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Mesh)");
return 0;
}
int lua_register_ax_3d_Mesh(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Mesh");
tolua_cclass(tolua_S,"Mesh","ax.Mesh","ax.Ref",nullptr);
tolua_beginmodule(tolua_S,"Mesh");
tolua_function(tolua_S,"new",lua_ax_3d_Mesh_constructor);
tolua_function(tolua_S,"getMeshVertexAttribCount",lua_ax_3d_Mesh_getMeshVertexAttribCount);
tolua_function(tolua_S,"getMeshVertexAttribute",lua_ax_3d_Mesh_getMeshVertexAttribute);
tolua_function(tolua_S,"getVertexSizeInBytes",lua_ax_3d_Mesh_getVertexSizeInBytes);
tolua_function(tolua_S,"setVisible",lua_ax_3d_Mesh_setVisible);
tolua_function(tolua_S,"isVisible",lua_ax_3d_Mesh_isVisible);
tolua_function(tolua_S,"getProgramState",lua_ax_3d_Mesh_getProgramState);
tolua_function(tolua_S,"getName",lua_ax_3d_Mesh_getName);
tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_Mesh_setBlendFunc);
tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_Mesh_getBlendFunc);
tolua_function(tolua_S,"setIndexFormat",lua_ax_3d_Mesh_setIndexFormat);
tolua_function(tolua_S,"setProgramState",lua_ax_3d_Mesh_setProgramState);
tolua_function(tolua_S,"setMaterial",lua_ax_3d_Mesh_setMaterial);
tolua_function(tolua_S,"getMaterial",lua_ax_3d_Mesh_getMaterial);
tolua_function(tolua_S,"draw",lua_ax_3d_Mesh_draw);
tolua_function(tolua_S,"setSkin",lua_ax_3d_Mesh_setSkin);
tolua_function(tolua_S,"setMeshIndexData",lua_ax_3d_Mesh_setMeshIndexData);
tolua_function(tolua_S,"setName",lua_ax_3d_Mesh_setName);
tolua_function(tolua_S,"calculateAABB",lua_ax_3d_Mesh_calculateAABB);
tolua_function(tolua_S,"setInstanceCount",lua_ax_3d_Mesh_setInstanceCount);
tolua_function(tolua_S,"enableInstancing",lua_ax_3d_Mesh_enableInstancing);
tolua_function(tolua_S,"setDynamicInstancing",lua_ax_3d_Mesh_setDynamicInstancing);
tolua_function(tolua_S,"addInstanceChild",lua_ax_3d_Mesh_addInstanceChild);
tolua_function(tolua_S,"shrinkToFitInstances",lua_ax_3d_Mesh_shrinkToFitInstances);
tolua_function(tolua_S,"rebuildInstances",lua_ax_3d_Mesh_rebuildInstances);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Mesh).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Mesh";
g_typeCast[typeName] = "ax.Mesh";
return 1;
}
int lua_ax_3d_Skeleton3D_getBoneCount(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneCount'", nullptr);
return 0;
}
auto&& ret = cobj->getBoneCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneCount",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneCount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_getBoneByIndex(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
unsigned int arg0;
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByIndex");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'", nullptr);
return 0;
}
auto&& ret = cobj->getBoneByIndex(arg0);
object_to_luaval<ax::Bone3D>(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByIndex",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByIndex'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_getBoneByName(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Skeleton3D:getBoneByName");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneByName'", nullptr);
return 0;
}
auto&& ret = cobj->getBoneByName(arg0);
object_to_luaval<ax::Bone3D>(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneByName",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneByName'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_getRootCount(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootCount'", nullptr);
return 0;
}
auto&& ret = cobj->getRootCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootCount",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootCount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_getRootBone(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Skeleton3D:getRootBone");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getRootBone'", nullptr);
return 0;
}
auto&& ret = cobj->getRootBone(arg0);
object_to_luaval<ax::Bone3D>(tolua_S, "ax.Bone3D",(ax::Bone3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getRootBone",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getRootBone'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_getBoneIndex(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Bone3D* arg0;
ok &= luaval_to_object<ax::Bone3D>(tolua_S, 2, "ax.Bone3D",&arg0, "ax.Skeleton3D:getBoneIndex");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_getBoneIndex'", nullptr);
return 0;
}
auto&& ret = cobj->getBoneIndex(arg0);
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:getBoneIndex",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_getBoneIndex'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_updateBoneMatrix(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'", nullptr);
return 0;
}
cobj->updateBoneMatrix();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:updateBoneMatrix",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_updateBoneMatrix'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_removeAllBones(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_removeAllBones'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_removeAllBones'", nullptr);
return 0;
}
cobj->removeAllBones();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:removeAllBones",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_removeAllBones'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_addBone(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skeleton3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skeleton3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skeleton3D_addBone'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Bone3D* arg0;
ok &= luaval_to_object<ax::Bone3D>(tolua_S, 2, "ax.Bone3D",&arg0, "ax.Skeleton3D:addBone");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_addBone'", nullptr);
return 0;
}
cobj->addBone(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:addBone",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_addBone'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skeleton3D_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Skeleton3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skeleton3D_constructor'", nullptr);
return 0;
}
cobj = new ax::Skeleton3D();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Skeleton3D");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skeleton3D:Skeleton3D",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skeleton3D_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Skeleton3D_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Skeleton3D)");
return 0;
}
int lua_register_ax_3d_Skeleton3D(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Skeleton3D");
tolua_cclass(tolua_S,"Skeleton3D","ax.Skeleton3D","ax.Ref",nullptr);
tolua_beginmodule(tolua_S,"Skeleton3D");
tolua_function(tolua_S,"new",lua_ax_3d_Skeleton3D_constructor);
tolua_function(tolua_S,"getBoneCount",lua_ax_3d_Skeleton3D_getBoneCount);
tolua_function(tolua_S,"getBoneByIndex",lua_ax_3d_Skeleton3D_getBoneByIndex);
tolua_function(tolua_S,"getBoneByName",lua_ax_3d_Skeleton3D_getBoneByName);
tolua_function(tolua_S,"getRootCount",lua_ax_3d_Skeleton3D_getRootCount);
tolua_function(tolua_S,"getRootBone",lua_ax_3d_Skeleton3D_getRootBone);
tolua_function(tolua_S,"getBoneIndex",lua_ax_3d_Skeleton3D_getBoneIndex);
tolua_function(tolua_S,"updateBoneMatrix",lua_ax_3d_Skeleton3D_updateBoneMatrix);
tolua_function(tolua_S,"removeAllBones",lua_ax_3d_Skeleton3D_removeAllBones);
tolua_function(tolua_S,"addBone",lua_ax_3d_Skeleton3D_addBone);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Skeleton3D).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Skeleton3D";
g_typeCast[typeName] = "ax.Skeleton3D";
return 1;
}
int lua_ax_3d_Skybox_setTexture(lua_State* tolua_S)
{
int argc = 0;
ax::Skybox* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skybox*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skybox_setTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::TextureCube* arg0;
ok &= luaval_to_object<ax::TextureCube>(tolua_S, 2, "ax.TextureCube",&arg0, "ax.Skybox:setTexture");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_setTexture'", nullptr);
return 0;
}
cobj->setTexture(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:setTexture",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_setTexture'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skybox_reload(lua_State* tolua_S)
{
int argc = 0;
ax::Skybox* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skybox*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skybox_reload'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_reload'", nullptr);
return 0;
}
cobj->reload();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:reload",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_reload'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skybox_init(lua_State* tolua_S)
{
int argc = 0;
ax::Skybox* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Skybox*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Skybox_init'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 6)
{
std::string_view arg0;
std::string_view arg1;
std::string_view arg2;
std::string_view arg3;
std::string_view arg4;
std::string_view arg5;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Skybox:init");
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Skybox:init");
ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ax.Skybox:init");
ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ax.Skybox:init");
ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ax.Skybox:init");
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.Skybox:init");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_init'", nullptr);
return 0;
}
auto&& ret = cobj->init(arg0, arg1, arg2, arg3, arg4, arg5);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:init",argc, 6);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_init'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skybox_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Skybox",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 6)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Skybox:create");
if (!ok) { break; }
std::string_view arg1;
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.Skybox:create");
if (!ok) { break; }
std::string_view arg2;
ok &= luaval_to_std_string_view(tolua_S, 4,&arg2, "ax.Skybox:create");
if (!ok) { break; }
std::string_view arg3;
ok &= luaval_to_std_string_view(tolua_S, 5,&arg3, "ax.Skybox:create");
if (!ok) { break; }
std::string_view arg4;
ok &= luaval_to_std_string_view(tolua_S, 6,&arg4, "ax.Skybox:create");
if (!ok) { break; }
std::string_view arg5;
ok &= luaval_to_std_string_view(tolua_S, 7,&arg5, "ax.Skybox:create");
if (!ok) { break; }
ax::Skybox* ret = ax::Skybox::create(arg0, arg1, arg2, arg3, arg4, arg5);
object_to_luaval<ax::Skybox>(tolua_S, "ax.Skybox",(ax::Skybox*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 0)
{
ax::Skybox* ret = ax::Skybox::create();
object_to_luaval<ax::Skybox>(tolua_S, "ax.Skybox",(ax::Skybox*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.Skybox:create",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_create'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Skybox_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Skybox* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Skybox_constructor'", nullptr);
return 0;
}
cobj = new ax::Skybox();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Skybox");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Skybox:Skybox",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Skybox_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Skybox_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Skybox)");
return 0;
}
int lua_register_ax_3d_Skybox(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Skybox");
tolua_cclass(tolua_S,"Skybox","ax.Skybox","ax.Node",nullptr);
tolua_beginmodule(tolua_S,"Skybox");
tolua_function(tolua_S,"new",lua_ax_3d_Skybox_constructor);
tolua_function(tolua_S,"setTexture",lua_ax_3d_Skybox_setTexture);
tolua_function(tolua_S,"reload",lua_ax_3d_Skybox_reload);
tolua_function(tolua_S,"init",lua_ax_3d_Skybox_init);
tolua_function(tolua_S,"create", lua_ax_3d_Skybox_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Skybox).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Skybox";
g_typeCast[typeName] = "ax.Skybox";
return 1;
}
int lua_ax_3d_MeshMaterial_getMaterialType(lua_State* tolua_S)
{
int argc = 0;
ax::MeshMaterial* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshMaterial*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshMaterial_getMaterialType'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_getMaterialType'", nullptr);
return 0;
}
int ret = (int)cobj->getMaterialType();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshMaterial:getMaterialType",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_getMaterialType'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshMaterial_createBuiltInMaterial(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 0)
{
ax::MeshMaterial::createBuiltInMaterial();
lua_settop(tolua_S, 1);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 2)
{
ax::MeshMaterial::MaterialType arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshMaterial:createBuiltInMaterial");
if (!ok) { break; }
bool arg1;
ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.MeshMaterial:createBuiltInMaterial");
if (!ok) { break; }
ax::MeshMaterial* ret = ax::MeshMaterial::createBuiltInMaterial(arg0, arg1);
object_to_luaval<ax::MeshMaterial>(tolua_S, "ax.MeshMaterial",(ax::MeshMaterial*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.MeshMaterial:createBuiltInMaterial",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_createBuiltInMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshMaterial_createWithFilename(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshMaterial:createWithFilename");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_createWithFilename'", nullptr);
return 0;
}
auto&& ret = ax::MeshMaterial::createWithFilename(arg0);
object_to_luaval<ax::MeshMaterial>(tolua_S, "ax.MeshMaterial",(ax::MeshMaterial*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:createWithFilename",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_createWithFilename'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshMaterial_createWithProgramState(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::backend::ProgramState* arg0;
ok &= luaval_to_object<ax::backend::ProgramState>(tolua_S, 2, "axb.ProgramState",&arg0, "ax.MeshMaterial:createWithProgramState");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_createWithProgramState'", nullptr);
return 0;
}
auto&& ret = ax::MeshMaterial::createWithProgramState(arg0);
object_to_luaval<ax::MeshMaterial>(tolua_S, "ax.MeshMaterial",(ax::MeshMaterial*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:createWithProgramState",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_createWithProgramState'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshMaterial_releaseBuiltInMaterial(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'", nullptr);
return 0;
}
ax::MeshMaterial::releaseBuiltInMaterial();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseBuiltInMaterial",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseBuiltInMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshMaterial_releaseCachedMaterial(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshMaterial",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'", nullptr);
return 0;
}
ax::MeshMaterial::releaseCachedMaterial();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshMaterial:releaseCachedMaterial",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshMaterial_releaseCachedMaterial'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_MeshMaterial_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (MeshMaterial)");
return 0;
}
int lua_register_ax_3d_MeshMaterial(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.MeshMaterial");
tolua_cclass(tolua_S,"MeshMaterial","ax.MeshMaterial","ax.Material",nullptr);
tolua_beginmodule(tolua_S,"MeshMaterial");
tolua_function(tolua_S,"getMaterialType",lua_ax_3d_MeshMaterial_getMaterialType);
tolua_function(tolua_S,"createBuiltInMaterial", lua_ax_3d_MeshMaterial_createBuiltInMaterial);
tolua_function(tolua_S,"createWithFilename", lua_ax_3d_MeshMaterial_createWithFilename);
tolua_function(tolua_S,"createWithProgramState", lua_ax_3d_MeshMaterial_createWithProgramState);
tolua_function(tolua_S,"releaseBuiltInMaterial", lua_ax_3d_MeshMaterial_releaseBuiltInMaterial);
tolua_function(tolua_S,"releaseCachedMaterial", lua_ax_3d_MeshMaterial_releaseCachedMaterial);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::MeshMaterial).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.MeshMaterial";
g_typeCast[typeName] = "ax.MeshMaterial";
return 1;
}
int lua_ax_3d_MeshRenderer_setTexture(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setTexture'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 1) {
ax::Texture2D* arg0;
ok &= luaval_to_object<ax::Texture2D>(tolua_S, 2, "ax.Texture2D",&arg0, "ax.MeshRenderer:setTexture");
if (!ok) { break; }
cobj->setTexture(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 1) {
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:setTexture");
if (!ok) { break; }
cobj->setTexture(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setTexture",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setTexture'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMeshByIndex(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMeshByIndex");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshByIndex(arg0);
object_to_luaval<ax::Mesh>(tolua_S, "ax.Mesh",(ax::Mesh*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByIndex",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByIndex'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMeshByName(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getMeshByName");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshByName'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshByName(arg0);
object_to_luaval<ax::Mesh>(tolua_S, "ax.Mesh",(ax::Mesh*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshByName",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshByName'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMesh(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMesh'", nullptr);
return 0;
}
auto&& ret = cobj->getMesh();
object_to_luaval<ax::Mesh>(tolua_S, "ax.Mesh",(ax::Mesh*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMesh",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMesh'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMeshCount(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshCount'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshCount();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshCount",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshCount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getSkeleton(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getSkeleton'", nullptr);
return 0;
}
auto&& ret = cobj->getSkeleton();
object_to_luaval<ax::Skeleton3D>(tolua_S, "ax.Skeleton3D",(ax::Skeleton3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getSkeleton",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getSkeleton'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getAttachNode(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:getAttachNode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getAttachNode'", nullptr);
return 0;
}
auto&& ret = cobj->getAttachNode(arg0);
object_to_luaval<ax::AttachNode>(tolua_S, "ax.AttachNode",(ax::AttachNode*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getAttachNode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getAttachNode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_removeAttachNode(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:removeAttachNode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAttachNode'", nullptr);
return 0;
}
cobj->removeAttachNode(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAttachNode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAttachNode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_removeAllAttachNode(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'", nullptr);
return 0;
}
cobj->removeAllAttachNode();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:removeAllAttachNode",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_removeAllAttachNode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setBlendFunc(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::BlendFunc arg0;
ok &= luaval_to_blendfunc(tolua_S, 2, &arg0, "ax.MeshRenderer:setBlendFunc");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setBlendFunc'", nullptr);
return 0;
}
cobj->setBlendFunc(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setBlendFunc",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setBlendFunc'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getBlendFunc(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getBlendFunc'", nullptr);
return 0;
}
auto&& ret = cobj->getBlendFunc();
blendfunc_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getBlendFunc",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getBlendFunc'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setForceDepthWrite(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setForceDepthWrite");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'", nullptr);
return 0;
}
cobj->setForceDepthWrite(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setForceDepthWrite",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setForceDepthWrite'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_isForceDepthWrite(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'", nullptr);
return 0;
}
auto&& ret = cobj->isForceDepthWrite();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:isForceDepthWrite",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_isForceDepthWrite'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setCullFace(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::backend::CullMode arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:setCullFace");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFace'", nullptr);
return 0;
}
cobj->setCullFace(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFace",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFace'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setCullFaceEnabled(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setCullFaceEnabled");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'", nullptr);
return 0;
}
cobj->setCullFaceEnabled(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setCullFaceEnabled",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setCullFaceEnabled'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setLightMask(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
unsigned int arg0;
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.MeshRenderer:setLightMask");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setLightMask'", nullptr);
return 0;
}
cobj->setLightMask(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setLightMask",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setLightMask'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getLightMask(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getLightMask'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getLightMask'", nullptr);
return 0;
}
auto&& ret = cobj->getLightMask();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getLightMask",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getLightMask'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setWireframe(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setWireframe'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setWireframe");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setWireframe'", nullptr);
return 0;
}
cobj->setWireframe(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setWireframe",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setWireframe'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_isWireframe(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_isWireframe'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_isWireframe'", nullptr);
return 0;
}
auto&& ret = cobj->isWireframe();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:isWireframe",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_isWireframe'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setMaterial(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setMaterial'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 2) {
ax::Material* arg0;
ok &= luaval_to_object<ax::Material>(tolua_S, 2, "ax.Material",&arg0, "ax.MeshRenderer:setMaterial");
if (!ok) { break; }
int arg1;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.MeshRenderer:setMaterial");
if (!ok) { break; }
cobj->setMaterial(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 1) {
ax::Material* arg0;
ok &= luaval_to_object<ax::Material>(tolua_S, 2, "ax.Material",&arg0, "ax.MeshRenderer:setMaterial");
if (!ok) { break; }
cobj->setMaterial(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setMaterial",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMaterial(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr);
return 0;
}
auto&& ret = cobj->getMaterial();
object_to_luaval<ax::Material>(tolua_S, "ax.Material",(ax::Material*)ret);
return 1;
}
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:getMaterial");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMaterial'", nullptr);
return 0;
}
auto&& ret = cobj->getMaterial(arg0);
object_to_luaval<ax::Material>(tolua_S, "ax.Material",(ax::Material*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMaterial",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_getMeshes(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_getMeshes'", nullptr);
return 0;
}
auto&& ret = cobj->getMeshes();
ccvector_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:getMeshes",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_getMeshes'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_genMaterial(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_genMaterial'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_genMaterial'", nullptr);
return 0;
}
cobj->genMaterial();
lua_settop(tolua_S, 1);
return 1;
}
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:genMaterial");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_genMaterial'", nullptr);
return 0;
}
cobj->genMaterial(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:genMaterial",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_genMaterial'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_enableInstancing(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_enableInstancing'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
do{
if (argc == 1) {
ax::MeshMaterial* arg0;
ok &= luaval_to_object<ax::MeshMaterial>(tolua_S, 2, "ax.MeshMaterial",&arg0, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
cobj->enableInstancing(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 2) {
ax::MeshMaterial* arg0;
ok &= luaval_to_object<ax::MeshMaterial>(tolua_S, 2, "ax.MeshMaterial",&arg0, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
int arg1;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
cobj->enableInstancing(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 1) {
ax::MeshMaterial::InstanceMaterialType arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
cobj->enableInstancing(arg0);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
do{
if (argc == 2) {
ax::MeshMaterial::InstanceMaterialType arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
int arg1;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.MeshRenderer:enableInstancing");
if (!ok) { break; }
cobj->enableInstancing(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
}while(0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:enableInstancing",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_enableInstancing'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_disableInstancing(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_disableInstancing'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_disableInstancing'", nullptr);
return 0;
}
cobj->disableInstancing();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:disableInstancing",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_disableInstancing'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_setDynamicInstancing(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_setDynamicInstancing'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.MeshRenderer:setDynamicInstancing");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_setDynamicInstancing'", nullptr);
return 0;
}
cobj->setDynamicInstancing(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:setDynamicInstancing",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_setDynamicInstancing'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_addInstanceChild(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_addInstanceChild'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Node* arg0;
ok &= luaval_to_object<ax::Node>(tolua_S, 2, "ax.Node",&arg0, "ax.MeshRenderer:addInstanceChild");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_addInstanceChild'", nullptr);
return 0;
}
cobj->addInstanceChild(arg0);
lua_settop(tolua_S, 1);
return 1;
}
if (argc == 2)
{
ax::Node* arg0;
bool arg1;
ok &= luaval_to_object<ax::Node>(tolua_S, 2, "ax.Node",&arg0, "ax.MeshRenderer:addInstanceChild");
ok &= luaval_to_boolean(tolua_S, 3,&arg1, "ax.MeshRenderer:addInstanceChild");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_addInstanceChild'", nullptr);
return 0;
}
cobj->addInstanceChild(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:addInstanceChild",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_addInstanceChild'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_shrinkToFitInstances(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_shrinkToFitInstances'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_shrinkToFitInstances'", nullptr);
return 0;
}
cobj->shrinkToFitInstances();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:shrinkToFitInstances",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_shrinkToFitInstances'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_rebuildInstances(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRenderer* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRenderer*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRenderer_rebuildInstances'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRenderer_rebuildInstances'", nullptr);
return 0;
}
cobj->rebuildInstances();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRenderer:rebuildInstances",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_rebuildInstances'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRenderer_create(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshRenderer",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S)-1;
do
{
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:create");
if (!ok) { break; }
ax::MeshRenderer* ret = ax::MeshRenderer::create(arg0);
object_to_luaval<ax::MeshRenderer>(tolua_S, "ax.MeshRenderer",(ax::MeshRenderer*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 0)
{
ax::MeshRenderer* ret = ax::MeshRenderer::create();
object_to_luaval<ax::MeshRenderer>(tolua_S, "ax.MeshRenderer",(ax::MeshRenderer*)ret);
return 1;
}
} while (0);
ok = true;
do
{
if (argc == 2)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRenderer:create");
if (!ok) { break; }
std::string_view arg1;
ok &= luaval_to_std_string_view(tolua_S, 3,&arg1, "ax.MeshRenderer:create");
if (!ok) { break; }
ax::MeshRenderer* ret = ax::MeshRenderer::create(arg0, arg1);
object_to_luaval<ax::MeshRenderer>(tolua_S, "ax.MeshRenderer",(ax::MeshRenderer*)ret);
return 1;
}
} while (0);
ok = true;
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d", "ax.MeshRenderer:create",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRenderer_create'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_MeshRenderer_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (MeshRenderer)");
return 0;
}
int lua_register_ax_3d_MeshRenderer(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.MeshRenderer");
tolua_cclass(tolua_S,"MeshRenderer","ax.MeshRenderer","ax.Node",nullptr);
tolua_beginmodule(tolua_S,"MeshRenderer");
tolua_function(tolua_S,"setTexture",lua_ax_3d_MeshRenderer_setTexture);
tolua_function(tolua_S,"getMeshByIndex",lua_ax_3d_MeshRenderer_getMeshByIndex);
tolua_function(tolua_S,"getMeshByName",lua_ax_3d_MeshRenderer_getMeshByName);
tolua_function(tolua_S,"getMesh",lua_ax_3d_MeshRenderer_getMesh);
tolua_function(tolua_S,"getMeshCount",lua_ax_3d_MeshRenderer_getMeshCount);
tolua_function(tolua_S,"getSkeleton",lua_ax_3d_MeshRenderer_getSkeleton);
tolua_function(tolua_S,"getAttachNode",lua_ax_3d_MeshRenderer_getAttachNode);
tolua_function(tolua_S,"removeAttachNode",lua_ax_3d_MeshRenderer_removeAttachNode);
tolua_function(tolua_S,"removeAllAttachNode",lua_ax_3d_MeshRenderer_removeAllAttachNode);
tolua_function(tolua_S,"setBlendFunc",lua_ax_3d_MeshRenderer_setBlendFunc);
tolua_function(tolua_S,"getBlendFunc",lua_ax_3d_MeshRenderer_getBlendFunc);
tolua_function(tolua_S,"setForceDepthWrite",lua_ax_3d_MeshRenderer_setForceDepthWrite);
tolua_function(tolua_S,"isForceDepthWrite",lua_ax_3d_MeshRenderer_isForceDepthWrite);
tolua_function(tolua_S,"setCullFace",lua_ax_3d_MeshRenderer_setCullFace);
tolua_function(tolua_S,"setCullFaceEnabled",lua_ax_3d_MeshRenderer_setCullFaceEnabled);
tolua_function(tolua_S,"setLightMask",lua_ax_3d_MeshRenderer_setLightMask);
tolua_function(tolua_S,"getLightMask",lua_ax_3d_MeshRenderer_getLightMask);
tolua_function(tolua_S,"setWireframe",lua_ax_3d_MeshRenderer_setWireframe);
tolua_function(tolua_S,"isWireframe",lua_ax_3d_MeshRenderer_isWireframe);
tolua_function(tolua_S,"setMaterial",lua_ax_3d_MeshRenderer_setMaterial);
tolua_function(tolua_S,"getMaterial",lua_ax_3d_MeshRenderer_getMaterial);
tolua_function(tolua_S,"getMeshes",lua_ax_3d_MeshRenderer_getMeshes);
tolua_function(tolua_S,"genMaterial",lua_ax_3d_MeshRenderer_genMaterial);
tolua_function(tolua_S,"enableInstancing",lua_ax_3d_MeshRenderer_enableInstancing);
tolua_function(tolua_S,"disableInstancing",lua_ax_3d_MeshRenderer_disableInstancing);
tolua_function(tolua_S,"setDynamicInstancing",lua_ax_3d_MeshRenderer_setDynamicInstancing);
tolua_function(tolua_S,"addInstanceChild",lua_ax_3d_MeshRenderer_addInstanceChild);
tolua_function(tolua_S,"shrinkToFitInstances",lua_ax_3d_MeshRenderer_shrinkToFitInstances);
tolua_function(tolua_S,"rebuildInstances",lua_ax_3d_MeshRenderer_rebuildInstances);
tolua_function(tolua_S,"create", lua_ax_3d_MeshRenderer_create);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::MeshRenderer).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.MeshRenderer";
g_typeCast[typeName] = "ax.MeshRenderer";
return 1;
}
int lua_ax_3d_MeshRendererCache_removeMeshRenderData(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRendererCache* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRendererCache*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRendererCache_removeMeshRenderData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.MeshRendererCache:removeMeshRenderData");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_removeMeshRenderData'", nullptr);
return 0;
}
cobj->removeMeshRenderData(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRendererCache:removeMeshRenderData",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_removeMeshRenderData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRendererCache_removeAllMeshRenderData(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRendererCache* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::MeshRendererCache*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'", nullptr);
return 0;
}
cobj->removeAllMeshRenderData();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRendererCache:removeAllMeshRenderData",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_removeAllMeshRenderData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRendererCache_getInstance(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_getInstance'", nullptr);
return 0;
}
auto&& ret = ax::MeshRendererCache::getInstance();
object_to_luaval<ax::MeshRendererCache>(tolua_S, "ax.MeshRendererCache",(ax::MeshRendererCache*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshRendererCache:getInstance",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_getInstance'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRendererCache_destroyInstance(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.MeshRendererCache",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_destroyInstance'", nullptr);
return 0;
}
ax::MeshRendererCache::destroyInstance();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.MeshRendererCache:destroyInstance",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_destroyInstance'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_MeshRendererCache_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::MeshRendererCache* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_MeshRendererCache_constructor'", nullptr);
return 0;
}
cobj = new ax::MeshRendererCache();
tolua_pushusertype(tolua_S,(void*)cobj,"ax.MeshRendererCache");
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.MeshRendererCache:MeshRendererCache",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_MeshRendererCache_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_MeshRendererCache_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (MeshRendererCache)");
return 0;
}
int lua_register_ax_3d_MeshRendererCache(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.MeshRendererCache");
tolua_cclass(tolua_S,"MeshRendererCache","ax.MeshRendererCache","",nullptr);
tolua_beginmodule(tolua_S,"MeshRendererCache");
tolua_function(tolua_S,"new",lua_ax_3d_MeshRendererCache_constructor);
tolua_function(tolua_S,"removeMeshRenderData",lua_ax_3d_MeshRendererCache_removeMeshRenderData);
tolua_function(tolua_S,"removeAllMeshRenderData",lua_ax_3d_MeshRendererCache_removeAllMeshRenderData);
tolua_function(tolua_S,"getInstance", lua_ax_3d_MeshRendererCache_getInstance);
tolua_function(tolua_S,"destroyInstance", lua_ax_3d_MeshRendererCache_destroyInstance);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::MeshRendererCache).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.MeshRendererCache";
g_typeCast[typeName] = "ax.MeshRendererCache";
return 1;
}
int lua_ax_3d_Terrain_setLightMap(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setLightMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:setLightMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setLightMap'", nullptr);
return 0;
}
cobj->setLightMap(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setLightMap",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setLightMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setLightDir(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setLightDir'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Vec3 arg0;
ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Terrain:setLightDir");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setLightDir'", nullptr);
return 0;
}
cobj->setLightDir(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setLightDir",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setLightDir'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_initProperties(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initProperties'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initProperties'", nullptr);
return 0;
}
auto&& ret = cobj->initProperties();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initProperties",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initProperties'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_initHeightMap(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:initHeightMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initHeightMap'", nullptr);
return 0;
}
auto&& ret = cobj->initHeightMap(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initHeightMap",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initHeightMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_initTextures(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initTextures'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initTextures'", nullptr);
return 0;
}
auto&& ret = cobj->initTextures();
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initTextures",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initTextures'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getNormal(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getNormal'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
int arg0;
int arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getNormal");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getNormal");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getNormal'", nullptr);
return 0;
}
auto&& ret = cobj->getNormal(arg0, arg1);
vec3_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getNormal",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getNormal'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getImageHeight(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
int arg0;
int arg1;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:getImageHeight");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:getImageHeight");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getImageHeight'", nullptr);
return 0;
}
auto&& ret = cobj->getImageHeight(arg0, arg1);
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getImageHeight",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getImageHeight'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setDrawWire(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Terrain:setDrawWire");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDrawWire'", nullptr);
return 0;
}
cobj->setDrawWire(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDrawWire",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDrawWire'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setLODDistance(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setLODDistance'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 3)
{
double arg0;
double arg1;
double arg2;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Terrain:setLODDistance");
ok &= luaval_to_number(tolua_S, 3,&arg1, "ax.Terrain:setLODDistance");
ok &= luaval_to_number(tolua_S, 4,&arg2, "ax.Terrain:setLODDistance");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setLODDistance'", nullptr);
return 0;
}
cobj->setLODDistance(arg0, arg1, arg2);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setLODDistance",argc, 3);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setLODDistance'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setIsEnableFrustumCull(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setIsEnableFrustumCull'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
bool arg0;
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.Terrain:setIsEnableFrustumCull");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setIsEnableFrustumCull'", nullptr);
return 0;
}
cobj->setIsEnableFrustumCull(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setIsEnableFrustumCull",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setIsEnableFrustumCull'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setAlphaMap(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Texture2D* arg0;
ok &= luaval_to_object<ax::Texture2D>(tolua_S, 2, "ax.Texture2D",&arg0, "ax.Terrain:setAlphaMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setAlphaMap'", nullptr);
return 0;
}
cobj->setAlphaMap(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setAlphaMap",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setAlphaMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setDetailMap(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
unsigned int arg0;
ax::Terrain::DetailMap arg1;
ok &= luaval_to_uint32(tolua_S, 2,&arg0, "ax.Terrain:setDetailMap");
#pragma warning NO CONVERSION TO NATIVE FOR DetailMap
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setDetailMap'", nullptr);
return 0;
}
cobj->setDetailMap(arg0, arg1);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setDetailMap",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setDetailMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setMaxDetailMapAmount(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
int arg0;
ok &= luaval_to_int32(tolua_S, 2,(int *)&arg0, "ax.Terrain:setMaxDetailMapAmount");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'", nullptr);
return 0;
}
cobj->setMaxDetailMapAmount(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setMaxDetailMapAmount",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setMaxDetailMapAmount'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_convertToTerrainSpace(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Vec2 arg0;
ok &= luaval_to_vec2(tolua_S, 2, &arg0, "ax.Terrain:convertToTerrainSpace");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_convertToTerrainSpace'", nullptr);
return 0;
}
auto&& ret = cobj->convertToTerrainSpace(arg0);
vec2_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:convertToTerrainSpace",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_convertToTerrainSpace'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_resetHeightMap(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Terrain:resetHeightMap");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_resetHeightMap'", nullptr);
return 0;
}
cobj->resetHeightMap(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:resetHeightMap",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_resetHeightMap'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getMinHeight(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getMinHeight'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getMinHeight'", nullptr);
return 0;
}
auto&& ret = cobj->getMinHeight();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getMinHeight",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getMinHeight'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getMaxHeight(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getMaxHeight'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getMaxHeight'", nullptr);
return 0;
}
auto&& ret = cobj->getMaxHeight();
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getMaxHeight",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getMaxHeight'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_setSkirtHeightRatio(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
double arg0;
ok &= luaval_to_number(tolua_S, 2,&arg0, "ax.Terrain:setSkirtHeightRatio");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'", nullptr);
return 0;
}
cobj->setSkirtHeightRatio(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:setSkirtHeightRatio",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_setSkirtHeightRatio'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_reload(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_reload'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_reload'", nullptr);
return 0;
}
cobj->reload();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:reload",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_reload'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getTerrainSize(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getTerrainSize'", nullptr);
return 0;
}
auto&& ret = cobj->getTerrainSize();
vec2_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getTerrainSize",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getTerrainSize'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_getHeightData(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_getHeightData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_getHeightData'", nullptr);
return 0;
}
auto&& ret = cobj->getHeightData();
ccvector_float_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:getHeightData",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_getHeightData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_initWithTerrainData(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Terrain",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Terrain*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
ax::Terrain::TerrainData arg0;
ax::Terrain::CrackFixedType arg1;
#pragma warning NO CONVERSION TO NATIVE FOR TerrainData
ok = false;
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Terrain:initWithTerrainData");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_initWithTerrainData'", nullptr);
return 0;
}
auto&& ret = cobj->initWithTerrainData(arg0, arg1);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:initWithTerrainData",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_initWithTerrainData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Terrain_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Terrain* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Terrain_constructor'", nullptr);
return 0;
}
cobj = new ax::Terrain();
cobj->autorelease();
int ID = (int)cobj->_ID ;
int* luaID = &cobj->_luaID ;
toluafix_pushusertype_ccobject(tolua_S, ID, luaID, (void*)cobj,"ax.Terrain");
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Terrain:Terrain",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Terrain_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Terrain_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Terrain)");
return 0;
}
int lua_register_ax_3d_Terrain(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Terrain");
tolua_cclass(tolua_S,"Terrain","ax.Terrain","ax.Node",nullptr);
tolua_beginmodule(tolua_S,"Terrain");
tolua_function(tolua_S,"new",lua_ax_3d_Terrain_constructor);
tolua_function(tolua_S,"setLightMap",lua_ax_3d_Terrain_setLightMap);
tolua_function(tolua_S,"setLightDir",lua_ax_3d_Terrain_setLightDir);
tolua_function(tolua_S,"initProperties",lua_ax_3d_Terrain_initProperties);
tolua_function(tolua_S,"initHeightMap",lua_ax_3d_Terrain_initHeightMap);
tolua_function(tolua_S,"initTextures",lua_ax_3d_Terrain_initTextures);
tolua_function(tolua_S,"getNormal",lua_ax_3d_Terrain_getNormal);
tolua_function(tolua_S,"getImageHeight",lua_ax_3d_Terrain_getImageHeight);
tolua_function(tolua_S,"setDrawWire",lua_ax_3d_Terrain_setDrawWire);
tolua_function(tolua_S,"setLODDistance",lua_ax_3d_Terrain_setLODDistance);
tolua_function(tolua_S,"setIsEnableFrustumCull",lua_ax_3d_Terrain_setIsEnableFrustumCull);
tolua_function(tolua_S,"setAlphaMap",lua_ax_3d_Terrain_setAlphaMap);
tolua_function(tolua_S,"setDetailMap",lua_ax_3d_Terrain_setDetailMap);
tolua_function(tolua_S,"setMaxDetailMapAmount",lua_ax_3d_Terrain_setMaxDetailMapAmount);
tolua_function(tolua_S,"convertToTerrainSpace",lua_ax_3d_Terrain_convertToTerrainSpace);
tolua_function(tolua_S,"resetHeightMap",lua_ax_3d_Terrain_resetHeightMap);
tolua_function(tolua_S,"getMinHeight",lua_ax_3d_Terrain_getMinHeight);
tolua_function(tolua_S,"getMaxHeight",lua_ax_3d_Terrain_getMaxHeight);
tolua_function(tolua_S,"setSkirtHeightRatio",lua_ax_3d_Terrain_setSkirtHeightRatio);
tolua_function(tolua_S,"reload",lua_ax_3d_Terrain_reload);
tolua_function(tolua_S,"getTerrainSize",lua_ax_3d_Terrain_getTerrainSize);
tolua_function(tolua_S,"getHeightData",lua_ax_3d_Terrain_getHeightData);
tolua_function(tolua_S,"initWithTerrainData",lua_ax_3d_Terrain_initWithTerrainData);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Terrain).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Terrain";
g_typeCast[typeName] = "ax.Terrain";
return 1;
}
int lua_ax_3d_Bundle3D_clear(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_clear'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_clear'", nullptr);
return 0;
}
cobj->clear();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:clear",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_clear'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_load(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_load'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:load");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_load'", nullptr);
return 0;
}
auto&& ret = cobj->load(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:load",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_load'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_loadSkinData(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadSkinData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
std::string_view arg0;
ax::SkinData* arg1;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:loadSkinData");
#pragma warning NO CONVERSION TO NATIVE FOR SkinData*
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadSkinData'", nullptr);
return 0;
}
auto&& ret = cobj->loadSkinData(arg0, arg1);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadSkinData",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadSkinData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_loadAnimationData(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 2)
{
std::string_view arg0;
ax::Animation3DData* arg1;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:loadAnimationData");
#pragma warning NO CONVERSION TO NATIVE FOR Animation3DData*
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadAnimationData'", nullptr);
return 0;
}
auto&& ret = cobj->loadAnimationData(arg0, arg1);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadAnimationData",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadAnimationData'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_loadNodes(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadNodes'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::NodeDatas arg0;
#pragma warning NO CONVERSION TO NATIVE FOR NodeDatas
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadNodes'", nullptr);
return 0;
}
auto&& ret = cobj->loadNodes(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadNodes",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadNodes'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_loadMaterials(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertype(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Bundle3D*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::MaterialDatas arg0;
#pragma warning NO CONVERSION TO NATIVE FOR MaterialDatas
ok = false;
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_loadMaterials'", nullptr);
return 0;
}
auto&& ret = cobj->loadMaterials(arg0);
tolua_pushboolean(tolua_S,(bool)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:loadMaterials",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_loadMaterials'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_createBundle(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_createBundle'", nullptr);
return 0;
}
auto&& ret = ax::Bundle3D::createBundle();
object_to_luaval<ax::Bundle3D>(tolua_S, "ax.Bundle3D",(ax::Bundle3D*)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:createBundle",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_createBundle'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_destroyBundle(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
ax::Bundle3D* arg0;
ok &= luaval_to_object<ax::Bundle3D>(tolua_S, 2, "ax.Bundle3D",&arg0, "ax.Bundle3D:destroyBundle");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_destroyBundle'", nullptr);
return 0;
}
ax::Bundle3D::destroyBundle(arg0);
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:destroyBundle",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_destroyBundle'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_parseGLDataType(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 2)
{
std::string_view arg0;
int arg1;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:parseGLDataType");
ok &= luaval_to_int32(tolua_S, 3,(int *)&arg1, "ax.Bundle3D:parseGLDataType");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_parseGLDataType'", nullptr);
return 0;
}
int ret = (int)ax::Bundle3D::parseGLDataType(arg0, arg1);
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:parseGLDataType",argc, 2);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_parseGLDataType'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_parseSamplerAddressMode(lua_State* tolua_S)
{
int argc = 0;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
#if _AX_DEBUG >= 1
if (!tolua_isusertable(tolua_S,1,"ax.Bundle3D",0,&tolua_err)) goto tolua_lerror;
#endif
argc = lua_gettop(tolua_S) - 1;
if (argc == 1)
{
std::string_view arg0;
ok &= luaval_to_std_string_view(tolua_S, 2,&arg0, "ax.Bundle3D:parseSamplerAddressMode");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'", nullptr);
return 0;
}
int ret = (int)ax::Bundle3D::parseSamplerAddressMode(arg0);
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d\n ", "ax.Bundle3D:parseSamplerAddressMode",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_parseSamplerAddressMode'.",&tolua_err);
#endif
return 0;
}
int lua_ax_3d_Bundle3D_constructor(lua_State* tolua_S)
{
int argc = 0;
ax::Bundle3D* cobj = nullptr;
bool ok = true;
#if _AX_DEBUG >= 1
tolua_Error tolua_err;
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
{
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_3d_Bundle3D_constructor'", nullptr);
return 0;
}
cobj = new ax::Bundle3D();
tolua_pushusertype(tolua_S,(void*)cobj,"ax.Bundle3D");
tolua_register_gc(tolua_S,lua_gettop(tolua_S));
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Bundle3D:Bundle3D",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_error(tolua_S,"#ferror in function 'lua_ax_3d_Bundle3D_constructor'.",&tolua_err);
#endif
return 0;
}
static int lua_ax_3d_Bundle3D_finalize(lua_State* tolua_S)
{
printf("luabindings: finalizing LUA object (Bundle3D)");
return 0;
}
int lua_register_ax_3d_Bundle3D(lua_State* tolua_S)
{
tolua_usertype(tolua_S,"ax.Bundle3D");
tolua_cclass(tolua_S,"Bundle3D","ax.Bundle3D","",nullptr);
tolua_beginmodule(tolua_S,"Bundle3D");
tolua_function(tolua_S,"new",lua_ax_3d_Bundle3D_constructor);
tolua_function(tolua_S,"clear",lua_ax_3d_Bundle3D_clear);
tolua_function(tolua_S,"load",lua_ax_3d_Bundle3D_load);
tolua_function(tolua_S,"loadSkinData",lua_ax_3d_Bundle3D_loadSkinData);
tolua_function(tolua_S,"loadAnimationData",lua_ax_3d_Bundle3D_loadAnimationData);
tolua_function(tolua_S,"loadNodes",lua_ax_3d_Bundle3D_loadNodes);
tolua_function(tolua_S,"loadMaterials",lua_ax_3d_Bundle3D_loadMaterials);
tolua_function(tolua_S,"createBundle", lua_ax_3d_Bundle3D_createBundle);
tolua_function(tolua_S,"destroyBundle", lua_ax_3d_Bundle3D_destroyBundle);
tolua_function(tolua_S,"parseGLDataType", lua_ax_3d_Bundle3D_parseGLDataType);
tolua_function(tolua_S,"parseSamplerAddressMode", lua_ax_3d_Bundle3D_parseSamplerAddressMode);
tolua_endmodule(tolua_S);
auto typeName = typeid(ax::Bundle3D).name(); // rtti is literal storage
g_luaType[reinterpret_cast<uintptr_t>(typeName)] = "ax.Bundle3D";
g_typeCast[typeName] = "ax.Bundle3D";
return 1;
}
TOLUA_API int register_all_ax_3d(lua_State* tolua_S)
{
tolua_open(tolua_S);
tolua_module(tolua_S,"ax",0);
tolua_beginmodule(tolua_S,"ax");
lua_register_ax_3d_Animation3D(tolua_S);
lua_register_ax_3d_Animate3D(tolua_S);
lua_register_ax_3d_TextureCube(tolua_S);
lua_register_ax_3d_AttachNode(tolua_S);
lua_register_ax_3d_BillBoard(tolua_S);
lua_register_ax_3d_Mesh(tolua_S);
lua_register_ax_3d_Skeleton3D(tolua_S);
lua_register_ax_3d_Skybox(tolua_S);
lua_register_ax_3d_MeshMaterial(tolua_S);
lua_register_ax_3d_MeshRenderer(tolua_S);
lua_register_ax_3d_MeshRendererCache(tolua_S);
lua_register_ax_3d_Terrain(tolua_S);
lua_register_ax_3d_Bundle3D(tolua_S);
tolua_endmodule(tolua_S);
return 1;
}
#endif