#include <TextureManager.h>
|
static void | Load (MapKey k, const char *path) |
| Loads a Texture from path and associates it with Key k.
|
|
static void | Load (MapKey k, unsigned char r, unsigned char g, unsigned char b, unsigned char alpha=255) |
| Creates a single-pixel texture of the color specified and associates it with Key k.
|
|
static Texture * | Get (MapKey k) |
| Gets the Texture associated with the given MapKey.
|
|
|
std::unordered_map< std::string, Texture * > | m_images |
|
◆ MapKey
◆ StorageMap
◆ TextureManager() [1/2]
TextureManager::TextureManager |
( |
| ) |
|
|
privatedefault |
◆ TextureManager() [2/2]
◆ ~TextureManager()
TextureManager::~TextureManager |
( |
| ) |
|
|
private |
◆ Free()
void TextureManager::Free |
( |
| ) |
|
|
staticprivate |
◆ Get()
Texture * TextureManager::Get |
( |
MapKey |
k | ) |
|
|
static |
Gets the Texture associated with the given MapKey.
Haru, 3/8/2023.
- Parameters
-
- Returns
- A pointer to the Texture.
◆ Instance()
◆ Load() [1/2]
void TextureManager::Load |
( |
MapKey |
k, |
|
|
const char * |
path |
|
) |
| |
|
static |
Loads a Texture from path and associates it with Key k.
Haru, 3/8/2023.
- Parameters
-
k | A MapKey (string) to associate the texture with. |
path | Pathname of the file. |
◆ Load() [2/2]
void TextureManager::Load |
( |
MapKey |
k, |
|
|
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b, |
|
|
unsigned char |
alpha = 255 |
|
) |
| |
|
static |
Creates a single-pixel texture of the color specified and associates it with Key k.
Haru, 3/8/2023.
- Parameters
-
k | A MapKey (string) to associate the texture with. |
r | Red component of the color. - Parameters
-
g | Green component of the color. - Parameters
-
b | Blue component of the color. - Parameters
-
alpha | Alpha component of the color. |
|
|
|
◆ operator=()
◆ TextureManagerAttorney
◆ m_images
std::unordered_map<std::string, Texture*> TextureManager::m_images |
|
private |
◆ p_instance
The documentation for this class was generated from the following files: