GL Studio C++ Runtime 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 | ~Plugin () |
For Polymorphic deletion. | |
virtual const char * | Description ()=0 |
virtual const char * | Version ()=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, BmpImageLoader, PngImageLoader, DDSImageLoader, GifImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
Implemented in JpegImageLoader, BmpImageLoader, PngImageLoader, DDSImageLoader, GifImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
Implemented in PngImageLoader, BmpImageLoader, DDSImageLoader, GifImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, XpmImageLoader, and JpegImageLoader.
|
pure virtual |
Implemented in PngImageLoader, BmpImageLoader, DDSImageLoader, GifImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, XpmImageLoader, and JpegImageLoader.
|
pure virtual |
Implemented in PngImageLoader, DDSImageLoader, JpegImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, XpmImageLoader, 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, JpegImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, XpmImageLoader, BmpImageLoader, GifImageLoader, and PsdImageLoader.
|
virtual |
Implements Plugin.
|
pure virtual |
Implemented in PngImageLoader, BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.