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

Method createTile

library/modules/Textures.cpp:244–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242}
243
244TexposHandle Textures::createTile(std::vector<uint32_t>& pixels, int tile_px_w, int tile_px_h,
245 bool reserved) {
246 if (!enabler)
247 return 0;
248
249 auto texture = create_texture(pixels, tile_px_w, tile_px_h);
250 auto handle = Textures::loadTexture(texture, reserved);
251 return handle;
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,

Callers

nothing calls this directly

Calls 1

create_textureFunction · 0.85

Tested by

no test coverage detected