Move sprite to a point relative to top of viewport.
Source position: agraphics.pas line 2352
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. |