20
edits
m (→Example) |
|||
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 ==== |
edits