GL Studio C++ Runtime API
|
#include <pngimage.h>
Public Member Functions | |
const char * | FilterString () override |
const char * | FilterDescription () override |
const char * | Description () override |
const char * | Version () override |
const char * | GenerateHeader () override |
const char * | GenerateDeclaration () override |
bool | SupportsExtension (const char *ext) override |
bool | IsFileType (const char *filename) override |
virtual Image * | LoadTexture (const char *filename, const Image::LoadOptions &options, bool allowNPOT=true) override |
virtual void | Destroy () override |
Do nothing since this is a singleton. More... | |
Public Member Functions inherited from TextureLoader | |
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... | |
Static Public Member Functions | |
static PngImageLoader * | Instance () |
The PngImage class. Implements loading Png image files.
|
overridevirtual |
Implements Plugin.
|
inlineoverridevirtual |
Do nothing since this is a singleton.
Implements Plugin.
|
overridevirtual |
Implements TextureLoader.
|
overridevirtual |
Implements TextureLoader.
|
overridevirtual |
Implements TextureLoader.
|
overridevirtual |
Implements TextureLoader.
|
static |
|
overridevirtual |
filename | The file name to check. |
Implements TextureLoader.
|
overridevirtual |
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) |
Implements TextureLoader.
|
overridevirtual |
ext | The file extension to check. |
Implements TextureLoader.
|
overridevirtual |
Implements Plugin.