GLBasic User Manual

Main sections

ROTOSPRITE

ROTOSPRITE num%, x%, y%, phi#



Similar to DRAWSPRITE in that it draws a sprite image to the back buffer, but it features a rotation of the sprite by the angle phi# (DEG) counter clockwise. You can use the same image num% multiple times to draw multiple copies of the same sprite.

Sample:
LOADSPRITE "Sprite.bmp", 0
ROTOSPRITE 0, 100, 100, 45
SHOWSCREEN
MOUSEWAIT

See also...