#include <ImageManager.h>
|
static Image * | Get (std::string key) |
| Gets an image* using the given key. More...
|
|
static void | Load (const MapKey &key, Texture *tex) |
|
static void | Load (const MapKey &key, Texture *tex, Rect *r) |
|
◆ MapKey
Defines an alias representing the map key.
◆ StorageMap
Defines an alias representing the storage map.
◆ ImageManager() [1/3]
ImageManager::ImageManager |
( |
| ) |
|
|
private |
◆ ImageManager() [2/3]
◆ ImageManager() [3/3]
◆ ~ImageManager()
ImageManager::~ImageManager |
( |
| ) |
|
|
privatedefault |
◆ Delete()
static void ImageManager::Delete |
( |
| ) |
|
|
inlinestaticprivate |
Deletes this pointer instance. To only be called by the engine.
◆ Get()
static Image * ImageManager::Get |
( |
std::string |
key | ) |
|
|
inlinestatic |
Gets an image* using the given key.
- Parameters
-
- Returns
- Assertion if it fails, else a pointer to an Image.
◆ Instance()
◆ Load() [1/2]
static void ImageManager::Load |
( |
const MapKey & |
key, |
|
|
Texture * |
tex |
|
) |
| |
|
inlinestatic |
◆ Load() [2/2]
static void ImageManager::Load |
( |
const MapKey & |
key, |
|
|
Texture * |
tex, |
|
|
Rect * |
r |
|
) |
| |
|
inlinestatic |
◆ operator=() [1/2]
◆ operator=() [2/2]
Move assignment operator.
◆ privDelete()
void ImageManager::privDelete |
( |
| ) |
|
|
private |
Deletes this pointer instance. To only be called internally.
◆ privGet()
Image * ImageManager::privGet |
( |
std::string |
key | ) |
|
|
private |
Private get.
- Parameters
-
- Returns
- Assertion if it fails, else a pointer to an Image.
◆ privLoad() [1/2]
void ImageManager::privLoad |
( |
const MapKey & |
key, |
|
|
Texture * |
tex |
|
) |
| |
|
private |
Priv load.
- Parameters
-
| key | The key. |
[in,out] | tex | If non-null, the tex. |
◆ privLoad() [2/2]
void ImageManager::privLoad |
( |
const MapKey & |
key, |
|
|
Texture * |
tex, |
|
|
Rect * |
r4 |
|
) |
| |
|
private |
Priv load.
- Parameters
-
| key | The key. |
[in,out] | tex | If non-null, the tex. |
[in,out] | r4 | If non-null, the fourth Rect. |
◆ ImageManagerAttorney
Dictates access to ImageManager's private functions for engine usage.
◆ defaultPath
std::string ImageManager::defaultPath |
|
private |
The default path where images are stored.
◆ imageMap
A map containing images specified by a string key.
◆ ptrInstance
The documentation for this class was generated from the following files: