register surface in texture raws to specific texpos
| 101 | |
| 102 | // register surface in texture raws to specific texpos |
| 103 | static 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 |
| 109 | static void delete_texture(long texpos) { |