MCPcopy Create free account
hub / github.com/DFHack/dfhack / createTileset

Method createTileset

library/modules/Textures.cpp:254–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

252}
253
254std::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
265void Textures::deleteHandle(TexposHandle handle) {
266 if (!enabler)

Callers

nothing calls this directly

Calls 2

create_textureFunction · 0.85
slice_tilesetFunction · 0.85

Tested by

no test coverage detected