GLBasic User Manual

Main sections

DRAWSPRITE

DRAWSPRITE num%, x%, y%



A sprite image will be drawn to the back buffer. You can use the same image num% multiple times to draw multiple copies of the same sprite.

DRAWSPRITE


Draws the sprite with the ID number num% to the position x% and y%.

Sample:
LOADSPRITE "sprite.bmp", 0
DRAWSPRITE 0, 100, 100
SHOWSCREEN
MOUSEWAIT

See also...