A class for creating 1D textures.
More...
#include <Texture1D.h>
List of all members.
Public Member Functions |
| Texture1D (GLenum _target, int _width, GLint _internalFormat, GLenum _format, GLenum _dataType, GLenum _minFilter, GLenum _magFilter, GLenum _wrapMode, int _samplerIndex, GLint _mipLevel=0, void *_data=0) |
| Constructor.
|
bool | write (GLint _mipLevel, GLint _xOffset, GLsizei _width, GLenum _format, GLenum _type, void *_data) |
| Loads data to the texture.
|
bool | writeFromPBO (GLint _mipLevel, GLint _xOffset, GLsizei _width, GLenum _format, GLenum _type, GLuint _pboHandle) |
| Load data to the texture from a Point Buffer Object.
|
GLsizei | getWidth () const |
| Accessor for the texture's width.
|
Detailed Description
A class for creating 1D textures.
- Author:
- Nikolaos Verigakis
- Version:
- 1.0
- Date:
- 14/07/11 Revision History : Initial Version 14/07/11
Constructor & Destructor Documentation
Texture1D::Texture1D |
( |
GLenum |
_target, |
|
|
int |
_width, |
|
|
GLint |
_internalFormat, |
|
|
GLenum |
_format, |
|
|
GLenum |
_dataType, |
|
|
GLenum |
_minFilter, |
|
|
GLenum |
_magFilter, |
|
|
GLenum |
_wrapMode, |
|
|
int |
_samplerIndex, |
|
|
GLint |
_mipLevel = 0 , |
|
|
void * |
_data = 0 |
|
) |
| |
Constructor.
- Parameters:
-
[in] | _target | the target texture (must be GL_TEXTURE_1D or GL_PROXY_TEXTURE_1D) |
[in] | _width | the texture's width |
[in] | _internalFormat | the number of colour components in the texture |
[in] | _format | the format of the pixel data |
[in] | _dataType | the data type of the pixel data |
[in] | _minFilter | the minification filter |
[in] | _magFilter | the magnification filter |
[in] | _wrapMode | the texture wrapping mode |
[in] | _samplerIndex | the texture image unit to assign the texture sampler |
[in] | _mipLevel | the texture's mipmap level |
[in] | _data | a pointer to the texture data in memory |
Member Function Documentation
bool Texture1D::write |
( |
GLint |
_mipLevel, |
|
|
GLint |
_xOffset, |
|
|
GLsizei |
_width, |
|
|
GLenum |
_format, |
|
|
GLenum |
_type, |
|
|
void * |
_data |
|
) |
| |
Loads data to the texture.
- Parameters:
-
[in] | _mipLevel | the mipmap level of the texture sub-image |
[in] | _xOffset | a texel offset in the x direction within the texture array |
[in] | _width | the width of the texture sub-image |
[in] | _format | the format of the texture sub-image |
[in] | _type | the type of the texture sub-image |
[in] | _data | the data to load |
bool Texture1D::writeFromPBO |
( |
GLint |
_mipLevel, |
|
|
GLint |
_xOffset, |
|
|
GLsizei |
_width, |
|
|
GLenum |
_format, |
|
|
GLenum |
_type, |
|
|
GLuint |
_pboHandle |
|
) |
| |
Load data to the texture from a Point Buffer Object.
- Parameters:
-
[in] | _mipLevel | the mipmap level of the texture sub-image |
[in] | _xOffset | a texel offset in the x direction within the texture array |
[in] | _width | the width of the texture sub-image |
[in] | _format | the format of the texture sub-image |
[in] | _type | the type of the texture sub-image |
[in] | _pboHandle | the PBO's handle |
The documentation for this class was generated from the following files: