void setData(int xOffset, int yOffset, int width, int height, const unsigned char *data, GLenum format=GL_RGBA, GLenum type=GL_UNSIGNED_BYTE, int level=0)
Definition texture.cpp:13
Texture2D(int width, int height, GLsizei levels, GLenum internalformat)
Definition texture.cpp:41
virtual ~Texture2D() override
Destroy the texture.
Definition texture.h:199
void generateMipmaps()
Generate mipmaps. It is assumed that there is allocated memory for all levels.
Definition texture.h:195
void generateMipmaps()
Generate mipmaps. It is assumed that there is allocated memory for all levels.
Definition texture.h:211
void setData(int face, int xOffset, int yOffset, int width, int height, const unsigned char *data, GLenum format=GL_RGBA, GLenum type=GL_UNSIGNED_BYTE, int level=0)
Definition texture.cpp:82
TextureCubemap(int width, int height, GLsizei levels, GLenum internalformat)
Definition texture.cpp:64
void setFiltering(GLint minFilter, GLint maxFilter)
Definition texture.cpp:20
uint32_t getSize()
Definition texture.cpp:60
void setWrapping(GLint wrapS, GLint wrapT, GLint wrapR)
Definition texture.cpp:25
void bindTexUnit(GLint textureUnit)
Definition texture.cpp:6