register surface in texture raws, get a texpos
| 93 | |
| 94 | // register surface in texture raws, get a texpos |
| 95 | static long add_texture(SDL_Surface* surface) { |
| 96 | std::lock_guard<std::mutex> lg_add_texture(g_adding_mutex); |
| 97 | auto texpos = enabler->textures.raws.size(); |
| 98 | enabler->textures.raws.push_back(surface); |
| 99 | return texpos; |
| 100 | } |
| 101 | |
| 102 | // register surface in texture raws to specific texpos |
| 103 | static void insert_texture(SDL_Surface* surface, long texpos) { |
no test coverage detected