Difference between revisions of "API-Truecolor"

Jump to navigation Jump to search
18 bytes added ,  15:17, 25 October 2018
m
Text replacement - "</source>" to "</syntaxhighlight>"
m (Fix code rendering)
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(One intermediate revision by the same user not shown)
Line 39: Line 39:
==== Example ====
==== Example ====
Here is an example of a simple engine that uses the best color depth available to display and color-cycle this gradient: [[Image:QuuxGradientRGB565.png]]
Here is an example of a simple engine that uses the best color depth available to display and color-cycle this gradient: [[Image:QuuxGradientRGB565.png]]
<source lang="cpp">
<syntaxhighlight lang="cpp">
Common::Error QuuxEngine::run() {
Common::Error QuuxEngine::run() {
Graphics::PixelFormat ourFormat;
Graphics::PixelFormat ourFormat;
Line 156: Line 156:
return Common::kNoError;
return Common::kNoError;
}
}
</source>
</syntaxhighlight>


=== Backend initialization protocol ===
=== Backend initialization protocol ===
TrustedUser
2,147

edits

Navigation menu