@@ -14268,6 +14268,56 @@ int lua_ax_base_GLView_renderScene(lua_State* tolua_S)
14268
14268
14269
14269
return 0;
14270
14270
}
14271
+ int lua_ax_base_GLView_setInteractive(lua_State* tolua_S)
14272
+ {
14273
+ int argc = 0;
14274
+ ax::GLView* cobj = nullptr;
14275
+ bool ok = true;
14276
+
14277
+ #if _AX_DEBUG >= 1
14278
+ tolua_Error tolua_err;
14279
+ #endif
14280
+
14281
+
14282
+ #if _AX_DEBUG >= 1
14283
+ if (!tolua_isusertype(tolua_S,1,"ax.GLView",0,&tolua_err)) goto tolua_lerror;
14284
+ #endif
14285
+
14286
+ cobj = (ax::GLView*)tolua_tousertype(tolua_S,1,0);
14287
+
14288
+ #if _AX_DEBUG >= 1
14289
+ if (!cobj)
14290
+ {
14291
+ tolua_error(tolua_S,"invalid 'cobj' in function 'lua_ax_base_GLView_setInteractive'", nullptr);
14292
+ return 0;
14293
+ }
14294
+ #endif
14295
+
14296
+ argc = lua_gettop(tolua_S)-1;
14297
+ if (argc == 1)
14298
+ {
14299
+ bool arg0;
14300
+
14301
+ ok &= luaval_to_boolean(tolua_S, 2,&arg0, "ax.GLView:setInteractive");
14302
+ if(!ok)
14303
+ {
14304
+ tolua_error(tolua_S,"invalid arguments in function 'lua_ax_base_GLView_setInteractive'", nullptr);
14305
+ return 0;
14306
+ }
14307
+ cobj->setInteractive(arg0);
14308
+ lua_settop(tolua_S, 1);
14309
+ return 1;
14310
+ }
14311
+ luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "ax.GLView:setInteractive",argc, 1);
14312
+ return 0;
14313
+
14314
+ #if _AX_DEBUG >= 1
14315
+ tolua_lerror:
14316
+ tolua_error(tolua_S,"#ferror in function 'lua_ax_base_GLView_setInteractive'.",&tolua_err);
14317
+ #endif
14318
+
14319
+ return 0;
14320
+ }
14271
14321
int lua_ax_base_GLView_setGLContextAttrs(lua_State* tolua_S)
14272
14322
{
14273
14323
int argc = 0;
@@ -14385,6 +14435,7 @@ int lua_register_ax_base_GLView(lua_State* tolua_S)
14385
14435
tolua_function(tolua_S,"getScaleY",lua_ax_base_GLView_getScaleY);
14386
14436
tolua_function(tolua_S,"getResolutionPolicy",lua_ax_base_GLView_getResolutionPolicy);
14387
14437
tolua_function(tolua_S,"renderScene",lua_ax_base_GLView_renderScene);
14438
+ tolua_function(tolua_S,"setInteractive",lua_ax_base_GLView_setInteractive);
14388
14439
tolua_function(tolua_S,"setGLContextAttrs", lua_ax_base_GLView_setGLContextAttrs);
14389
14440
tolua_function(tolua_S,"getGLContextAttrs", lua_ax_base_GLView_getGLContextAttrs);
14390
14441
tolua_endmodule(tolua_S);
0 commit comments