Committing genbindings changes

This commit is contained in:
halx99 2022-12-29 09:01:26 +00:00 committed by GitHub Actions
parent eb5ec6047c
commit c149cb6c79
2 changed files with 81 additions and 130 deletions

View File

@ -88457,53 +88457,6 @@ int lua_ax_base_Camera_getViewProjectionMatrix(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_applyViewport(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* 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.Camera",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyViewport'", 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_base_Camera_applyViewport'", nullptr);
return 0;
}
cobj->applyViewport();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyViewport",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyViewport'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Camera_setBackgroundBrush(lua_State* tolua_S)
{
int argc = 0;
@ -88906,7 +88859,7 @@ int lua_ax_base_Camera_isBrushValid(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_getDepthInView(lua_State* tolua_S)
int lua_ax_base_Camera_applyViewport(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* cobj = nullptr;
@ -88926,32 +88879,29 @@ int lua_ax_base_Camera_getDepthInView(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepthInView'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_applyViewport'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
if (argc == 0)
{
ax::Mat4 arg0;
ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Camera:getDepthInView");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepthInView'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_applyViewport'", nullptr);
return 0;
}
auto&& ret = cobj->getDepthInView(arg0);
tolua_pushnumber(tolua_S,(lua_Number)ret);
cobj->applyViewport();
lua_settop(tolua_S, 1);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepthInView",argc, 1);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:applyViewport",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepthInView'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_applyViewport'.",&tolua_err);
#endif
return 0;
@ -89294,53 +89244,6 @@ int lua_ax_base_Camera_getCameraFlag(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_getType(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* 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.Camera",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getType'", 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_base_Camera_getType'", nullptr);
return 0;
}
int ret = (int)cobj->getType();
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.Camera:getType",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getType'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Camera_setZoom(lua_State* tolua_S)
{
int argc = 0;
@ -89497,7 +89400,7 @@ int lua_ax_base_Camera_getRenderOrder(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_projectGL(lua_State* tolua_S)
int lua_ax_base_Camera_getFOV(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* cobj = nullptr;
@ -89517,32 +89420,29 @@ int lua_ax_base_Camera_projectGL(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_projectGL'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFOV'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
if (argc == 0)
{
ax::Vec3 arg0;
ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:projectGL");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_projectGL'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFOV'", nullptr);
return 0;
}
auto&& ret = cobj->projectGL(arg0);
vec2_to_luaval(tolua_S, ret);
auto&& ret = cobj->getFOV();
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.Camera:projectGL",argc, 1);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFOV",argc, 0);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_projectGL'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFOV'.",&tolua_err);
#endif
return 0;
@ -89697,7 +89597,7 @@ int lua_ax_base_Camera_setScene(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_getFOV(lua_State* tolua_S)
int lua_ax_base_Camera_projectGL(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* cobj = nullptr;
@ -89717,29 +89617,32 @@ int lua_ax_base_Camera_getFOV(lua_State* tolua_S)
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getFOV'", nullptr);
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_projectGL'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 0)
if (argc == 1)
{
ax::Vec3 arg0;
ok &= luaval_to_vec3(tolua_S, 2, &arg0, "ax.Camera:projectGL");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getFOV'", nullptr);
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_projectGL'", nullptr);
return 0;
}
auto&& ret = cobj->getFOV();
tolua_pushnumber(tolua_S,(lua_Number)ret);
auto&& ret = cobj->projectGL(arg0);
vec2_to_luaval(tolua_S, ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getFOV",argc, 0);
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:projectGL",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getFOV'.",&tolua_err);
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_projectGL'.",&tolua_err);
#endif
return 0;
@ -89938,6 +89841,56 @@ int lua_ax_base_Camera_setCameraFlag(lua_State* tolua_S)
return 0;
}
int lua_ax_base_Camera_getDepthInView(lua_State* tolua_S)
{
int argc = 0;
ax::Camera* 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.Camera",0,&tolua_err)) goto tolua_lerror;
#endif
cobj = (ax::Camera*)tolua_tousertype(tolua_S,1,0);
#if _AX_DEBUG >= 1
if (!cobj)
{
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Camera_getDepthInView'", nullptr);
return 0;
}
#endif
argc = lua_gettop(tolua_S)-1;
if (argc == 1)
{
ax::Mat4 arg0;
ok &= luaval_to_mat4(tolua_S, 2, &arg0, "ax.Camera:getDepthInView");
if(!ok)
{
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Camera_getDepthInView'", nullptr);
return 0;
}
auto&& ret = cobj->getDepthInView(arg0);
tolua_pushnumber(tolua_S,(lua_Number)ret);
return 1;
}
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Camera:getDepthInView",argc, 1);
return 0;
#if _AX_DEBUG >= 1
tolua_lerror:
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Camera_getDepthInView'.",&tolua_err);
#endif
return 0;
}
int lua_ax_base_Camera_getFarPlane(lua_State* tolua_S)
{
int argc = 0;
@ -90400,7 +90353,6 @@ int lua_register_ax_base_Camera(lua_State* tolua_S)
tolua_function(tolua_S,"new",lua_ax_base_Camera_constructor);
tolua_function(tolua_S,"getDepth",lua_ax_base_Camera_getDepth);
tolua_function(tolua_S,"getViewProjectionMatrix",lua_ax_base_Camera_getViewProjectionMatrix);
tolua_function(tolua_S,"applyViewport",lua_ax_base_Camera_applyViewport);
tolua_function(tolua_S,"setBackgroundBrush",lua_ax_base_Camera_setBackgroundBrush);
tolua_function(tolua_S,"getZoom",lua_ax_base_Camera_getZoom);
tolua_function(tolua_S,"lookAt",lua_ax_base_Camera_lookAt);
@ -90409,7 +90361,7 @@ int lua_register_ax_base_Camera(lua_State* tolua_S)
tolua_function(tolua_S,"setFarPlane",lua_ax_base_Camera_setFarPlane);
tolua_function(tolua_S,"getProjectionMatrix",lua_ax_base_Camera_getProjectionMatrix);
tolua_function(tolua_S,"isBrushValid",lua_ax_base_Camera_isBrushValid);
tolua_function(tolua_S,"getDepthInView",lua_ax_base_Camera_getDepthInView);
tolua_function(tolua_S,"applyViewport",lua_ax_base_Camera_applyViewport);
tolua_function(tolua_S,"clearBackground",lua_ax_base_Camera_clearBackground);
tolua_function(tolua_S,"setAdditionalProjection",lua_ax_base_Camera_setAdditionalProjection);
tolua_function(tolua_S,"initDefault",lua_ax_base_Camera_initDefault);
@ -90417,19 +90369,19 @@ int lua_register_ax_base_Camera(lua_State* tolua_S)
tolua_function(tolua_S,"applyZoom",lua_ax_base_Camera_applyZoom);
tolua_function(tolua_S,"setFOV",lua_ax_base_Camera_setFOV);
tolua_function(tolua_S,"getCameraFlag",lua_ax_base_Camera_getCameraFlag);
tolua_function(tolua_S,"getType",lua_ax_base_Camera_getType);
tolua_function(tolua_S,"setZoom",lua_ax_base_Camera_setZoom);
tolua_function(tolua_S,"initOrthographic",lua_ax_base_Camera_initOrthographic);
tolua_function(tolua_S,"getRenderOrder",lua_ax_base_Camera_getRenderOrder);
tolua_function(tolua_S,"projectGL",lua_ax_base_Camera_projectGL);
tolua_function(tolua_S,"getFOV",lua_ax_base_Camera_getFOV);
tolua_function(tolua_S,"isVisibleInFrustum",lua_ax_base_Camera_isVisibleInFrustum);
tolua_function(tolua_S,"setDepth",lua_ax_base_Camera_setDepth);
tolua_function(tolua_S,"setScene",lua_ax_base_Camera_setScene);
tolua_function(tolua_S,"getFOV",lua_ax_base_Camera_getFOV);
tolua_function(tolua_S,"projectGL",lua_ax_base_Camera_projectGL);
tolua_function(tolua_S,"getViewMatrix",lua_ax_base_Camera_getViewMatrix);
tolua_function(tolua_S,"getNearPlane",lua_ax_base_Camera_getNearPlane);
tolua_function(tolua_S,"project",lua_ax_base_Camera_project);
tolua_function(tolua_S,"setCameraFlag",lua_ax_base_Camera_setCameraFlag);
tolua_function(tolua_S,"getDepthInView",lua_ax_base_Camera_getDepthInView);
tolua_function(tolua_S,"getFarPlane",lua_ax_base_Camera_getFarPlane);
tolua_function(tolua_S,"isViewProjectionUpdated",lua_ax_base_Camera_isViewProjectionUpdated);
tolua_function(tolua_S,"initPerspective",lua_ax_base_Camera_initPerspective);

View File

@ -2409,7 +2409,6 @@ int register_all_ax_base(lua_State* tolua_S);
#endif // __ax_base_h__