Description | Hierarchy | Fields | Methods | Properties |
type TGUISpriteBank = class(TReferenceCounted)
Sprite bank interface.
See http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=25742&highlight=spritebank for more information how to use the spritebank.
![]() |
function AddTextureAsSprite(Texture: TTexture): LongInt; inline; |
![]() |
function GetPosition(Index: LongWord): TRect; inline; |
![]() |
function GetSprite(Index: LongWord): TGUISprite; inline; |
![]() |
function GetTexture(Index: LongWord): TTexture; inline; |
![]() |
procedure AddTexture(Texture: TTexture); inline; |
![]() |
procedure Clear; inline; |
![]() |
procedure Draw2DSprite(Index: LongWord; const Pos: TPoint; const ClipRect: TRect; Color: TARGBColor = $ffffffff; StartTime: LongWord = 0; CurrentTime: LongWord = 0; Loop: Boolean = True; Center: Boolean = False); overload; inline; |
![]() |
procedure Draw2DSprite(Index: LongWord; const Pos: TPoint); overload; inline; |
![]() |
procedure Draw2DSpriteBatch(const Indices: array of LongWord; const Positions: array of TPoint; const ClipRect: TRect; Color: TARGBColor = $ffffffff; StartTime: LongWord = 0; CurrentTime: LongWord = 0; Loop: Boolean = True; Center: Boolean = False); overload; |
![]() |
procedure Draw2DSpriteBatch(const Indices: array of LongWord; const Positions: array of TPoint); overload; |
![]() |
procedure SetTexture(Index: LongWord; Texture: TTexture); inline; |
![]() |
property PositionCount: LongWord read GetPositionCount; |
![]() |
property SpriteCount: LongWord read GetSpriteCount; |
![]() |
property TextureCount: LongWord read GetTextureCount; |
![]() |
function AddTextureAsSprite(Texture: TTexture): LongInt; inline; |
Add the texture and use it for a single non-animated sprite. ReturnsThe index of the sprite or -1 on failure. |
![]() |
function GetPosition(Index: LongWord): TRect; inline; |
Fetches a target position. Parameters
|
![]() |
function GetSprite(Index: LongWord): TGUISprite; inline; |
Fetches a sprite. Parameters
|
![]() |
function GetTexture(Index: LongWord): TTexture; inline; |
Fetches a texture. Parameters
|
![]() |
procedure AddTexture(Texture: TTexture); inline; |
Adds a texture to the sprite bank. Parameters
|
![]() |
procedure Clear; inline; |
Clears all sprites, rectangles and textures |
![]() |
procedure Draw2DSprite(Index: LongWord; const Pos: TPoint; const ClipRect: TRect; Color: TARGBColor = $ffffffff; StartTime: LongWord = 0; CurrentTime: LongWord = 0; Loop: Boolean = True; Center: Boolean = False); overload; inline; |
Draws a sprite, clipping it to a given rectangle. Parameters
|
![]() |
procedure Draw2DSpriteBatch(const Indices: array of LongWord; const Positions: array of TPoint; const ClipRect: TRect; Color: TARGBColor = $ffffffff; StartTime: LongWord = 0; CurrentTime: LongWord = 0; Loop: Boolean = True; Center: Boolean = False); overload; |
Draws multiple indices, clipping them to a single rectangle. Parameters
|
![]() |
procedure SetTexture(Index: LongWord; Texture: TTexture); inline; |
Changes one of the textures in the sprite bank. Parameters
|
![]() |
property PositionCount: LongWord read GetPositionCount; |
Returns the number of target positions. |
![]() |
property SpriteCount: LongWord read GetSpriteCount; |
Returns the number of sprites. |
![]() |
property TextureCount: LongWord read GetTextureCount; |
Returns the number of textures in the bank. |