GL Studio API
|
#include <texture_loader.h>
Public Member Functions | |
virtual const char * | FilterString ()=0 |
virtual const char * | FilterDescription ()=0 |
virtual const char * | GenerateHeader ()=0 |
virtual const char * | GenerateDeclaration ()=0 |
virtual const char * | PluginType () |
virtual bool | IsFileType (const char *filename)=0 |
virtual bool | SupportsExtension (const char *ext)=0 |
virtual Image * | LoadTexture (const char *filename, const Image::LoadOptions &options, bool allowNPOT=true)=0 |
void | AddToList (TextureLoaderList *list=TextureLoaderList::Instance()) |
Public Member Functions inherited from Plugin | |
virtual const char * | Description (void)=0 |
virtual const char * | Version (void)=0 |
virtual const char * | PluginDataName () |
virtual void | WritePluginData (DistiAttributePluginData *) |
virtual void | ReadPluginData (DistiAttributePluginData *) |
virtual void | ResetPluginData () |
bool | IsPluginType (const char *str) |
The TextureLoader class
void AddToList | ( | TextureLoaderList * | list = TextureLoaderList::Instance() | ) |
Adds this file importer to a texture loader list
list | The texture loader list to add to |
|
pure virtual |
Implemented in JpegImageLoader, PngImageLoader, BmpImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, GifImageLoader, PsdImageLoader, and TiffImageLoader.
|
pure virtual |
Implemented in JpegImageLoader, PngImageLoader, BmpImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, GifImageLoader, PsdImageLoader, and TiffImageLoader.
|
pure virtual |
Implemented in PngImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, BmpImageLoader, GifImageLoader, PsdImageLoader, TiffImageLoader, and JpegImageLoader.
|
pure virtual |
Implemented in PngImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, BmpImageLoader, GifImageLoader, PsdImageLoader, TiffImageLoader, and JpegImageLoader.
|
pure virtual |
Implemented in PngImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, JpegImageLoader, TiffImageLoader, BmpImageLoader, GifImageLoader, and PsdImageLoader.
|
pure virtual |
Load the specified texture file. Try all loaders to see if any of them support the given file type.
filename | The file to load the image from |
options | Options to load the image with |
allowNPOT | If the image is allowed to be non-power of two (NPOT) |
Implemented in PngImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, JpegImageLoader, TiffImageLoader, BmpImageLoader, GifImageLoader, and PsdImageLoader.
|
virtual |
Implements Plugin.
|
pure virtual |
Implemented in PngImageLoader, DDSImageLoader, RgbImageLoader, TgaImageLoader, XpmImageLoader, BmpImageLoader, GifImageLoader, JpegImageLoader, PsdImageLoader, and TiffImageLoader.