NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | List of all members
ns::ParticleSystem Class Referenceabstract
Inheritance diagram for ns::ParticleSystem:

Public Member Functions

void setTexture (const sf::Texture &texture)
 
void setEmitRate (float rate)
 
void emit (const sf::IntRect &rect, int nb, bool repeat=false)
 
void emitBurst (const sf::IntRect &rect, int nb)
 
auto getParticleCount () const -> unsigned
 
void setPosition (float x, float y)
 
void setPosition (const sf::Vector2f &pos)
 
auto getPosition () const -> sf::Vector2f
 
auto getGlobalBounds () const -> ns::FloatRect
 
virtual void onParticleCreate (Particle &particle)=0
 
virtual void onParticleUpdate (Particle &particle)=0
 
void update ()
 

Detailed Description

Definition at line 36 of file ParticleSystem.hpp.


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