AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkSprite.GetSpriteByID Method

If you only have an internal AGK sprite ID, then you can use this function to get the sprite object for this ID.

Syntax
Pascal
class function GetSpriteByID(const ID: Integer): TAgkSprite; static;
Parameters 
Description 
const ID: Integer 
The ID for which you want to retrieve the sprite object. 

The sprite object with the given ID, or nil if no sprite with that ID exists.

The returned object may be a newly created sprite object in case the sprite with the given ID was internally created by AGK.

Copyright (c) 2012. All rights reserved.