Difference between revisions of "API-Truecolor"

Jump to navigation Jump to search
37 bytes removed ,  08:58, 9 July 2009
→‎Engine initialization protocol: corrected outdated references to removed PixelFormat::createFormat{some format} functions.
(→‎Engine initialization protocol: corrected outdated references to removed PixelFormat::createFormat{some format} functions.)
Line 28: Line 28:


#Determine/obtain desired pixel format
#Determine/obtain desired pixel format
#*If your engine can only produce graphics in one RGB color format, use Graphics::PixelFormat::createFormat{the desired format}.
#*If your engine can only produce graphics in one RGB color format, initialize a Graphics::PixelFormat to the desired format.
#**For instance, if your engine can only produce graphics in RGB555, you might say Graphics::PixelFormat requestedFormat = Graphics::PixelFormat::createFormatRGB555();
#**For instance, if your engine can only produce graphics in RGB555, you would say Graphics::PixelFormat(2, 3, 3, 3, 8, 10, 5, 0, 0);
#*If your engine can easily support any RGB mode (for instance if it converts from YUV), call OSystem::getSupportedFormats and use the first value in the returned Common::List.
#*If your engine can easily support any RGB mode (for instance if it converts from YUV), call OSystem::getSupportedFormats and use the first value in the returned Common::List.
#*If your engine can support more than one RGB mode, but not all of them...
#*If your engine can support more than one RGB mode, but not all of them...
20

edits

Navigation menu