lindsay²
i don't think you need to update or draw the display it self, you need to update things and then send them to the display, sending things to display is done in the "Draw()".
usually you do something like this
D.text(0,0,"Hello world);
D.full(); is just a ON/OFF switch for full screen, as there is many other ON/OFF available calls.
maybe i am not getting you question right but, when you set D.full(true); it automatically goes full screen, you don't need to update or draw it.
i took the time to edit the tutorial 1.
pressing space will switch from window to full screen.
Code:
/******************************************************************************/
#include "stdafx.h" // include precompiled header
/******************************************************************************/
void InitPre() // init before engine inits
{
// here you will have to setup initial engine settings
// like application name, its options, screen resolution...
App.name("Start"); // application name
Paks.add("../../data/engine.pak"); // load engine data
D.sync(true); // enable screen synchronization
}
/******************************************************************************/
Bool Init() // initialize after engine is ready
{
// here when engine will be ready you can load your game data
// return false when error occured
return true;
}
/******************************************************************************/
void Shut() // shut down at exit
{
// this is called when the engine is about to exit
}
/******************************************************************************/
Bool Update() // main updating
{
// here you have to process each frame update
if(Kb.bp(KB_ESC))return false; // exit if escape on the keyboard pressed
return true; // continue
}
/******************************************************************************/
void Draw() // main drawing
{
// here you have to tell engine what to draw on the screen
D.clear(TURQ); // clear screen to turquoise color
D.text (0, 0.1f,"This is the First Tutorial"); // draw text at (0, 0.1) position
D.text (0,-0.1f,"Replace the CPP with some other file to view a different Tutorial"); // draw text at (0,-0.1) position
if(Kb.bp(KB_SPACE))
D.full(!D.full());
}
/******************************************************************************/