| Description | Hierarchy | Fields | Methods | Properties |
type TFBU_EffectManager = class(TObject)
This is the main manager class. See the unit description for a detailed description of how it works.
![]() |
FWind: TFB_Vectorf3; |
![]() |
FEffects: Array of TFBU_Effect; |
![]() |
FCamPosition: TFB_Vectorf3; |
![]() |
FUpdateDelay: Single; |
![]() |
FVertexStorage: Cardinal; |
![]() |
FCount: Cardinal; |
![]() |
FSizeIncrement: Cardinal; |
![]() |
procedure Sort; |
![]() |
procedure ResetCalcDelays; |
![]() |
procedure OnEffectFinished(Sender: TObject); |
![]() |
function FindItem(AItem: TFBU_Effect): Integer; |
![]() |
constructor Create; |
![]() |
procedure Add(AEffect: TFBU_Effect; AExcludeFromDelay: Boolean = false); |
![]() |
procedure Remove(AEffect: TFBU_Effect); |
![]() |
procedure RemoveAll; |
![]() |
procedure SendTermSignalToAll; |
![]() |
procedure SetWind(x, y, z: Single); overload; |
![]() |
procedure SetWind(ARef: Pointer); overload; |
![]() |
procedure SetVertexStorage(AVertexStorage: Cardinal); |
![]() |
procedure Update(AViewMat: Pointer; ADeltaTime: Single); overload; |
![]() |
procedure Update(ADeltaTime: Single); overload; |
![]() |
procedure Render(APrepareGL: Boolean = True); |
![]() |
property Wind: TFB_Vectorf3 read FWind; |
![]() |
property UpdateDelay: Single read FUpdateDelay write SetUpdateDelay; |
![]() |
property Count: Cardinal read FCount; |
![]() |
property AllocationIncrement: Cardinal read FSizeIncrement write FSizeIncrement; |
![]() |
property Item[Index: Integer]: TFBU_Effect read GetItem; |
![]() |
FWind: TFB_Vectorf3; |
|
Assigned wind vector | |
![]() |
FEffects: Array of TFBU_Effect; |
|
Array which stores the effects | |
![]() |
FCamPosition: TFB_Vectorf3; |
|
The position of the camera | |
![]() |
FUpdateDelay: Single; |
|
The delay after which the Update method of an effect shall be called | |
![]() |
FVertexStorage: Cardinal; |
|
Storage Type | |
![]() |
FCount: Cardinal; |
|
Effect Count | |
![]() |
FSizeIncrement: Cardinal; |
|
Array size increment | |
![]() |
procedure Sort; |
|
Sorts the array | |
![]() |
procedure ResetCalcDelays; |
|
Resets all update delays | |
![]() |
procedure OnEffectFinished(Sender: TObject); |
|
FEffectFinished callback method Parameters
| |
![]() |
function FindItem(AItem: TFBU_Effect): Integer; |
|
Searches an effect in the array Parameters
ReturnsThe items index in the array (-1 if it hasn't been found) | |
![]() |
constructor Create; |
|
Class constructor Parameters
| |
![]() |
procedure Add(AEffect: TFBU_Effect; AExcludeFromDelay: Boolean = false); |
|
Adds an effect to the manager Parameters
| |
![]() |
procedure Remove(AEffect: TFBU_Effect); |
|
Removes and frees the effect in the next update cycle Parameters
| |
![]() |
procedure RemoveAll; |
|
Removes and frees all effects in the next update cycle | |
![]() |
procedure SendTermSignalToAll; |
|
Sends the terminate signal to all effects See also | |
![]() |
procedure SetWind(x, y, z: Single); overload; |
|
Sets the wind vector for all registered effects. | |
![]() |
procedure SetWind(ARef: Pointer); overload; |
|
Sets the wind vector for all registered effects. | |
![]() |
procedure SetVertexStorage(AVertexStorage: Cardinal); |
|
Sets the vertex storage mode for FireBlade Parameters
See also | |
![]() |
procedure Update(ADeltaTime: Single); overload; |
|
Convenience method. Uses the current modelview matrix of OpenGL for calculation. Parameters
| |
![]() |
procedure Render(APrepareGL: Boolean = True); |
|
Renders all effects of OpenGL attributes to achieve texturing and blending Parameters
| |
![]() |
property Wind: TFB_Vectorf3 read FWind; |
|
Sets the wind vector for all effects | |
![]() |
property UpdateDelay: Single read FUpdateDelay write SetUpdateDelay; |
|
Sets the update delay | |
![]() |
property Count: Cardinal read FCount; |
|
The current effect count | |
![]() |
property AllocationIncrement: Cardinal read FSizeIncrement write FSizeIncrement; |
|
Array size incrementprocedure TFBU_EffectManager.SetWind(Value: TFB_Vectorf3); | |
![]() |
property Item[Index: Integer]: TFBU_Effect read GetItem; |
|
Standard property - Effect with index Index in the manager | |