#include <Theme.h>
Public Member Functions | |
| UVs () | |
| UVs (float u1, float v1, float u2, float v2) | |
Static Public Member Functions | |
| static const UVs & | empty () |
| static const UVs & | full () |
Public Attributes | |
| float | u1 |
| float | v1 |
| float | u2 |
| float | v2 |
Struct representing the UV coordinates of a rectangular image.
Constructor.
| gameplay::Theme::UVs::UVs | ( | float | u1, |
| float | v1, | ||
| float | u2, | ||
| float | v2 | ||
| ) |
Constructor
| u1 | u component of the first UV coordinate. |
| v1 | v component of the first UV coordinate. |
| u2 | u component of the second UV coordinate. |
| v2 | v component of the second UV coordinate. |
| static const UVs& gameplay::Theme::UVs::empty | ( | ) | [static] |
Gets an empty UVs struct (0, 0, 0, 0).
| static const UVs& gameplay::Theme::UVs::full | ( | ) | [static] |
Gets UVs covering an entire texture (0, 0, 1, 1).
| float gameplay::Theme::UVs::u1 |
u component of the first UV coordinate.
| float gameplay::Theme::UVs::u2 |
u component of the second UV coordinate.
| float gameplay::Theme::UVs::v1 |
v component of the first UV coordinate.
| float gameplay::Theme::UVs::v2 |
v component of the second UV coordinate.
1.7.6.1