Public Types |
typedef void* (* | loaderFunc )(const string &filepath, unsigned int &width, unsigned int &height, sglTexture::ExternalFormatEnum &format, sglTexture::TypeEnum &type) |
typedef bool (* | writerFunc )(const string &filepath, const void *image, unsigned int width, unsigned int height, sglTexture::ExternalFormatEnum format, sglTexture::TypeEnum type) |
Public Methods |
virtual | ~sglImageLoader ()=0 |
Static Public Methods |
void* | loadImage (const string &filepath, unsigned int &width, unsigned int &height, sglTexture::ExternalFormatEnum &format, sglTexture::TypeEnum &type) |
bool | writeImage (const string &filepath, const void *image, unsigned int width, unsigned int height, sglTexture::ExternalFormatEnum format, sglTexture::TypeEnum type) |
void | registerImageLoader (const string &extension, loaderFunc image_loader_func) |
void | registerImageWriter (const string &extension, writerFunc image_writer_func) |
loaderFunc | getImageLoader (const string &extension) |
writerFunc | getImageWriter (const string &extension) |
void* | reformatImage (sglTexture::ExternalFormatEnum old_format, sglTexture::TypeEnum type, unsigned int num_s, unsigned int num_t, sglTexture::ExternalFormatEnum new_format, const void *old_image) |
void | scaleImageComponent (void *image, sglTexture::ExternalFormatEnum format, sglTexture::TypeEnum type, unsigned int num_s, unsigned int num_t, float scale, unsigned int component) |
void* | changeImageType (sglTexture::ExternalFormatEnum format, sglTexture::TypeEnum old_type, unsigned int num_s, unsigned int num_t, sglTexture::TypeEnum new_type, const void *old_image) |
Protected Methods |
| sglImageLoader () |
| sglImageLoader (const sglImageLoader &) |
sglImageLoader& | operator= (const sglImageLoader &) |