GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::TextureRegion3D Struct Reference

Three-dimensional region of a texture. More...

#include <GREM/graphics/Texture.hpp>

Public Member Functions

constexpr bool operator== (const TextureRegion3D &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.
Extent3D size
 Size of the region, in texels/layers.
uint32_t mipLevel = 0
 Mip level index in the texture.

Detailed Description

Three-dimensional region of a texture.

Member Function Documentation

◆ operator==()

bool grem::graphics::TextureRegion3D::operator== ( const TextureRegion3D & other) const
nodiscardconstexprdefault

Compare this region to another for equality.

Parameters
otherthe region to compare this one to.
Returns
true if the regions are equal, false otherwise.

Member Data Documentation

◆ aspects

TextureAspects grem::graphics::TextureRegion3D::aspects = TextureAspects::ALL

Set of texture aspects.

◆ offset

Offset3D grem::graphics::TextureRegion3D::offset {.x = 0, .y = 0, .z = 0}

Offset from the bottom left of the first layer in the texture, in texels.

◆ size

Extent3D grem::graphics::TextureRegion3D::size

Size of the region, in texels/layers.

◆ mipLevel

uint32_t grem::graphics::TextureRegion3D::mipLevel = 0

Mip level index in the texture.


The documentation for this struct was generated from the following file: