Skip to content

Commit b22cefb

Browse files
axmol-bothalx99
andauthored
Committing luabindings for commit 0656f87 (#2377)
Co-authored-by: halx99 <[email protected]>
1 parent 0656f87 commit b22cefb

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

extensions/scripting/lua-bindings/auto/axlua_base_auto.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20212,6 +20212,53 @@ int lua_ax_base_Image_initWithImageFile(lua_State* tolua_S)
2021220212

2021320213
return 0;
2021420214
}
20215+
int lua_ax_base_Image_flipRawData(lua_State* tolua_S)
20216+
{
20217+
int argc = 0;
20218+
ax::Image* cobj = nullptr;
20219+
bool ok = true;
20220+
20221+
#if _AX_DEBUG >= 1
20222+
tolua_Error tolua_err;
20223+
#endif
20224+
20225+
20226+
#if _AX_DEBUG >= 1
20227+
if (!tolua_isusertype(tolua_S,1,"ax.Image",0,&tolua_err)) goto tolua_lerror;
20228+
#endif
20229+
20230+
cobj = (ax::Image*)tolua_tousertype(tolua_S,1,0);
20231+
20232+
#if _AX_DEBUG >= 1
20233+
if (!cobj)
20234+
{
20235+
tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_Image_flipRawData'", nullptr);
20236+
return 0;
20237+
}
20238+
#endif
20239+
20240+
argc = lua_gettop(tolua_S)-1;
20241+
if (argc == 0)
20242+
{
20243+
if(!ok)
20244+
{
20245+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_Image_flipRawData'", nullptr);
20246+
return 0;
20247+
}
20248+
cobj->flipRawData();
20249+
lua_settop(tolua_S, 1);
20250+
return 1;
20251+
}
20252+
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.Image:flipRawData",argc, 0);
20253+
return 0;
20254+
20255+
#if _AX_DEBUG >= 1
20256+
tolua_lerror:
20257+
tolua_error(tolua_S,"#ferror in function 'lua_ax_base_Image_flipRawData'.",&tolua_err);
20258+
#endif
20259+
20260+
return 0;
20261+
}
2021520262
int lua_ax_base_Image_getFileType(lua_State* tolua_S)
2021620263
{
2021720264
int argc = 0;
@@ -21004,6 +21051,7 @@ int lua_register_ax_base_Image(lua_State* tolua_S)
2100421051
tolua_beginmodule(tolua_S,"Image");
2100521052
tolua_function(tolua_S,"new",lua_ax_base_Image_constructor);
2100621053
tolua_function(tolua_S,"initWithImageFile",lua_ax_base_Image_initWithImageFile);
21054+
tolua_function(tolua_S,"flipRawData",lua_ax_base_Image_flipRawData);
2100721055
tolua_function(tolua_S,"getFileType",lua_ax_base_Image_getFileType);
2100821056
tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Image_getPixelFormat);
2100921057
tolua_function(tolua_S,"getWidth",lua_ax_base_Image_getWidth);

0 commit comments

Comments
 (0)