| 2068 | } |
| 2069 | |
| 2070 | static int textures_getTexposByHandle(lua_State *state) |
| 2071 | { |
| 2072 | auto handle = luaL_checkunsigned(state, 1); |
| 2073 | auto texpos = Textures::getTexposByHandle(handle); |
| 2074 | if (texpos == -1) { |
| 2075 | lua_pushnil(state); |
| 2076 | } else { |
| 2077 | Lua::Push(state, texpos); |
| 2078 | } |
| 2079 | return 1; |
| 2080 | } |
| 2081 | |
| 2082 | static int textures_deleteHandle(lua_State *state) |
| 2083 | { |
nothing calls this directly
no test coverage detected