#include <ImageManager.h>
|
| static void | Load (MapKey k, Texture *tex, int x=0, int y=0, int w=0, int h=0) |
| | Creates an Image using the Texture and dimensions specified and associates it with Key k.
|
| |
| static Image * | Get (MapKey k) |
| | Gets the Image associated with the given MapKey.
|
| |
◆ MapKey
◆ StorageMap
◆ ImageManager() [1/2]
| ImageManager::ImageManager |
( |
| ) |
|
|
privatedefault |
◆ ImageManager() [2/2]
◆ ~ImageManager()
| ImageManager::~ImageManager |
( |
| ) |
|
|
private |
◆ Free()
| void ImageManager::Free |
( |
| ) |
|
|
staticprivate |
◆ Get()
| Image * ImageManager::Get |
( |
MapKey |
k | ) |
|
|
static |
Gets the Image associated with the given MapKey.
Haru, 3/8/2023.
- Parameters
-
- Returns
- A pointer to the Image.
◆ Instance()
◆ Load()
| void ImageManager::Load |
( |
MapKey |
k, |
|
|
Texture * |
tex, |
|
|
int |
x = 0, |
|
|
int |
y = 0, |
|
|
int |
w = 0, |
|
|
int |
h = 0 |
|
) |
| |
|
static |
Creates an Image using the Texture and dimensions specified and associates it with Key k.
Haru, 3/8/2023.
- Parameters
-
| k | A MapKey (string) to associate the Image with. |
| tex | The Texture from which to create the Image |
| x | (Optional) The desired top-left x coordinate. Default to 0. |
| y | (Optional) The desired top-left y coordinate. Default to 0. |
| w | (Optional) The desired width in pixels. Defaults to the width of the Texture. |
| h | (Optional) The desired height in pixels. Defaults to the height of the Texture. |
◆ operator=()
◆ ImageManagerAttorney
◆ m_images
◆ p_instance
The documentation for this class was generated from the following files: