Move sprite to a point relative to top of viewport.
Source position: agraphics.pas line 2051
procedure MoveSprite( |
Vp: PViewPort; |
Sprite: PSimpleSprite; |
X: LongInt; |
Y: LongInt |
); |
Vp |
|
A ViewPort for relative sprite positioning or nil |
Sprite |
|
A pointer to a sprite descriptor structure |
X |
|
A new X coordinate |
Y |
|
A new Y coordinate |
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 nil.
This function works also with extended sprites, since TSimpleSprite is a part of TExtSprite.
Amiga currently supports only one sprite #0 for mouse pointer. Other sprite numbers are ignored by this function.
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.
|
Return sprite for use by others and virtual sprite machine. |
|
|
Change the sprite image pointer. |
|
|
Attempt to get a sprite for the simple sprite manager. |