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

ChangeExtSpriteA

Change the sprite image pointer.

Declaration

Source position: agraphics.pas line 2282

function ChangeExtSpriteA(

  vp: pViewPort;

  oldsprite: pExtSprite;

  newsprite: pExtSprite;

  const tags: pTagItem

):LongInt;

Arguments

vp

  

A pointer to ViewPort structure that this sprite is relative to, or nil if relative only top of View

oldsprite

  

A pointer the old ExtSprite structure

newsprite

  

A pointer to the new ExtSprite structure.

tags

  

Tags for change the Sprite (GSTAG_*)

Function result

0 if there was an error.

Description

Attempt to change which sprite is displayed for a given sprite engine.

See also

ChangeExtSprite

  

VarArgs version of ChangeExtSpriteA

FreeSprite

  

Return sprite for use by others and virtual sprite machine.

ChangeSprite

  

Change the sprite image pointer.

MoveSprite

  

Move sprite to a point relative to top of viewport.

AllocSpriteDataA

  

Allocate sprite data and convert from a bitmap.


Documentation generated on: 2021-07-30