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

MoveSprite

Move sprite to a point relative to top of viewport.

Declaration

Source position: agraphics.pas line 2352

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