bool tgui::TextureManager::copyTexture |
( |
const Texture & |
textureToCopy, |
|
|
Texture & |
newTexture |
|
) |
| |
Share the image with another texture.
- Parameters
-
textureToCopy | The original texture. |
newTexture | The texture that will get the same image as the texture that is being copied |
bool tgui::TextureManager::getTexture |
( |
const std::string & |
filename, |
|
|
Texture & |
texture, |
|
|
const sf::IntRect & |
rect = sf::IntRect(0, 0, 0, 0) |
|
) |
| |
Loads a texture.
- Parameters
-
filename | Filename of the image to load. |
texture | The texture object to store the loaded image. |
rect | Load only part of the image. Don't pass this parameter if you want to load the full image. |
The second time you call this function with the same filename, the previously loaded image will be reused.
void tgui::TextureManager::removeTexture |
( |
Texture & |
textureToRemove | ) |
|
Removes the texture.
- Parameters
-
textureToRemove | The texture that should be removed. |
When no other texture is using the same image then the image will be removed from memory.
The documentation for this class was generated from the following file: