Difference between revisions of "API-Truecolor"

Jump to navigation Jump to search
593 bytes added ,  08:15, 9 July 2009
Line 170: Line 170:
*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::createFormatCLUT8(void)
**creates a PixelFormat set to indicate 256 color paletted mode
**This method is provided for convenience, and is equivalent to initializing a Graphics::PixelFormat with the bytedepth of 1, component losses of 8, and component shifts of 0.
***Which would be accomplished normally via Graphics::PixelFormat(1,8,8,8,8,0,0,0,0);
**Because this methods are static, it can be called without creating a pixel format first
***For instance, if (format == NULL) newFormat = Graphics::PixelFormat::createFormatCLUT8();


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

edits

Navigation menu