Skip to content

Commit 9732095

Browse files
axmol-bothalx99
andauthored
Committing luabindings for commit fc0e527 (#2471)
Co-authored-by: halx99 <[email protected]>
1 parent fc0e527 commit 9732095

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14268,6 +14268,56 @@ int lua_ax_base_GLView_renderScene(lua_State* tolua_S)
1426814268

1426914269
return 0;
1427014270
}
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+
}
1427114321
int lua_ax_base_GLView_setGLContextAttrs(lua_State* tolua_S)
1427214322
{
1427314323
int argc = 0;
@@ -14385,6 +14435,7 @@ int lua_register_ax_base_GLView(lua_State* tolua_S)
1438514435
tolua_function(tolua_S,"getScaleY",lua_ax_base_GLView_getScaleY);
1438614436
tolua_function(tolua_S,"getResolutionPolicy",lua_ax_base_GLView_getResolutionPolicy);
1438714437
tolua_function(tolua_S,"renderScene",lua_ax_base_GLView_renderScene);
14438+
tolua_function(tolua_S,"setInteractive",lua_ax_base_GLView_setInteractive);
1438814439
tolua_function(tolua_S,"setGLContextAttrs", lua_ax_base_GLView_setGLContextAttrs);
1438914440
tolua_function(tolua_S,"getGLContextAttrs", lua_ax_base_GLView_getGLContextAttrs);
1439014441
tolua_endmodule(tolua_S);

0 commit comments

Comments
 (0)