| 252 | } |
| 253 | |
| 254 | std::vector<TexposHandle> Textures::createTileset(std::vector<uint32_t>& pixels, int texture_px_w, |
| 255 | int texture_px_h, int tile_px_w, int tile_px_h, |
| 256 | bool reserved) { |
| 257 | if (!enabler) |
| 258 | return std::vector<TexposHandle>{}; |
| 259 | |
| 260 | auto texture = create_texture(pixels, texture_px_w, texture_px_h); |
| 261 | auto handles = slice_tileset(texture, tile_px_w, tile_px_h, reserved); |
| 262 | return handles; |
| 263 | } |
| 264 | |
| 265 | void Textures::deleteHandle(TexposHandle handle) { |
| 266 | if (!enabler) |
nothing calls this directly
no test coverage detected