|
Monad Engine da02fba2
> Undercity Codex_
|
2D texture resource and a path-keyed cache (TextureManager). More...
Include dependency graph for Texture.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Classes | |
| class | mnd::Texture |
| 2D OpenGL texture object wrapping a GL_TEXTURE_2D handle. More... | |
| class | mnd::TextureManager |
| Path-keyed cache that prevents the same image from being uploaded twice. More... | |
Namespaces | |
| namespace | mnd |
2D texture resource and a path-keyed cache (TextureManager).
Prefer TextureManager::GetOrLoadTexture() over Texture::Load() directly — the manager returns the same shared_ptr for repeated requests to the same path, avoiding redundant GPU uploads.
Textures are uploaded to the GPU in Texture::Init() using stb_image for decoding. The GL texture object is deleted in the destructor.
Definition in file Texture.h.