GLBasic User Manual

Main sections

ROTOZOOMSPRITE

ROTOZOOMSPRITE num%, x%, y%, phi#, rel#



A mixture of ROTOSPRITE and ZOOMSPRITE to rotate, zoom then draw a sprite to the back buffer. To rotate and scale the sprite disproportionally you would need to use a POLYVECTOR. You can use the same image num% multiple times to draw multiple copies of the same sprite.

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

See also...