class
#include <nCine/Graphics/GL/GLTexture.h>
GLTexture Handles OpenGL 2D textures.
Public static variables
- static unsigned int MaxTextureUnits constexpr
Public static functions
Constructors, destructors, conversion operators
- GLTexture(GLenum target_) explicit
- ~GLTexture()
Public functions
- auto glHandle() const -> GLuint
- auto target() const -> GLenum
- auto bind(unsigned int textureUnit) const -> bool
- auto bind() const -> bool
- auto unbind() const -> bool
- void texImage2D(GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* data)
- void texSubImage2D(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const void* data)
- void compressedTexImage2D(GLint level, GLint internalFormat, GLsizei width, GLsizei height, GLsizei imageSize, const void* data)
- void compressedTexSubImage2D(GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const void* data)
- void texStorage2D(GLsizei levels, GLint internalFormat, GLsizei width, GLsizei height)
- void getTexImage(GLint level, GLenum format, GLenum type, void* pixels)
- void texParameterf(GLenum pname, GLfloat param)
- void texParameteri(GLenum pname, GLint param)
- void setObjectLabel(const char* label)