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

AllocSpriteDataA

Allocate sprite data and convert from a bitmap.

Declaration

Source position: agraphics.pas line 2143

function AllocSpriteDataA(

  Bm: PBitMap;

  Tags: PTagItem

):PExtSprite;

Function result

a pointer to a ExtSprite structure, or nil if there is a failure. You should pass this pointer to FreeSpriteData() when finished with the sprite.

Description

Allocate memory to hold a sprite image, and convert the passed-in bitmap data to the appropriate format. The tags allow specification of width, scaling, and other options.

See also

FreeSpriteData

  

free sprite data allocated by AllocSpriteData()

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.

GetExtSpriteA

  

Attempt to get a sprite for the extended sprite manager.

AllocBitMap

  

Allocate a bitmap and attach bitplanes to it.

AllocSpriteData

  

VarArgs Version of AllocSpriteDataA()


Documentation generated on: 2021-07-30