Allocate sprite data and convert from a bitmap.
Source position: agraphics.pas line 2203
function AllocSpriteDataA( |
Bitmap: PBitMap; |
TagList: PTagItem |
):PExtSprite; |
Bitmap |
|
Pointer to a bitmap. This bitmap provides the source data for the sprite image. |
TagList |
|
Tags for defining the Sprite (SPRITEA_*) |
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.
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.
|
free sprite data allocated by AllocSpriteData() |
|
|
Return sprite for use by others and virtual sprite machine. |
|
|
Change the sprite image pointer. |
|
|
Move sprite to a point relative to top of viewport. |
|
|
Attempt to get a sprite for the extended sprite manager. |
|
|
Allocate a bitmap and attach bitplanes to it. |
|
|
VarArgs Version of AllocSpriteDataA() |