561
edits
(add link to HOWTO-Open Pages, fix some typos) |
(→Example: engines/quux/quux.cpp: update to new graphics transaction features) |
||
Line 191: | Line 191: | ||
int QuuxEngine::init() { | int QuuxEngine::init() { | ||
// Initialize graphics using following | // Initialize graphics using following: | ||
initGraphics(320, 200, false); | |||
// You could use backend transactions directly as an alternative, | |||
// but it isn't recommended, until you want to handle the error values | |||
// from OSystem::endGFXTransaction yourself. | |||
_system->endGFXTransaction(); | // This is just an example template: | ||
//_system->beginGFXTransaction(); | |||
// // This setup the graphics mode according to users seetings | |||
// initCommonGFX(false); | |||
// | |||
// // Specify dimensions of game graphics window. | |||
// // In this example: 320x200 | |||
// _system->initSize(320, 200); | |||
//FIXME: You really want to handle | |||
//OSystem::kTransactionSizeChangeFailed here | |||
//_system->endGFXTransaction(); | |||
// Create debugger console. It requires GFX to be initialized | // Create debugger console. It requires GFX to be initialized |
edits