GLBasic User Manual

Main sections

USEASBMP

USEASBMP



Copies the current back buffer (hidden surface) to the background image buffer. As a result, it will form the background for your program's display from the next call to SHOWSCREEN.

Sample:
 
// Star background
FOR i=0 TO 1000
PRINT "*", RND(800), RND(600)
NEXT
USEASBMP // Save as background

FOR i=0 TO 600
PRINT "-=v=-", 100, i
SHOWSCREEN
NEXT
MOUSEWAIT


Note : On the iPhone, this command only works in Portrait mode.

See also...