Class BaseShapeEmitter
Base class that represents the base particle emitter.
Inherited Members
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 an entity source.
Declaration
public virtual bool NeedsEntitySource { get; }
Property Value
Type | Description |
---|---|
bool |
ShapeType
Gets the shape type.
Declaration
public abstract EmitterShapes ShapeType { get; }
Property Value
Type | Description |
---|---|
Emitter |
VelocityOffset
Gets or sets the directional random on the particle's emission velocity.
Declaration
public abstract Vector3 VelocityOffset { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
Methods
BindShape(ComputeEmitterSimulator)
Sets the shape properties to the particle compute.
Declaration
public virtual void BindShape(ComputeEmitterSimulator computeEmitter)
Parameters
Type | Name | Description |
---|---|---|
Compute |
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 |
---|---|---|
Shape |
description | The shape description. |
Returns
Type | Description |
---|---|
Base |
The shape emitter. |
RaisePropertyChanged(string)
Raise the Property
Declaration
protected virtual void RaisePropertyChanged(string propertyName = "")
Parameters
Type | Name | Description |
---|---|---|
string | propertyName | The porperty name. |
RefreshShapeParameters(CommandBuffer, EmitterSimulator)
Refreshes the shape parameters.
Declaration
public virtual void RefreshShapeParameters(CommandBuffer commandBuffer, EmitterSimulator emitter)
Parameters
Type | Name | Description |
---|---|---|
Command |
commandBuffer | The comand buffer. |
Emitter |
emitter | The particles emitter. |
UnbindShape(ComputeEmitterSimulator)
Unsets the shape properties to the particle compute.
Declaration
public virtual void UnbindShape(ComputeEmitterSimulator computeEmitter)
Parameters
Type | Name | Description |
---|---|---|
Compute |
computeEmitter | The compute shader emitter simulator. |
Events
PropertyChanged
Event launched when the property has been changed.
Declaration
public event EventHandler<string> PropertyChanged
Event Type
Type | Description |
---|---|
Event |