Carna
Version 3.3.2
|
Texture base class with dimension-independent definitions. More...
#include <Texture.h>
Public Member Functions | |
virtual | ~TextureBase () |
Deletes the maintained OpenGL texture object. | |
Public Attributes | |
const unsigned int | id |
Holds the ID of the represented OpenGL texture object. | |
Static Public Attributes | |
static const unsigned int | SETUP_UNIT = 0 |
Texture unit that is fine to be used for temporal bindings, i.e. for setting textures up. This unit shouldn't be used for lasting bindings. | |
Protected Member Functions | |
TextureBase () | |
Creates OpenGL texture object. | |
void | uploadGLTextureData (const Eigen::Matrix< unsigned int, 1, 1 > &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) |
Wraps glTexImage1d . | |
void | uploadGLTextureData (const math::Vector2ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) |
Wraps glTexImage2d . | |
void | uploadGLTextureData (const math::Vector3ui &size, int internalFormat, int pixelFormat, int bufferType, const void *bufferPtr) |
Wraps glTexImage3d . | |
Related Functions | |
(Note that these are not member functions.) | |
template<unsigned int dimension> | |
void | bindGLTextureObject (unsigned int unit, unsigned int id) |
Binds OpenGL texture object id to texture unit. For internal usage only, use Texture::bind instead. | |
Texture base class with dimension-independent definitions.
Documentation generated by Doxygen