#include <GLTexImage.h>
Public Member Functions | |
GLTexInput () | |
int | LoadImageFile (char *imagepath, int &w, int &h) |
int | SetImageData (int width, int height, const void *data, unsigned int gl_format, unsigned int gl_type) |
void | VerifyTexture () |
virtual | ~GLTexInput () |
Static Public Member Functions | |
static int | DownSamplePixelDataF (unsigned int gl_format, int width, int height, int ds, const float *pin, float *pout, int skip=0) |
template<class Uint > | |
static int | DownSamplePixelDataI (unsigned int gl_format, int width, int height, int ds, const Uint *pin, Uint *pout) |
template<class Uint > | |
static int | DownSamplePixelDataI2F (unsigned int gl_format, int width, int height, int ds, const Uint *pin, float *pout, int skip=0) |
static int | IsSimpleGlFormat (unsigned int gl_format, unsigned int gl_type) |
static int | TruncateWidthCU (int w) |
Public Attributes | |
float * | _converted_data |
int | _data_modified |
int | _down_sampled |
const void * | _pixel_data |
int | _rgb_converted |
Definition at line 95 of file GLTexImage.h.
GLTexInput::GLTexInput | ( | ) | [inline] |
Definition at line 127 of file GLTexImage.h.
GLTexInput::~GLTexInput | ( | ) | [virtual] |
Definition at line 1080 of file GLTexImage.cpp.
int GLTexInput::DownSamplePixelDataF | ( | unsigned int | gl_format, |
int | width, | ||
int | height, | ||
int | ds, | ||
const float * | pin, | ||
float * | pout, | ||
int | skip = 0 |
||
) | [static] |
Definition at line 864 of file GLTexImage.cpp.
int GLTexInput::DownSamplePixelDataI | ( | unsigned int | gl_format, |
int | width, | ||
int | height, | ||
int | ds, | ||
const Uint * | pin, | ||
Uint * | pout | ||
) | [static] |
Definition at line 744 of file GLTexImage.cpp.
int GLTexInput::DownSamplePixelDataI2F | ( | unsigned int | gl_format, |
int | width, | ||
int | height, | ||
int | ds, | ||
const Uint * | pin, | ||
float * | pout, | ||
int | skip = 0 |
||
) | [static] |
Definition at line 808 of file GLTexImage.cpp.
static int GLTexInput::IsSimpleGlFormat | ( | unsigned int | gl_format, |
unsigned int | gl_type | ||
) | [inline, static] |
Definition at line 106 of file GLTexImage.h.
int GLTexInput::LoadImageFile | ( | char * | imagepath, |
int & | w, | ||
int & | h | ||
) |
Definition at line 1086 of file GLTexImage.cpp.
int GLTexInput::SetImageData | ( | int | width, |
int | height, | ||
const void * | data, | ||
unsigned int | gl_format, | ||
unsigned int | gl_type | ||
) |
Definition at line 918 of file GLTexImage.cpp.
static int GLTexInput::TruncateWidthCU | ( | int | w | ) | [inline, static] |
Definition at line 125 of file GLTexImage.h.
void GLTexInput::VerifyTexture | ( | ) |
Definition at line 1236 of file GLTexImage.cpp.
float* GLTexInput::_converted_data |
Definition at line 103 of file GLTexImage.h.
Definition at line 100 of file GLTexImage.h.
Definition at line 98 of file GLTexImage.h.
const void* GLTexInput::_pixel_data |
Definition at line 104 of file GLTexImage.h.
Definition at line 99 of file GLTexImage.h.