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

7750 lines
210 KiB
C++
Raw Normal View History

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