This is a second wave of breaking API changes based on the official guidelines (I can hear you cry from here).
Most notable changes:
All service init functions have been renamed to new (it's standard for any constructor).
Types derive as many traits as possible (each was thought out for the type's specific purpose, of course)
Small renames
Gfx::swap_buffers and Gfx::flush_buffers have been moved to the Screen trait. Originally, those functions modified a global state. Now each Screen can flush its own buffers. Also, Console handles flushing and swapping by itself, so most examples don't even mention those functions anymore.
This is one of the last PRs in preparation to the docs PR.
Related to #102
This is a second wave of breaking API changes based on the official guidelines (I can hear you cry from here).
Most notable changes:
init
functions have been renamed tonew
(it's standard for any constructor).Gfx::swap_buffers
andGfx::flush_buffers
have been moved to theScreen
trait. Originally, those functions modified a global state. Now eachScreen
can flush its own buffers. Also,Console
handles flushing and swapping by itself, so most examples don't even mention those functions anymore.This is one of the last PRs in preparation to the docs PR.