| 332 | } |
| 333 | |
| 334 | static int textureLoad(const char* name, int srgb, void* ud) { |
| 335 | DORA_UNUSED_PARAM(srgb); |
| 336 | Texture2D* texture = SharedTextureCache.load(name); |
| 337 | if (texture) { |
| 338 | bgfx::setName(texture->getHandle(), name); |
| 339 | int texId = s_cast<int>(texture->getHandle().idx); |
| 340 | auto manager = r_cast<EffekManager*>(ud); |
| 341 | manager->addTexture(texId, texture); |
| 342 | return texId; |
| 343 | } |
| 344 | return -1; |
| 345 | } |
| 346 | |
| 347 | static void textureUnload(int texId, void* ud) { |
| 348 | auto manager = r_cast<EffekManager*>(ud); |
nothing calls this directly
no test coverage detected