#include <Texture3D.h>
Public Member Functions | |
Texture3D (void) | |
virtual | ~Texture3D (void) |
bool | isInitialized () const |
unsigned int | getWidth () const |
unsigned int | getHeight () const |
unsigned int | getDepth () const |
int | getInternalFormat () const |
void | use () const |
bool | createTextureFromBuffer (unsigned int width, unsigned int height, unsigned int depth, GLint internalFormat, GLenum dataFormat, GLenum dataType, const void *buffer) |
float | getMaxTexCoordX () const |
float | getMaxTexCoordY () const |
float | getMaxTexCoordZ () const |
Private Member Functions | |
void | cleanUp () |
unsigned int | getNextPowerOfTwo (unsigned int number) const |
Private Attributes | |
GLuint | m_texID |
GLint | m_internalFormat |
unsigned int | m_width |
unsigned int | m_height |
unsigned int | m_depth |
unsigned int | m_dataWidth |
unsigned int | m_dataHeight |
unsigned int | m_dataDepth |
bool | m_initialized |
Texture3D::Texture3D | ( | void | ) |
Texture3D::~Texture3D | ( | void | ) | [virtual] |
void Texture3D::cleanUp | ( | ) | [private] |
cleans up all GL initializations and possible memory allocations
bool Texture3D::createTextureFromBuffer | ( | unsigned int | width, | |
unsigned int | height, | |||
unsigned int | depth, | |||
GLint | internalFormat, | |||
GLenum | dataFormat, | |||
GLenum | dataType, | |||
const void * | buffer | |||
) |
unsigned int Texture3D::getDepth | ( | ) | const |
unsigned int Texture3D::getHeight | ( | ) | const |
int Texture3D::getInternalFormat | ( | ) | const |
float Texture3D::getMaxTexCoordX | ( | ) | const |
float Texture3D::getMaxTexCoordY | ( | ) | const |
float Texture3D::getMaxTexCoordZ | ( | ) | const |
unsigned int Texture3D::getNextPowerOfTwo | ( | unsigned int | number | ) | const [private] |
number | A number greater or equal to 0 |
unsigned int Texture3D::getWidth | ( | ) | const |
bool Texture3D::isInitialized | ( | ) | const |
void Texture3D::use | ( | ) | const |
Binds the texture to prepare for following usage
unsigned int Texture3D::m_dataDepth [private] |
unsigned int Texture3D::m_dataHeight [private] |
unsigned int Texture3D::m_dataWidth [private] |
unsigned int Texture3D::m_depth [private] |
unsigned int Texture3D::m_height [private] |
bool Texture3D::m_initialized [private] |
GLint Texture3D::m_internalFormat [private] |
GLuint Texture3D::m_texID [private] |
unsigned int Texture3D::m_width [private] |