20
edits
(→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, | #*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 | #**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... |
edits