Legacy:FlipScreen

From Spherical
Revision as of 21:05, 4 June 2013 by Apollolux (talk | contribs) (added navbox)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Causes the back buffer to be displayed to the screen for one time frame.

Usage

FlipScreen();


Notes

Must be called every time you intend to draw stuff to the screen (outside the render script of the map engine).

Examples

Drawing stuff to the screen:

var a = GetSystemArrow();
var f = GetSystemFont();

while (!IsKeyPressed(KEY_ESCAPE)) {
    a.blit(50, 50);
    f.drawText(0, 0, "An arrow!");
    FlipScreen();
}


See also

API:Video/navbox