Open main menu

Difference between revisions of "API-Truecolor"

327 bytes added ,  08:56, 9 July 2009
(→‎Example: a few more comments and a minor formatting correction)
Line 164: Line 164:
#*If format is NULL, use Graphics::PixelFormat::createFormatCLUT8()
#*If format is NULL, use Graphics::PixelFormat::createFormatCLUT8()
#*If requested screen format is supported, attempt to set screen up with it.  
#*If requested screen format is supported, attempt to set screen up with it.  
#**If setup is unsuccessful, fall back to 256 color mode and set the value that getScreenFormat returns to Graphics::PixelFormat::createFormatCLUT8().
#**If setup is unsuccessful, fall back to previous color mode and set the value that getScreenFormat returns accordingly.
#***Note: During game initialization, this '''must always''' result in a fall-back to 256 color mode with getScreenFormat returning a value equivalent to Graphics::PixelFormat::createFormatCLUT8. This may only have any other result if '''the same game''' has already run an initSize with a different format, and is trying to switch formats during runtime.
#**If setup is successful, update the value that getScreenFormat returns to the value that was requested.
#**If setup is successful, update the value that getScreenFormat returns to the value that was requested.
#***If format is supported by backend but not directly in hardware, ensure that graphics are converted in copyRectToScreen
#***If format is supported by backend but not directly in hardware, ensure that graphics are converted in copyRectToScreen
20

edits