Inheritance diagram for XFcImageLoader:
Public Member Functions | |
virtual XFCIMPORT | ~XFcImageLoader () |
Virtual destructor; core makes sure the object is deleted. | |
Static Public Member Functions | |
XFCIMPORT XFcGLSurface * | load (const CHAR *aFilename, INT32 aSurfaceFormat=XFCGF_DEFAULT) |
Loads an image into a new surface. | |
XFCIMPORT void | loadImageInfo (const CHAR *aFilename, INT32 *aWidth, INT32 *aHeight, INT *aAlphaLayer, INT *aPaletted) |
Loads information on image. | |
XFCIMPORT UINT32 * | loadImage8888 (const CHAR *aFilename) |
Loads an image into a linear XFCGF_A8R8G8B8 buffer (32 bits per pixel). | |
XFCIMPORT void | loadImagePaletted (const CHAR *aFilename, UINT8 **aPalettePtr, UINT8 **aBitmapPtr) |
Loads an image in paletted mode. | |
XFCIMPORT INT | loadImageToBuffer (const CHAR *aFilename, void *aBuffer, INT32 aPitch, INT32 aFormat=XFCGF_DEFAULT) |
Loads an image into a buffer. | |
Public Attributes | |
XFcImageLoader * | mNext |
Pointer to the next plugin. | |
Protected Member Functions | |
virtual INT | validateImage (const CHAR *aFilename, XFcFile *aFile)=0 |
Determines if this plugin can load a specified file. | |
virtual void | getImageInfo (const CHAR *aFilename, XFcFile *aFile, INT32 *aWidth, INT32 *aHeight, INT *aAlphaLayer, INT *aPaletted)=0 |
Returns the requested info on the image. | |
virtual UINT32 * | getImage8888 (const CHAR *aFilename, XFcFile *aFile) |
Loads an image to a 8:8:8:8 ARGB buffer. | |
virtual void | getImagePaletted (const CHAR *aFilename, XFcFile *aFile, UINT8 **aPalettePtr, UINT8 **aBitmapPtr) |
Loads image and its palette. | |
Static Protected Member Functions | |
void | registerImageLoader (XFcImageLoader *aFilter) |
Called by a plugin to register itself in its constructor. | |
INT | doLoadImage (const CHAR *aFilename, XFcImageLoader *aLoadPlugin, XFcFile *aFile, INT32 aFormat, INT32 aWidth, INT32 aHeight, INT32 aAlpha, INT32 aPaletted, INT32 aPitch, void *aBuffer) |
Does the actual gruntwork of loading the image for load() and loadimagetobuffer(). | |
Static Private Member Functions | |
XFcImageLoader * | findPlugin (const CHAR *aFilename, XFcFile *aFile) |
Internal: goes through the plugin link list and finds a proper filter. |
All image loaders in the system are made as plugins that extend this class.
|
Virtual destructor; core makes sure the object is deleted.
|
|
Does the actual gruntwork of loading the image for load() and loadimagetobuffer().
|
|
Internal: goes through the plugin link list and finds a proper filter.
|
|
Loads an image to a 8:8:8:8 ARGB buffer.
Reimplemented in XFcImageLoadFilterTGA. |
|
Returns the requested info on the image.
Implemented in XFcImageLoadFilterPCX, and XFcImageLoadFilterTGA. |
|
Loads image and its palette.
Reimplemented in XFcImageLoadFilterPCX, and XFcImageLoadFilterTGA. |
|
Loads an image into a new surface. By default XFCGF_R5G5X1B5 is used for non-alpha pictures and XFCGF_R5G5A1B5 for pictures with alpha.
|
|
Loads an image into a linear XFCGF_A8R8G8B8 buffer (32 bits per pixel).
|
|
Loads information on image.
|
|
Loads an image in paletted mode. If file format does not support paletted mode, palette and bitmap return pointers are set to NULL.
|
|
Loads an image into a buffer. Pitch is in bytes. By default XFCGF_R5G6B5 is used for non-alpha pictures and XFCGF_A1R5G5B5 for pictures with alpha.
|
|
Called by a plugin to register itself in its constructor.
|
|
Determines if this plugin can load a specified file. With as little work as possible, this function should return 1 if this plugin can load this file, or 0 if cannot.
Implemented in XFcImageLoadFilterPCX, and XFcImageLoadFilterTGA. |
|
Pointer to the next plugin.
|
![]() | ||||
![]() |
Confidential Copyright © 2002-2003 Fathammer | with doxygen by Dimitri van Heesch |