#include <Texture1D.h>
Public Member Functions | |
Texture1D (void) | |
virtual | ~Texture1D (void) |
bool | isInitialized () const |
unsigned int | getSize () const |
int | getInternalFormat () const |
void | use () const |
bool | createTextureFromBuffer (unsigned int size, GLint internalFormat, GLenum dataFormat, GLenum dataType, const void *buffer) |
Private Member Functions | |
void | cleanUp () |
unsigned int | getNextPowerOfTwo (unsigned int number) const |
Private Attributes | |
GLuint | m_texID |
GLint | m_internalFormat |
unsigned int | m_size |
bool | m_initialized |
Size of the 1D-Texture (amount of texels). |
Texture1D::Texture1D | ( | void | ) |
Texture1D::~Texture1D | ( | void | ) | [virtual] |
void Texture1D::cleanUp | ( | ) | [private] |
cleans up all GL initializations and possible memory allocations
bool Texture1D::createTextureFromBuffer | ( | unsigned int | size, | |
GLint | internalFormat, | |||
GLenum | dataFormat, | |||
GLenum | dataType, | |||
const void * | buffer | |||
) |
int Texture1D::getInternalFormat | ( | ) | const |
unsigned int Texture1D::getNextPowerOfTwo | ( | unsigned int | number | ) | const [private] |
number | A number greater or equal to 0 |
unsigned int Texture1D::getSize | ( | ) | const |
bool Texture1D::isInitialized | ( | ) | const |
void Texture1D::use | ( | ) | const |
Binds the texture to prepare for following usage
bool Texture1D::m_initialized [private] |
Size of the 1D-Texture (amount of texels).
GLint Texture1D::m_internalFormat [private] |
unsigned int Texture1D::m_size [private] |
GLuint Texture1D::m_texID [private] |