21 #ifndef GF_PARTICLES_H
22 #define GF_PARTICLES_H
29 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 void addPoint(Vector2f position, Color4f color);
79 void addCircle(Vector2f position,
float radius, Color4f color, std::size_t pointCount = 15);
130 #ifndef DOXYGEN_SHOULD_SKIP_THIS
SpriteParticles(const Texture &texture)
Constructor with a texture.
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:65
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
static constexpr Color4f White
White predefined color.
Definition: Color.h:58
PointParticles()
Default constructor.
void addCircle(Vector2f position, float radius, Color4f color, std::size_t pointCount=15)
Add a circle shape to the particles.
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:38
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
The namespace for gf classes.
Definition: Action.h:34
Predefined colors.
Definition: Color.h:44
void setTexture(const Texture &texture)
Change the source texture.
A class to display a high number of sprites.
Definition: Particles.h:93
A class to display a high number of small simple shapes.
Definition: Particles.h:64
Vector(const Vector &other)=default
Default copy constructor.
#define GF_API
Definition: Portability.h:35
ShapeParticles()
Default constructor.
SpriteParticles()
Default constructor.