|
| TextureData ()=default |
| Default constructor. More...
|
|
| TextureData (const TextureData &)=delete |
| Deleted copy constructor.
|
|
TextureData & | operator= (const TextureData &)=delete |
| Deleted const copy constructor.
|
|
| TextureData (Renderer &renderer, SDL_PixelFormatEnum format, SDL_TextureAccess access, int width, int height) |
| Constructor More...
|
|
| TextureData (Renderer &renderer, Size size) |
| Constructor. More...
|
|
| TextureData (Texture &&texture) noexcept |
| Move constructor. More...
|
|
| TextureData (SDL_Texture *texture) noexcept |
| Construct a new TextureData from an SDL_Texture pointer. More...
|
|
| TextureData (TextureData &&other) noexcept=default |
| Move constructor. More...
|
|
TextureData & | operator= (TextureData &&other) noexcept=default |
| Move assignment. More...
|
|
TextureData & | operator= (SDL_Texture *texture) |
| Assign an SDL_Texture pointer to this object. More...
|
|
bool | expired () const noexcept |
| Determine if the texture has expired. More...
|
|
bool | dirty () const noexcept |
| Determine if the texture is dirty. More...
|
|
void | setDirty (bool dirty) |
| Set the texture dirty status. More...
|
|
std::string_view | getPath () |
| Get the path member. More...
|
|
std::string_view | getPath () const |
| Get the path member from a const TextureData object. More...
|
|
template<typename StringType > |
void | setPath (const StringType path) |
| Assign a new value to the path member. More...
|
|
std::string_view | getURI () |
| Get the URI member. More...
|
|
std::string_view | getURI () const |
| Get the URI member from a const TextureData object. More...
|
|
template<typename StringType > |
void | setURI (const StringType URI) |
| Assign a new value to the URI member. More...
|
|
std::string_view | getName () |
| Get the Name member. More...
|
|
std::string_view | getName () const |
| Get the Name member from a const TextureData object. More...
|
|
template<typename StringType > |
void | setName (const StringType Name) |
| Assign a new value to the Name member. More...
|
|
void | setLoadedTime (const std::chrono::time_point< std::chrono::system_clock > loaded) |
| Set the time the texture was loaded. More...
|
|
void | setScale (int scale) |
| Set the scale value associated with the texture. More...
|
|
int | getScale () const |
| Get the scale value associate with the texture. More...
|
|
Size | getSize () const |
| Get the icon size. More...
|
|
void | getRectangle (SDL_Rect &rect) const |
| Populate an SDL_Rect with size of the texture with a Zero position. More...
|
|
Rectangle | getRectangle () const |
| Return a Rectangle with the size of the texture and Zero position. More...
|
|
void | setSize (Size size) |
| Set the size of the Texture. More...
|
|
| Texture (const Texture &)=delete |
|
| Texture (Texture &&)=default |
|
Texture & | operator= (const Texture &)=delete |
|
Texture & | operator= (Texture &&texture)=default |
|
| Texture (SDL_Texture *texture) |
|
| Texture (Renderer &renderer, SDL_PixelFormatEnum format, SDL_TextureAccess access, int width, int height) |
| Constructor More...
|
|
| Texture (Renderer &renderer, Size size) |
| Constructor. More...
|
|
int | setBlendMOde (SDL_BlendMode blendMode) |
|
std::tuple< int, int > | getSize () const noexcept |
|
|
Size | mSize |
| The size of the texture.
|
|
int | mScale |
| Store a scale value for use by library or application programs. The Sprite class uses this field. More...
|
|
uint32_t | mFormat {} |
| The Format of the texture.
|
|
int | mAccess {} |
| The Access mode of the texture.
|
|
std::string | mPath |
| The path name to the source of the texture on the local file system.
|
|
std::string | mURI |
| The URI of the source of the texture.
|
|
std::string | mName |
| A name this image may be known by. More...
|
|
bool | mDirty {true} |
| A flag indicating the image needs to be regenerated or reloaded.
|
|
std::chrono::time_point< std::chrono::system_clock > | mLoaded {} |
| The time the texture was generated or loaded.
|
|
std::chrono::time_point< std::chrono::system_clock > | mLife {} |
| The time when the texture should be regenerated or reloaded.
|
|
A Texture with associated meta data.