top logo menu kitty mascot
AROS.ORG Forum Software Bounties

graphics

Index


ChangeExtSpriteA() MoveSprite()    

ChangeExtSpriteA()

Synopsis

LONG ChangeExtSpriteA(
         struct ViewPort * vp,
         struct ExtSprite * oldsprite,
         struct ExtSprite * newsprite,
         struct TagItem * tags );

LONG ChangeExtSprite(
         struct ViewPort * vp,
         struct ExtSprite * oldsprite,
         struct ExtSprite * newsprite,
         TAG tag, ... );

Inputs

vp        - pointer to ViewPort structure that this sprite is
            relative to, or NULL if relative only top of View
oldsprite - pointer to the old ExtSprite structure
newsprite - pointer to the new ExtSprite structure
tags      - pointer to taglist

Result

success - 0 if there was an error

MoveSprite()

Synopsis

void MoveSprite(
         struct ViewPort * vp,
         struct SimpleSprite * sprite,
         WORD x,
         WORD y );

Function

Move sprite to a new position on the screen. Coordinates
are specified relatively to given ViewPort, or relatively
to the entire View (physical display) if the ViewPort is NULL.

This function works also with extended sprites, since
struct SimpleSprite is a part of struct ExtSprite.

Inputs

vp     - a ViewPort for relative sprite positioning or NULL
sprite - a pointer to a sprite descriptor structure
x      - a new X coordinate
y      - a new Y coordinate

Result

None.

Notes

ViewPort is also used in order to specify the physical display.
If it's not specified, Amiga(tm) chipset display is assumed.
This is available only on Amiga(tm) architecture.