Skylicht Engine
Loading...
Searching...
No Matches
Skylicht::Particle::CParticleCPUBufferSystem Class Reference

Internal system that updates the CPU mesh buffer with current particle data for non-instanced rendering. More...

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

Inheritance diagram for Skylicht::Particle::CParticleCPUBufferSystem:
Skylicht::Particle::ISystem

Public Member Functions

virtual void update (CParticle *particles, int num, CGroup *group, float dt)
 Rebuilds the mesh buffer vertices based on particle positions.
Public Member Functions inherited from Skylicht::Particle::ISystem
void setEnable (bool b)
 Enables or disables the system.
bool isEnable ()
 Checks if the system is enabled.

Additional Inherited Members

Protected Attributes inherited from Skylicht::Particle::ISystem
bool m_enable
 Whether the system is active.

Detailed Description

Internal system that updates the CPU mesh buffer with current particle data for non-instanced rendering.

Invoked by CGroup to fill the CParticleCPUBuffer with calculated quad vertices.

Member Function Documentation

◆ update()

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

Rebuilds the mesh buffer vertices based on particle positions.

Implements Skylicht::Particle::ISystem.


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