21 #ifndef GF_PARTICLES_H 22 #define GF_PARTICLES_H 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 54 void addPoint(Vector2f position, Color4f color);
82 void addCircle(Vector2f center,
float radius, Color4f color, std::size_t pointCount = 15);
91 void addCircle(
const CircF& circ, Color4f color, std::size_t pointCount = 15);
100 void addRectangle(Vector2f position, Vector2f size, Color4f color);
159 #ifndef DOXYGEN_SHOULD_SKIP_THIS
SpriteParticles(const Texture &texture)
Constructor with a texture.
void addCircle(Vector2f center, float radius, Color4f color, std::size_t pointCount=15)
Add a circle shape to the particles.
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
A set of primitives.
Definition: VertexArray.h:65
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
PointParticles()
Default constructor.
void addSprite(Vector2f position, const RectF &textureRect, Color4f color=Color::White)
Add a sprite to the particles.
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
A class to display a high number of points.
Definition: Particles.h:41
virtual void draw(RenderTarget &target, RenderStates states) override
Draw the object to a render target.
void addPoint(Vector2f position, Color4f color)
Add a point to the particles.
A texture for colored images.
Definition: Texture.h:339
void addRectangle(Vector2f position, Vector2f size, Color4f color)
Add a rectangle shape to the particles.
The namespace for gf classes.
Definition: Action.h:34
void setTexture(const Texture &texture)
Change the source texture.
void addCircle(const CircF &circ, Color4f color, std::size_t pointCount=15)
Add a circle shape to the particles.
A class to display a high number of sprites.
Definition: Particles.h:122
A class to display a high number of small simple shapes.
Definition: Particles.h:67
void addRectangle(const RectF &rect, Color4f color)
Add a rectangle shape to the particles.
#define GF_API
Definition: Portability.h:35
ShapeParticles()
Default constructor.
SpriteParticles()
Default constructor.