Class CPUParticlesComponent

Nested Relationships

Nested Types

Inheritance Relationships

Base Type

Class Documentation

class CPUParticlesComponent : public ModelComponent

Creates particle systems on the CPU. Not preferred over ParticleEffectComponent.

Public Functions

CPUParticlesComponent(Entity &owner, const JSON::json &data)
~CPUParticlesComponent()
void setMaterial(Ref<InstancingBasicMaterialResourceFile> particlesMaterial)
void emit(const ParticleTemplate &particleTemplate)
void expandPool(const size_t &poolSize)
bool preRender(float deltaMilliseconds)
void render(float viewDistance)
JSON::json getJSON() const

Get JSON representation of the component data needed to re-construct component from memory.

void draw()

Expose the component data with ImGui.