20
edits
(→Engine initialization protocol: corrected outdated references to removed PixelFormat::createFormat{some format} functions.) |
(→Complete API function reference: Documented new error values.) |
||
Line 170: | Line 170: | ||
#*If requested screen format is not supported, continue running in 256 color mode. | #*If requested screen format is not supported, continue running in 256 color mode. | ||
== Complete API | == Complete API reference == | ||
=== New functions === | === New functions === | ||
==== OSystem ==== | ==== OSystem ==== | ||
Line 227: | Line 227: | ||
*Graphics::CursorManager::Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, Graphics::PixelFormat format = Graphics::PixelFormat::createFormatCLUT8()) | *Graphics::CursorManager::Cursor(const byte *data, uint w, uint h, int hotspotX, int hotspotY, uint32 keycolor = 0xFFFFFFFF, int targetScale = 1, Graphics::PixelFormat format = Graphics::PixelFormat::createFormatCLUT8()) | ||
**Can now take a format parameter, which is a Graphics::PixelFormat describing the pixel format of the cursor graphic, and defaults to 256 color mode. | **Can now take a format parameter, which is a Graphics::PixelFormat describing the pixel format of the cursor graphic, and defaults to 256 color mode. | ||
=== Modified Types === | |||
*enum Common::Error | |||
**Now includes a kUnsupportedColorMode value, for engines which get unsupported pixel formats after a format change request fails. | |||
*enum OSystem::TransactionError | |||
**Now includes a kTransactionFormatNotSupported value, for backends to announce failure to supply game screen with requested pixel format. |
edits