Difference between revisions of "API-Truecolor"

Jump to navigation Jump to search
1,363 bytes removed ,  08:37, 7 July 2009
Line 68: Line 68:
*inline Graphics::PixelFormat Graphics::findCompatibleFormat(Common::List<Graphics::PixelFormat> backend, Common::List<Graphics::PixelFormat> frontend)
*inline Graphics::PixelFormat Graphics::findCompatibleFormat(Common::List<Graphics::PixelFormat> backend, Common::List<Graphics::PixelFormat> frontend)
**Returns the first entry on the backend list that also occurs in the frontend list, or CLUT8 if there is no matching format.
**Returns the first entry on the backend list that also occurs in the frontend list, or CLUT8 if there is no matching format.
*static inline Graphics::PixelFormat Graphics::PixelFormat::createFormat{format}(void)
**creates a PixelFormat and initializes it to the specified format. A list of formats provided follows:
***createFormatCLUT8() // 256 color paletted
***createFormatRGBA4444()
***createFormatARGB4444()
***createFormatABGR4444()
***createFormatBGRA4444()
***createFormatRGB555()
***createFormatBGR555()
***createFormatXRGB1555()
***createFormatXBGR1555()
***createFormatRGB565()
***createFormatBGR565()
***createFormatRGB888() // this mode, and those below it, are not yet supported by Scalers or the GUI
***createFormatBGR888()
***createFormatRGBA8888()
***createFormatARGB8888()
***createFormatABGR8888()
***createFormatBGRA8888()
**XRGB1555 and XBGR1555 ''should'' only be used when the backend has to handle the alpha, but may be used in other circumstances.
**These methods are provided for convenience, and are each equivalent to initializing a Graphics::PixelFormat with the bytedepth, component losses, and component shifts of the format described.
***For instance, calling Graphics::PixelFormat::createFormatCLUT8() is equivalent to calling Graphics::PixelFormat(1,8,8,8,8,0,0,0,0)
**Because these methods are static, they can be called without creating a pixel format first
***For instance, Graphics::PixelFormat format = Graphics::PixelFormat::createFormatRGB555();


==== Miscellaneous ====
==== Miscellaneous ====
20

edits

Navigation menu