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 * | PluginType ()=0 |
virtual const char * | PluginDataName () |
virtual void | WritePluginData (DistiAttributePluginData *) |
virtual void | ReadPluginData (DistiAttributePluginData *) |
virtual void | ResetPluginData () |
bool | IsPluginType (const char *str) |
virtual void | Destroy ()=0 |
Allows plugin to handle destruction of its own data. More... | |
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 BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
Implemented in BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
Implemented in BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
Implemented in BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
pure virtual |
filename | The file name to check. |
Implemented in BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
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 BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.
|
virtual |
Implements Plugin.
|
pure virtual |
ext | The file extension to check. |
Implemented in BmpImageLoader, DDSImageLoader, GifImageLoader, JpegImageLoader, PngImageLoader, PsdImageLoader, RgbImageLoader, TgaImageLoader, TiffImageLoader, and XpmImageLoader.