TrustedUser
2,147
edits
m (Fix code rendering) |
m (Text replacement - "<source lang=" to "<syntaxhighlight lang=") |
||
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]] | ||
< | <syntaxhighlight lang="cpp"> | ||
Common::Error QuuxEngine::run() { | Common::Error QuuxEngine::run() { | ||
Graphics::PixelFormat ourFormat; | Graphics::PixelFormat ourFormat; |