Class ParticlesManager
Scene manager of the particle systems.
Inheritance
ParticlesManager
  Implements
Inherited Members
Namespace: Evergine.Framework.Managers
Assembly: Evergine.Framework.dll
Syntax
public class ParticlesManager : UpdatableSceneManager, IDependencyObject
  Fields
IndexBufferShortSize
The size of the shared index buffer.
Declaration
public static readonly uint IndexBufferShortSize
  Field Value
| Type | Description | 
|---|---|
| uint | 
particlesLimit
The max amount of particles the system can handle.
Declaration
public uint particlesLimit
  Field Value
| Type | Description | 
|---|---|
| uint | 
Properties
ComputeCommandQueue
Gets the compute command queue.
Declaration
public CommandQueue ComputeCommandQueue { get; }
  Property Value
| Type | Description | 
|---|---|
| CommandQueue | 
Forces
Gets the particle forces in this scene.
Declaration
public IEnumerable<BaseForce> Forces { get; }
  Property Value
| Type | Description | 
|---|---|
| IEnumerable<BaseForce> | 
IsComputeEnabled
Gets a value indicating whether the application can use compute shaders.
Declaration
public bool IsComputeEnabled { get; }
  Property Value
| Type | Description | 
|---|---|
| bool | 
NoiseSize
Gets or sets the noise 3D texture size, Texture3D(size,size,size).
Declaration
public int NoiseSize { get; set; }
  Property Value
| Type | Description | 
|---|---|
| int | 
ParticlesLimit
Gets or sets the noise texture width.
Declaration
public uint ParticlesLimit { get; set; }
  Property Value
| Type | Description | 
|---|---|
| uint | 
RandomMatrix
Gets the random matrix.
Declaration
public Vector3[,,] RandomMatrix { get; }
  Property Value
| Type | Description | 
|---|---|
| Vector3[,,] | 
RandomTexture
Gets the noise texture.
Declaration
public Texture RandomTexture { get; }
  Property Value
| Type | Description | 
|---|---|
| Texture | 
SharedIndexBuffer
Gets the particles index buffer.
Declaration
public IndexBuffer SharedIndexBuffer { get; }
  Property Value
| Type | Description | 
|---|---|
| IndexBuffer | 
SharedIndexShortBuffer
Gets the particles index buffer using short as index.
Declaration
public IndexBuffer SharedIndexShortBuffer { get; }
  Property Value
| Type | Description | 
|---|---|
| IndexBuffer | 
Methods
OnAttached()
Invoked when the object is attached to the system.
Declaration
protected override bool OnAttached()
  Returns
| Type | Description | 
|---|---|
| bool | True if all is OK.  | 
      
Overrides
OnDetach()
Invoked when the object is detached.
Declaration
protected override void OnDetach()
  Overrides
Update(TimeSpan)
Update this manager.
Declaration
public override void Update(TimeSpan gameTime)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TimeSpan | gameTime | The game time.  | 
      
Overrides
Events
NoiseChanged
Event called when the noise texture has been updated.
Declaration
public event EventHandler NoiseChanged
  Event Type
| Type | Description | 
|---|---|
| EventHandler |