Difference between revisions of "Legacy:FlipScreen"
From Spherical
(Created FlipScreen page) |
(added navbox) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
Causes the back buffer to be displayed to the screen for one time frame. | Causes the back buffer to be displayed to the screen for one time frame. | ||
Line 35: | Line 33: | ||
* [[API:font/drawText|font.drawText]](x, y, text) | * [[API:font/drawText|font.drawText]](x, y, text) | ||
* [[API:image/blit|image.blit]](x, y) | * [[API:image/blit|image.blit]](x, y) | ||
+ | |||
+ | {{API:Video/navbox}} |
Latest revision as of 21:05, 4 June 2013
Causes the back buffer to be displayed to the screen for one time frame.
Contents
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
- GetSystemArrow()
- IsKeyPressed()
- font.drawText(x, y, text)
- image.blit(x, y)