FlipScreen

From Spheriki

Jump to: navigation, search

FlipScreen flips the back and front video buffers, essentially showing anything drawn on the screen (e.g. when using Line or Font.drawText). The buffer is then cleared.

Usage

FlipScreen();

Examples

The following draws the text "Hello world!" onto the screen and then displays it using FlipScreen.

GetSystemFont().drawText(0, 0, "Hello world!");
FlipScreen();

Notes

You must call FlipScreen after drawing to the screen in order to display it. Since the buffer is cleared, when using GrabImage or GrabSurface you should call them before you call FlipScreen.

If you draw stuff in a map render script, you do not need to call this function. It's already done for you by the map; doing it again will make your drawing disappear.

Personal tools