Class TGUISprite

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUISprite = class(TObject)

Description

A sprite composed of several frames.

Hierarchy

Overview

Methods

Public constructor Create(NFrameTime: PLongWord; NFrames: PGUISpriteFrame; NCount: LongWord);

Properties

Public property FrameCount: LongWord read FFrameCount;
Public property Frames[Index: LongWord]: TGUISpriteFrame read GetFrame write SetFrame;
Public property FrameTime: LongWord read GetFrameTime write SetFrameTime;

Description

Methods

Public constructor Create(NFrameTime: PLongWord; NFrames: PGUISpriteFrame; NCount: LongWord);

Creates a new TGUISprite.
This is a public constructor and may be used to create new sprites manually from an existing array of sprites.
Be aware that this class only stores a pointer to the passed frames instead of copying it. This is likely to change in a future version.

Parameters
NFrameTime
The duration of a single frame.
NFrames
A pointer to the new frame array. This array needs to exist as long as the sprite, as it will not be copied!
NCount
The size of the NFrames array in elements.

Properties

Public property FrameCount: LongWord read FFrameCount;

The frame count.

Public property Frames[Index: LongWord]: TGUISpriteFrame read GetFrame write SetFrame;

Provides access to the single frames.

Public property FrameTime: LongWord read GetFrameTime write SetFrameTime;

The duration of a single frame.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22