NcEngine
nc::ParticleEmitter Class Reference

Component for creating particle effects. More...

#include <ParticleEmitter.h>

Public Member Functions

 ParticleEmitter (Entity entity, const asset::TextureView &texture, const ParticleInfo &info={})
 
 ParticleEmitter (ParticleEmitter &&other) noexcept
 
ParticleEmitteroperator= (ParticleEmitter &&other) noexcept
 
General Functions
auto GetEntity () const -> Entity
 
Texture Functions
auto GetTexture () const noexcept -> const asset::TextureView &
 
void SetTexture (const asset::TextureView &texture)
 

ParticleInfo Functions

auto GetInfo () const noexcept -> const ParticleInfo &
 
void SetInfo (const ParticleInfo &info)
 
void Emit (size_t count)
 Emit count number of particles, saturating at maxParticleCount.
 

Detailed Description

Component for creating particle effects.

Member Function Documentation

◆ GetInfo()

auto nc::ParticleEmitter::GetInfo ( ) const -> const ParticleInfo&
inlinenoexcept

internal

◆ SetInfo()

void nc::ParticleEmitter::SetInfo ( const ParticleInfo info)

internal


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