|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Two-dimensional region of a texture. More...
#include <GREM/graphics/Texture.hpp>
Public Member Functions | |
| constexpr bool | operator== (const TextureRegion2D &other) const =default |
| Compare this region to another for equality. | |
Public Attributes | |
| TextureAspects | aspects = TextureAspects::ALL |
| Set of texture aspects. | |
| Offset3D | offset {.x = 0, .y = 0, .z = 0} |
| Offset from the bottom left of the first layer in the texture, in texels. | |
| Extent2D | size |
| Size of the region, in texels. | |
| uint32_t | mipLevel = 0 |
| Mip level index in the texture. | |
Two-dimensional region of a texture.
|
nodiscardconstexprdefault |
Compare this region to another for equality.
| other | the region to compare this one to. |
| TextureAspects grem::graphics::TextureRegion2D::aspects = TextureAspects::ALL |
Set of texture aspects.
| Offset3D grem::graphics::TextureRegion2D::offset {.x = 0, .y = 0, .z = 0} |
Offset from the bottom left of the first layer in the texture, in texels.
| Extent2D grem::graphics::TextureRegion2D::size |
Size of the region, in texels.
| uint32_t grem::graphics::TextureRegion2D::mipLevel = 0 |
Mip level index in the texture.