|
WoW Model Viewer
Your premiere tool for viewing, equipping and animating World of Warcraft models.
|
Manages OpenGL texture lifetimes with reference-counted caching. More...
#include <TextureManager.h>
Public Member Functions | |
| virtual GLuint | add (GameFile *) |
| void | doDelete (GLuint id) |
Public Member Functions inherited from Manager< GLuint > | |
| Manager ()=default | |
| ~Manager () | |
| virtual void | del (GLuint id) |
| void | delbyname (const std::string &name) |
| bool | has (const std::string &name) |
| GLuint | get (const std::string &name) |
| std::string | get (GLuint id) |
| void | clear () |
| void | dump () |
Additional Inherited Members | |
Public Attributes inherited from Manager< GLuint > | |
| std::map< std::string, GLuint > | names |
| std::map< GLuint, ManagedItem * > | items |
Protected Member Functions inherited from Manager< GLuint > | |
| void | do_add (const std::string &name, GLuint id, ManagedItem *item) |
Manages OpenGL texture lifetimes with reference-counted caching.
Textures are loaded from GameFile sources and cached by name. Duplicate requests return the existing GL texture ID instead of re-uploading.
Definition at line 14 of file TextureManager.h.
|
virtual |
Implements Manager< GLuint >.
Definition at line 9 of file TextureManager.cpp.
|
virtual |
Reimplemented from Manager< GLuint >.
Definition at line 43 of file TextureManager.cpp.