A texture.
Definition: Texture.hpp:8
Format
The format of the texture.
Definition: Texture.hpp:18
@ R8
8-bit single channel color format.
Type GetType() const
Get the type of texture.
Definition: Texture.hpp:41
uint64_t GetUniqueIdentifier() const
Get a unique identifier.
Definition: Texture.cpp:15
Texture(Type type, const glm::uvec2 &size, Format format)
Create a new texture.
Definition: Texture.cpp:8
const glm::uvec2 & GetSize() const
Get the size of the texture.
Definition: Texture.hpp:49
virtual ~Texture()
Destructor.
Definition: Texture.hpp:35
Type
The type of texture.
Definition: Texture.hpp:11
@ RENDER_DEPTH
A depth texture that can be rendered to.
@ RENDER_COLOR
A color texture that can be rendered to.
Format GetFormat() const
Get the format of the texture.
Definition: Texture.hpp:57