Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Particle::ISystem Class Referenceabstract

Base interface for particle systems that update particle data. More...

#include <ParticleSystem/Particles/Systems/ISystem.h>

Inheritance diagram for Skylicht::Particle::ISystem:
Skylicht::Particle::CParentRelativeSystem Skylicht::Particle::CParticleCPUBufferSystem Skylicht::Particle::CParticleInstancingSystem Skylicht::Particle::CParticleSystem Skylicht::Particle::CVortexSystem

Public Member Functions

virtual void update (CParticle *particles, int num, CGroup *group, float dt)=0
 Core update logic.
void setEnable (bool b)
 Enables or disables the system.
bool isEnable ()
 Checks if the system is enabled.

Protected Attributes

bool m_enable
 Whether the system is active.

Detailed Description

Base interface for particle systems that update particle data.

Systems are responsible for iterating over active particles and applying logic (physics, effects, buffer updates).

Member Function Documentation

◆ update()

virtual void Skylicht::Particle::ISystem::update ( CParticle * particles,
int num,
CGroup * group,
float dt )
pure virtual

Core update logic.

Parameters
particlesPointer to the particle array.
numNumber of active particles.
groupThe owner group.
dtDelta time in milliseconds.

Implemented in Skylicht::Particle::CParentRelativeSystem, Skylicht::Particle::CParticleCPUBufferSystem, Skylicht::Particle::CParticleInstancingSystem, Skylicht::Particle::CParticleSystem, and Skylicht::Particle::CVortexSystem.


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