#include <VisTexture1D.h>
Public Member Functions | |
| Texture1D () | |
| ~Texture1D () | |
| void | setData (int width, GLint internalFormat, GLenum format, GLenum type, bool mipmap, void *data) |
| void | setParameter (GLenum wrapS, GLenum mag, GLenum min) |
| GLuint | getTextureId () const |
| void | bind () |
| void | unbind () |
| int | getWidth () const |
| Vis::Texture1D::Texture1D | ( | ) |
ctor.
| Vis::Texture1D::~Texture1D | ( | ) |
dtor.
| void Vis::Texture1D::bind | ( | ) |
Bind the texture.
| GLuint Vis::Texture1D::getTextureId | ( | ) | const |
Return the texture handle.
| int Vis::Texture1D::getWidth | ( | ) | const |
Return the width of the texture.
| void Vis::Texture1D::setData | ( | int | width, | |
| GLint | internalFormat, | |||
| GLenum | format, | |||
| GLenum | type, | |||
| bool | mipmap, | |||
| void * | data | |||
| ) |
Set the texture data.
| width | width of the texture. | |
| internalFormat | internal format of the texture. | |
| format | format of the texture. | |
| type | data type | |
| mipmap | true to generate mipmaps, false no mipmap generation. |
| void Vis::Texture1D::setParameter | ( | GLenum | wrapS, | |
| GLenum | mag, | |||
| GLenum | min | |||
| ) |
Set texture paramters, for clamping an min and magnification.
| wrapS | clamping | |
| mag | magnification paramter. | |
| min | minification parameter. |
| void Vis::Texture1D::unbind | ( | ) |
Unbind the texture.
1.5.7.1