ezEngine Release 26.3
Loading...
Searching...
No Matches
ezParticleStream_Color Class Referencefinal

#include <DefaultParticleStreams.h>

Inheritance diagram for ezParticleStream_Color:

Protected Member Functions

virtual void InitializeElements (ezUInt64 uiStartIndex, ezUInt64 uiNumElements) override
 The default implementation initializes all data with zero.
 
- Protected Member Functions inherited from ezParticleStream
virtual void Initialize (ezParticleSystemInstance *pOwner)
 Called once during stream creation to set up any necessary references or state.
 
virtual ezResult UpdateStreamBindings () final override
 Internal method which needs to be implemented, gets the concrete stream bindings. This is called every time the streams are resized. Implementations should check that their required streams exist and are of the correct data types.
 
virtual void Process (ezUInt64 uiNumElements) final override
 Particle streams do not process existing elements, they only initialize new ones.
 

Additional Inherited Members

- Public Member Functions inherited from ezProcessingStreamProcessor
 ezProcessingStreamProcessor ()
 Base constructor.
 
virtual ~ezProcessingStreamProcessor ()
 Base destructor.
 
- Public Member Functions inherited from ezReflectedClass
virtual const ezRTTIGetDynamicRTTI () const
 
bool IsInstanceOf (const ezRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
 
template<typename T >
EZ_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Public Attributes inherited from ezProcessingStreamProcessor
float m_fPriority = 0.0f
 Used for sorting processors, to ensure a certain order. Lower priority == executed first.
 
- Protected Attributes inherited from ezParticleStream
ezProcessingStreamm_pStream
 The underlying data stream managed by this particle stream.
 
- Protected Attributes inherited from ezProcessingStreamProcessor
ezProcessingStreamGroupm_pStreamGroup = nullptr
 Back pointer to the stream group - will be set to the owner stream group when adding the stream processor to the group. Can be used to get stream pointers in UpdateStreamBindings();.
 

Detailed Description

Stream storing particle colors.

Initializes new particles with white color (1, 1, 1, 1). Uses half-precision floats (ezColorLinear16f) to reduce memory usage.

Member Function Documentation

◆ InitializeElements()

void ezParticleStream_Color::InitializeElements ( ezUInt64  uiStartIndex,
ezUInt64  uiNumElements 
)
overrideprotectedvirtual

The default implementation initializes all data with zero.

Override this to provide custom initialization for new particles. The implementation should initialize elements in the range [uiStartIndex, uiStartIndex + uiNumElements).

Reimplemented from ezParticleStream.


The documentation for this class was generated from the following files: