![]() |
ClipSprite16 | Function* (tigcc.a) |
sprites.h |
void ClipSprite16 (short x, short y, short height, const unsigned short *sprite, void *vm_addr, short mode); |
Safely draws a sprite with a width of 16 pixels or less on the screen.
ClipSprite16 works exactly like Sprite16, but it doesn't draw out of the boundaries of a 240x128 screen,
unlike Sprite16 if given x < 0
, y < 0
, x > 224
or y > 128 - height
.
See Sprite8 for more info about sprites.