Skip to content

Commit a7020da

Browse files
committed
Update lua bindings
1 parent c9c53bd commit a7020da

File tree

8 files changed

+11328
-24360
lines changed

8 files changed

+11328
-24360
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ int lua_register_ax_backend_VertexFormat(lua_State* tolua_S)
7777
tolua_constant(tolua_S, "USHORT4", 8);
7878
tolua_constant(tolua_S, "USHORT2", 9);
7979
tolua_constant(tolua_S, "UBYTE4", 10);
80+
tolua_constant(tolua_S, "MAT4", 11);
8081
tolua_endmodule(tolua_S);
8182

8283
auto typeName = typeid(ax::backend::VertexFormat).name(); // rtti is literal storage
@@ -979,6 +980,20 @@ int lua_ax_backend_Program_getVertexLayout(lua_State* tolua_S)
979980
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
980981
return 1;
981982
}
983+
if (argc == 1)
984+
{
985+
bool arg0;
986+
987+
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axb.Program:getVertexLayout");
988+
if(!ok)
989+
{
990+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_Program_getVertexLayout'", nullptr);
991+
return 0;
992+
}
993+
auto&& ret = cobj->getVertexLayout(arg0);
994+
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
995+
return 1;
996+
}
982997
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.Program:getVertexLayout",argc, 0);
983998
return 0;
984999

@@ -1582,6 +1597,20 @@ int lua_ax_backend_ProgramState_getMutableVertexLayout(lua_State* tolua_S)
15821597
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
15831598
return 1;
15841599
}
1600+
if (argc == 1)
1601+
{
1602+
bool arg0;
1603+
1604+
ok &= luaval_to_boolean(tolua_S, 2,&arg0, "axb.ProgramState:getMutableVertexLayout");
1605+
if(!ok)
1606+
{
1607+
tolua_error(tolua_S,"invalid arguments in function 'lua_ax_backend_ProgramState_getMutableVertexLayout'", nullptr);
1608+
return 0;
1609+
}
1610+
auto&& ret = cobj->getMutableVertexLayout(arg0);
1611+
object_to_luaval<ax::backend::VertexLayout>(tolua_S, "axb.VertexLayout",(ax::backend::VertexLayout*)ret);
1612+
return 1;
1613+
}
15851614
luaL_error(tolua_S, "%s has wrong number of arguments: %d, was expecting %d \n", "axb.ProgramState:getMutableVertexLayout",argc, 0);
15861615
return 0;
15871616

0 commit comments

Comments
 (0)