Class TFB_AppearanceModel

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TFB_AppearanceModel = class(TObject)

Description

Particle appearance sequence

Hierarchy

Overview

Methods

Public constructor Create;
Public procedure AddHook(ATime: Single);
Public procedure SetColor(r, g, b, a: Single); overload;
Public procedure SetColor(ARef: PSingle); overload;
Public procedure SetSize(AWidth, AHeight: Single); overload;
Public procedure SetSize(ARef: PSingle); overload;
Public procedure SetTexture(ATile: Cardinal);

Properties

Public property InterpolationFunc: Cardinal read FInterpolFunc write FInterpolFunc;
Public property SizeFunc: Cardinal read FSizeFunc write FSizeFunc;
Public property Growth: TFB_Vectorf2 read FGrowth write FGrowth;
Public property Count: Cardinal read FCount;
Public property FreeOnZeroRef: Boolean read FFreeWORef write FFreeWORef;

Description

Methods

Public constructor Create;

Class constructor

Public procedure AddHook(ATime: Single);

Adds a time hook to the sequence and makes it current Must be higher than previously added hooks.

Parameters
ATime
Relative Age of the particle when the appearance definitions shall be fully applied.
Public procedure SetColor(r, g, b, a: Single); overload;

Sets the color at the current hook

Parameters
r
Red component
g
Green component
b
Blue component
a
Alpha component
Public procedure SetColor(ARef: PSingle); overload;

Sets the color at the current hook than previously added colours' times

Parameters
ARef
Pointer to a sequence of four single values in rgba format.
ATime
Relative Age of the particle where the color shall be fully applied. Must be higher
Public procedure SetSize(AWidth, AHeight: Single); overload;

Sets the size at the current hook

Parameters
AWidth
Particle width
AHeight
Particle height
Public procedure SetSize(ARef: PSingle); overload;

Sets the size at the current hook

Parameters
ARef
Pointer to a sequence of two single values which represent width and height.
Public procedure SetTexture(ATile: Cardinal);

Sets the texture tile index at the current hook.

Properties

Public property InterpolationFunc: Cardinal read FInterpolFunc write FInterpolFunc;

Appearance interpolation function. Default: FB_INTERPOLATION_LINEAR

See also
FB_INTERPOLATION_LINEAR
FB_INTERPOLATION_TRIGON
Public property SizeFunc: Cardinal read FSizeFunc write FSizeFunc;

Size calculation mode. Default: FB_SIZE_INTERPOLATION

See also
FB_SIZE_INTERPOLATION
FB_SIZE_ADDITION
Public property Growth: TFB_Vectorf2 read FGrowth write FGrowth;

Growth vector.

See also
FB_SIZE_ADDITION
Public property Count: Cardinal read FCount;

Count of hooks in the model

Public property FreeOnZeroRef: Boolean read FFreeWORef write FFreeWORef;

If true, the object will be removed from memory if no particle uses it anymore.


Generated by PasDoc 0.11.0 on 2009-06-29 23:12:35