@@ -77,6 +77,7 @@ int lua_register_ax_backend_VertexFormat(lua_State* tolua_S)
77
77
tolua_constant (tolua_S, " USHORT4" , 8 );
78
78
tolua_constant (tolua_S, " USHORT2" , 9 );
79
79
tolua_constant (tolua_S, " UBYTE4" , 10 );
80
+ tolua_constant (tolua_S, " MAT4" , 11 );
80
81
tolua_endmodule (tolua_S);
81
82
82
83
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)
979
980
object_to_luaval<ax::backend::VertexLayout>(tolua_S, " axb.VertexLayout" ,(ax::backend::VertexLayout*)ret);
980
981
return 1 ;
981
982
}
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
+ }
982
997
luaL_error (tolua_S, " %s has wrong number of arguments: %d, was expecting %d \n " , " axb.Program:getVertexLayout" ,argc, 0 );
983
998
return 0 ;
984
999
@@ -1582,6 +1597,20 @@ int lua_ax_backend_ProgramState_getMutableVertexLayout(lua_State* tolua_S)
1582
1597
object_to_luaval<ax::backend::VertexLayout>(tolua_S, " axb.VertexLayout" ,(ax::backend::VertexLayout*)ret);
1583
1598
return 1 ;
1584
1599
}
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
+ }
1585
1614
luaL_error (tolua_S, " %s has wrong number of arguments: %d, was expecting %d \n " , " axb.ProgramState:getMutableVertexLayout" ,argc, 0 );
1586
1615
return 0 ;
1587
1616
0 commit comments