Info about a texture.
More...
#include <src/graphics/core/texture.h>
Info about a texture.
Identifies (through id) a texture created in graphics engine. Also contains some additional data.
◆ Valid()
bool Gfx::Texture::Valid |
( |
| ) |
const |
|
inline |
Returns whether the texture is valid (ID != 0)
◆ SetInvalid()
void Gfx::Texture::SetInvalid |
( |
| ) |
|
|
inline |
Sets the ID to invalid value (0)
◆ operator<()
bool Gfx::Texture::operator< |
( |
const Texture & |
other | ) |
const |
|
inline |
Comparator for use in texture maps and sets.
◆ operator==()
bool Gfx::Texture::operator== |
( |
const Texture & |
other | ) |
const |
|
inline |
◆ id
unsigned int Gfx::Texture::id = 0 |
ID of the texture in graphics engine; 0 = invalid texture.
◆ size
◆ originalSize
Original size of texture (as loaded from image)
◆ alpha
bool Gfx::Texture::alpha = false |
Whether the texture has alpha channel.
The documentation for this struct was generated from the following file: