Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

MoveSprite

Move sprite to a point relative to top of viewport.

Declaration

Source position: agraphics.pas line 2364

procedure MoveSprite(

  Vp: PViewPort;

  Sprite: PSimpleSprite;

  X: LongInt;

  Y: LongInt

);

Arguments

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

Description

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.

See also

FreeSprite

  

Return sprite for use by others and virtual sprite machine.

ChangeSprite

  

Change the sprite image pointer.

GetSprite

  

Attempt to get a sprite for the simple sprite manager.


Documentation generated on: 2021-07-30