The Texture class represents a texture resource that can be used for rendering in a graphics applicat...
TextureType type() const noexcept
Retrieve the type of the texture.
TextureType
Describes the type of texture, such as albedo, normal, roughness, or font atlas.
~Texture()=default
Destructs the Texture object.
uint32_t height() const
Retrieves the height of the texture.
uint32_t _width
The width of the texture in pixels.
std::vector< uint8_t > _pixels
The corresponding pixel data for this texture, stored as a vector of bytes (RGBA format).
const std::vector< uint8_t > & pixels() const noexcept
Retrieve the pixel data.
std::vector< uint8_t > & pixels() noexcept
Retrieve the pixel data for mutation.
uint32_t _height
The height of the texture in pixels.
uint32_t width() const
Retrieves the width of the texture.