OpenGL implementation of Texture.
Definition: OpenGLTexture.hpp:11
bool HasMipMaps() const
Get whether the texture has mip maps.
Definition: OpenGLTexture.cpp:69
~OpenGLTexture() final
Destructor.
Definition: OpenGLTexture.cpp:61
unsigned int GetID() const
Get texture ID.
Definition: OpenGLTexture.cpp:65
OpenGLTexture(const glm::uvec2 size, Texture::Type type, Texture::Format format, int components=0, unsigned char *data=nullptr)
Create new OpenGL texture.
Definition: OpenGLTexture.cpp:8
A texture.
Definition: Texture.hpp:8
Format
The format of the texture.
Definition: Texture.hpp:18
Type
The type of texture.
Definition: Texture.hpp:11