| Description | Hierarchy | Fields | Methods | Properties |
type TFB_Context = class(TObject)
Particle generation context
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
procedure Update(ADeltaTime: Single); |
![]() |
procedure Render(APrepareGL: Boolean = true); |
![]() |
procedure Enable(ATarget: Cardinal); |
![]() |
procedure Disable(ATarget: Cardinal); |
![]() |
procedure FloatParameter(ATarget: Cardinal; AValue: PSingle); |
![]() |
procedure GetFloat(ATarget: Cardinal; ADest: PSingle); |
![]() |
procedure GetBool(ATarget: Cardinal; ADest: PBoolean); |
![]() |
procedure ResetContext; |
![]() |
procedure PreallocateMemory(AParticleCount: Cardinal); |
![]() |
procedure ReleaseMemory; |
![]() |
procedure SetContextUserData(ARef: Pointer); |
![]() |
procedure AddMagnet(AMagnet: TFB_Magnet); |
![]() |
procedure RemoveMagnet(AMagnet: TFB_Magnet); |
![]() |
procedure RemoveMagnets; |
![]() |
procedure AddCollisionTree(ACollisionTree: TFB_CollisionTree); |
![]() |
procedure RemoveCollisionTree(ACollisionTree: TFB_CollisionTree); |
![]() |
procedure RemoveCollisionTrees; |
![]() |
procedure SetBlendFunc(ASrc, ADst: TGLUInt); |
![]() |
procedure SetSkeletonResolution(AValue: Cardinal); |
![]() |
procedure SetVertexStorage(AStorageType: Cardinal); |
![]() |
procedure SetPhysicsModel(APhysicsModel: Cardinal); |
![]() |
procedure AddTexture(AGLName: TGLUInt; ARows, ACols: Integer); |
![]() |
procedure BindTexture(ATextureIndex: Integer); |
![]() |
procedure ResetParticlePrototype; |
![]() |
procedure pp_Texture(ATileIndex: Cardinal); |
![]() |
procedure pp_AppearanceModel(AModel: TFB_AppearanceModel); |
![]() |
procedure pp_Size(w, h: Single); overload; |
![]() |
procedure pp_Size(ARef: PSingle); overload; |
![]() |
procedure pp_Color(r, g, b, a: Single); overload; |
![]() |
procedure pp_Color(ARef: PSingle); overload; |
![]() |
procedure pp_Velocity(x, y, z: Single); overload; |
![]() |
procedure pp_Velocity(ARef: PSingle); overload; |
![]() |
procedure pp_Force(x, y, z: Single); overload; |
![]() |
procedure pp_Force(ARef: PSingle); overload; |
![]() |
procedure pp_Mass(AValue: Single); |
![]() |
procedure pp_Material(AMaterial: TFB_Material); |
![]() |
procedure pp_AirResistance(AValue: Single); |
![]() |
procedure pp_NormalContrast(AValue: Single); |
![]() |
procedure pp_Omega(AValue: Single); |
![]() |
procedure pp_LifeSpan(AValue: Single); |
![]() |
procedure pp_UserData(AValue: Pointer); |
![]() |
procedure pp_CalculatedEvent(AValue: TFB_NotifyEvent); |
![]() |
procedure pp_DestroyedEvent(AValue: TFB_NotifyEvent); |
![]() |
procedure pp_GravitatedEvent(AValue: TFB_GravitatedEvent); |
![]() |
procedure pp_CollidedEvent(AValue: TFB_CollidedEvent); |
![]() |
procedure AddParticle(x, y, z: Single); overload; |
![]() |
procedure AddParticle(ARef: PSingle); overload; |
![]() |
property ParticleCount: Cardinal read GetParticleCount; |
![]() |
property AllocationIncrement: Cardinal read GetAllocationIncrement write SetAllocationIncrement; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
procedure Update(ADeltaTime: Single); |
|
Recalculates all particles. Parameters
| |
![]() |
procedure Render(APrepareGL: Boolean = true); |
|
Renders all particles. activated and deactivated. Parameters
| |
![]() |
procedure Enable(ATarget: Cardinal); |
|
Enables a FireBlade function. See also | |
![]() |
procedure Disable(ATarget: Cardinal); |
|
Disables a FireBlade function. See also | |
![]() |
procedure FloatParameter(ATarget: Cardinal; AValue: PSingle); |
|
Sets a context float parameter. Parameters
See also | |
![]() |
procedure GetFloat(ATarget: Cardinal; ADest: PSingle); |
|
Writes a float parameter's value to a destination. Parameters
See also | |
![]() |
procedure GetBool(ATarget: Cardinal; ADest: PBoolean); |
|
Writes the boolean state of a FireBlade function to a destination. Parameters
See also | |
![]() |
procedure ResetContext; |
|
Resets all values to default and calls TFB_Context.ReleaseMemory and TFB_Context.ResetParticlePrototype | |
![]() |
procedure ReleaseMemory; |
|
Removes all particles from the container | |
![]() |
procedure SetContextUserData(ARef: Pointer); |
|
Sets user data for the context. Parameters
| |
![]() |
procedure AddMagnet(AMagnet: TFB_Magnet); |
|
Adds the magnet to the context. | |
![]() |
procedure RemoveMagnet(AMagnet: TFB_Magnet); |
|
Removes the magnet from the context, if existing. | |
![]() |
procedure RemoveMagnets; |
|
Removes all magnets from the context. | |
![]() |
procedure AddCollisionTree(ACollisionTree: TFB_CollisionTree); |
|
Adds the collision tree to the context. | |
![]() |
procedure RemoveCollisionTree(ACollisionTree: TFB_CollisionTree); |
|
Removes the collision tree from the context, if existing. | |
![]() |
procedure RemoveCollisionTrees; |
|
Removes all collision trees from the context. | |
![]() |
procedure SetBlendFunc(ASrc, ADst: TGLUInt); |
|
Sets the OpenGL blending functions for rendering. Parameters
| |
![]() |
procedure SetSkeletonResolution(AValue: Cardinal); |
|
Sets the skeleton resolution for a particle. Only legal if FB_SMEAR is enabled | |
![]() |
procedure SetVertexStorage(AStorageType: Cardinal); |
|
Sets the vertex storage type. See also | |
![]() |
procedure SetPhysicsModel(APhysicsModel: Cardinal); |
|
Sets the physics model to use. See also | |
![]() |
procedure AddTexture(AGLName: TGLUInt; ARows, ACols: Integer); |
|
Adds a texture to the context. Parameters
| |
![]() |
procedure BindTexture(ATextureIndex: Integer); |
|
Sets a registered texture to use. Parameters
| |
![]() |
procedure ResetParticlePrototype; |
|
Resets all values of the particle prototype to default. | |
![]() |
procedure pp_Texture(ATileIndex: Cardinal); |
|
Particle Prototype setting. Tile index in the current texture. This may make sense if FB_APPEARANCE is disabled. | |
![]() |
procedure pp_AppearanceModel(AModel: TFB_AppearanceModel); |
|
Particle Prototype setting. Color sequence. | |
![]() |
procedure pp_Size(w, h: Single); overload; |
|
Particle Prototype setting. Initial size. This may make sense if FB_APPEARANCE is disabled. | |
![]() |
procedure pp_Color(r, g, b, a: Single); overload; |
|
Particle Prototype setting. Initial color. This may make sense if FB_APPEARANCE is disabled. | |
![]() |
procedure pp_Velocity(x, y, z: Single); overload; |
|
Particle Prototype setting. Initial Velocity. | |
![]() |
procedure pp_Velocity(ARef: PSingle); overload; |
|
Particle Prototype setting. Initial Velocity. Parameters
| |
![]() |
procedure pp_Force(x, y, z: Single); overload; |
|
Particle Prototype setting. Permanent force. | |
![]() |
procedure pp_Force(ARef: PSingle); overload; |
|
Particle Prototype setting. Permanent force, Parameters
| |
![]() |
procedure pp_Mass(AValue: Single); |
|
Particle Prototype setting. Mass of a particle in kilograms (megatons for realistic magnet mode). | |
![]() |
procedure pp_Material(AMaterial: TFB_Material); |
|
Particle Prototype setting. Material of a particle (only necessary for collision detection). | |
![]() |
procedure pp_AirResistance(AValue: Single); |
|
Particle Prototype setting. CD-Value of a particle. | |
![]() |
procedure pp_NormalContrast(AValue: Single); |
|
Particle Prototype setting. Z-Coordinate divisor, Must not be zero. | |
![]() |
procedure pp_Omega(AValue: Single); |
|
Particle Prototype setting. Angle speed, radians. | |
![]() |
procedure pp_LifeSpan(AValue: Single); |
|
Particle Prototype setting. Lifespan. | |
![]() |
procedure pp_UserData(AValue: Pointer); |
|
Particle Prototype setting. User Data. | |
![]() |
procedure pp_CalculatedEvent(AValue: TFB_NotifyEvent); |
|
Particle Prototype setting. Calculated Event. Fired after the particle was recalculated. | |
![]() |
procedure pp_DestroyedEvent(AValue: TFB_NotifyEvent); |
|
Particle Prototype setting. Destroyed Event. Fired after the particle was destroyed. | |
![]() |
procedure pp_GravitatedEvent(AValue: TFB_GravitatedEvent); |
|
Particle Prototype setting. Gravitated Event. Fired while the particle is gravitated by a magnet. | |
![]() |
procedure pp_CollidedEvent(AValue: TFB_CollidedEvent); |
|
Particle Prototype setting. Collided Event. Fired after the particle collided with a collision tree. | |
![]() |
procedure AddParticle(ARef: PSingle); overload; |
|
Adds a Particle to the context. Parameters
| |
![]() |
property ParticleCount: Cardinal read GetParticleCount; |
|
Current particle count in the context | |
![]() |
property AllocationIncrement: Cardinal read GetAllocationIncrement write SetAllocationIncrement; |
|
The allocation size increment when new memory has to be allocated. | |