#include <definitions.hpp>
Stores an image, its path, its width and its size.
Example usage:
Definition definitions.hpp:154
Texture()
Definition definitions.hpp:156
Properties and usage
You can set the TextureScaling ["TextureScaling"] of the texture:
You can also define the size of the rendered texture on screen!
int width
Definition definitions.hpp:202
int height
Definition definitions.hpp:203
◆ Texture() [1/4]
◆ Texture() [2/4]
◆ ~Texture()
◆ Texture() [3/4]
| Texture::Texture |
( |
const Texture & |
| ) |
|
|
delete |
◆ Texture() [4/4]
| Texture::Texture |
( |
Texture && |
other | ) |
|
|
inlinenoexcept |
◆ initialize()
| void Texture::initialize |
( |
bool |
set = true | ) |
|
◆ load()
template<class Archive >
| void Texture::load |
( |
Archive & |
ar | ) |
|
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ save()
template<class Archive >
| void Texture::save |
( |
Archive & |
ar | ) |
const |
|
inline |
◆ setWindow()
| void Texture::setWindow |
( |
std::shared_ptr< Window > |
window | ) |
|
|
inline |
◆ handle
| SDL_Texture* Texture::handle |
◆ height
◆ path
| std::string Texture::path |
◆ textureHeight
| int Texture::textureHeight |
◆ textureWidth
| int Texture::textureWidth |
◆ width
The documentation for this class was generated from the following files: