An image that can be applied to a surface of a drawable object.
More...
#include <Texture.h>
Inherited by CubeMap, and DepthMap.
An image that can be applied to a surface of a drawable object.
- Author
- Rahul Mukhi, David Steiner
Constructor.
This constructor generates a texture yet doesn't apply any settings or data
Constructor.
- Parameters
-
[in] | data | The texture data to be used |
Texture::Texture |
( |
GLuint |
textureID | ) |
|
|
inline |
Constructor.
This constructor should only be used if the texture is already created (e.g. by an external library) and should be integrated in the framework
- Parameters
-
virtual Texture::~Texture |
( |
| ) |
|
|
inlinevirtual |
void Texture::bind |
( |
GLint |
texUnit = GL_TEXTURE0 | ) |
|
|
virtual |
Binds the texture.
- Parameters
-
[in] | texUnit | Specifies which texture unit to bind it to |
Reimplemented in CubeMap.
virtual void Texture::deleteTexture |
( |
| ) |
|
|
inlinevirtual |
Delete the OpenGL texture.
GLuint Texture::getTextureID |
( |
| ) |
|
|
inline |