Difference between revisions of "API-Truecolor"

Jump to navigation Jump to search
No change in size ,  01:32, 23 May 2017
m
Fix code rendering
(→‎New functions: added description of generic pixelformat constructors)
m (Fix code rendering)
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]]
<syntax type="C++">
<source 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;
}
}
</syntax>
</source>


=== Backend initialization protocol ===
=== Backend initialization protocol ===
124

edits

Navigation menu