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

Function insert_texture

library/modules/Textures.cpp:103–106  ·  view source on GitHub ↗

register surface in texture raws to specific texpos

Source from the content-addressed store, hash-verified

101
102// register surface in texture raws to specific texpos
103static void insert_texture(SDL_Surface* surface, long texpos) {
104 std::lock_guard<std::mutex> lg_add_texture(g_adding_mutex);
105 enabler->textures.raws[texpos] = surface;
106}
107
108// delete surface from texture raws
109static void delete_texture(long texpos) {

Callers 1

loadTextureMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected