|
Colobot
|
#include <texture.h>
Public Member Functions | |
| bool | Valid () const |
| Returns whether the texture is valid (ID != 0) | |
| void | SetInvalid () |
| Sets the ID to invalid value (0) | |
| bool | operator< (const Texture &other) const |
| Comparator for use in texture maps and sets. | |
| bool | operator== (const Texture &other) const |
| Comparator. | |
Public Attributes | |
| unsigned int | id |
| ID of the texture in graphics engine; 0 = invalid texture. | |
| Math::IntPoint | size |
| Size of texture. | |
| Math::IntPoint | originalSize |
| Original size of texture (as loaded from image) | |
| bool | alpha |
| Whether the texture has alpha channel. | |
Info about a texture.
Identifies (through id) a texture created in graphics engine. Also contains some additional data.
1.8.5