@@ -20212,6 +20212,53 @@ int lua_ax_base_Image_initWithImageFile(lua_State* tolua_S)
20212
20212
20213
20213
return 0;
20214
20214
}
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
+ }
20215
20262
int lua_ax_base_Image_getFileType(lua_State* tolua_S)
20216
20263
{
20217
20264
int argc = 0;
@@ -21004,6 +21051,7 @@ int lua_register_ax_base_Image(lua_State* tolua_S)
21004
21051
tolua_beginmodule(tolua_S,"Image");
21005
21052
tolua_function(tolua_S,"new",lua_ax_base_Image_constructor);
21006
21053
tolua_function(tolua_S,"initWithImageFile",lua_ax_base_Image_initWithImageFile);
21054
+ tolua_function(tolua_S,"flipRawData",lua_ax_base_Image_flipRawData);
21007
21055
tolua_function(tolua_S,"getFileType",lua_ax_base_Image_getFileType);
21008
21056
tolua_function(tolua_S,"getPixelFormat",lua_ax_base_Image_getPixelFormat);
21009
21057
tolua_function(tolua_S,"getWidth",lua_ax_base_Image_getWidth);
0 commit comments