spMove (function)

Positions the upper-left corner of the sprite on the screen.

Syntax

#include <sp.h> /* sp.h */
void spMove(Sprite *sp, s32 xpos, s32 ypos)

Arguments

*sp
Pointer to the sprite

xpos
Horizontal position of the left edge of the sprite

ypos
Vertical position of the top edge of the sprite

Description

It positions the upper-left corner of the sprite on the screen.

The extent of the drawn portion of the sprite is also affected by the sprite's inherent width (sp->width) and height (sp->height) , the scaling of the sprite (see spScale), and the current scissoring (see spScissor).

See Also

spDraw, spScale, spScissor

Revision History

1999/04/30 Changed Format