Class BaseShapeEmitter
Base class representing the base particle emitter.
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public abstract class BaseShapeEmitter
Properties
NeedsEntitySource
Gets a value indicating whether the emitter shape needs a source entity.
Declaration
public virtual bool NeedsEntitySource { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ShapeType
Gets the type of the shape.
Declaration
public abstract EmitterShapes ShapeType { get; }
Property Value
| Type | Description |
|---|---|
| EmitterShapes |
VelocityOffset
Gets or sets the directional randomness of the particle's emission velocity.
Declaration
public abstract Vector3 VelocityOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| Vector3 |
Methods
BindShape(ComputeEmitterSimulator)
Sets the shape properties for the particle computation.
Declaration
public virtual void BindShape(ComputeEmitterSimulator computeEmitter)
Parameters
| Type | Name | Description |
|---|---|---|
| ComputeEmitterSimulator | computeEmitter | The compute shader emitter simulator. |
CreateFromDescription(ShapeDescription)
Gets a shape emitter from its description.
Declaration
public static BaseShapeEmitter CreateFromDescription(ShapeDescription description)
Parameters
| Type | Name | Description |
|---|---|---|
| ShapeDescription | description | The shape description. |
Returns
| Type | Description |
|---|---|
| BaseShapeEmitter | The shape emitter. |
RaisePropertyChanged(string)
Raises the PropertyChanged event for the given property.
Declaration
protected virtual void RaisePropertyChanged(string propertyName = "")
Parameters
| Type | Name | Description |
|---|---|---|
| string | propertyName | The property name. |
RefreshShapeParameters(CommandBuffer, EmitterSimulator)
Refreshes the shape parameters.
Declaration
public virtual void RefreshShapeParameters(CommandBuffer commandBuffer, EmitterSimulator emitter)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | commandBuffer | The command buffer. |
| EmitterSimulator | emitter | The particle emitter. |
UnbindShape(ComputeEmitterSimulator)
Unsets the shape properties of the particle compute.
Declaration
public virtual void UnbindShape(ComputeEmitterSimulator computeEmitter)
Parameters
| Type | Name | Description |
|---|---|---|
| ComputeEmitterSimulator | computeEmitter | The compute shader emitter simulator. |
Events
PropertyChanged
Event triggered when the property has changed.
Declaration
public event EventHandler<string> PropertyChanged
Event Type
| Type | Description |
|---|---|
| EventHandler<string> |