| 2057 | /***** Textures module *****/ |
| 2058 | |
| 2059 | static int textures_loadTileset(lua_State *state) |
| 2060 | { |
| 2061 | string file = luaL_checkstring(state, 1); |
| 2062 | auto tile_w = luaL_checkint(state, 2); |
| 2063 | auto tile_h = luaL_checkint(state, 3); |
| 2064 | bool reserved = lua_isboolean(state, 4) ? lua_toboolean(state, 4) : false; |
| 2065 | auto handles = Textures::loadTileset(file, tile_w, tile_h, reserved); |
| 2066 | Lua::PushVector(state, handles); |
| 2067 | return 1; |
| 2068 | } |
| 2069 | |
| 2070 | static int textures_getTexposByHandle(lua_State *state) |
| 2071 | { |
nothing calls this directly
no test coverage detected