25#include "GraphicsApi.h"
28#include "Transformable.h"
29#include "VertexArray.h"
33#ifndef DOXYGEN_SHOULD_SKIP_THIS
173#ifndef DOXYGEN_SHOULD_SKIP_THIS
A class to display a high number of points.
Definition: Particles.h:42
void addPoint(Vector2f position, Color4f color)
Add a point to the particles.
virtual void draw(RenderTarget &target, const RenderStates &states) override
Draw the object to a render target.
PointParticles()
Default constructor.
A convex polygon.
Definition: Polygon.h:47
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
A class to display a high number of small simple shapes.
Definition: Particles.h:68
void clear()
Clears the particles.
ShapeParticles()
Default constructor.
void addRectangle(const RectF &rect, Color4f color)
Add a rectangle shape to the particles.
void addPolygon(const Polygon &polygon, Color4f color)
Add a convex polygon shape to the particles.
virtual void draw(RenderTarget &target, const RenderStates &states) override
Draw the object to a render target.
void addRectangle(Vector2f position, Vector2f size, Color4f color)
Add a rectangle shape to the particles.
void addCircle(Vector2f center, float radius, Color4f color, std::size_t pointCount=15)
Add a circle shape to the particles.
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:136
void addSprite(Vector2f position, const RectF &textureRect, Color4f color=Color::White)
Add a sprite to the particles.
virtual void draw(RenderTarget &target, const RenderStates &states) override
Draw the object to a render target.
void setTexture(const Texture &texture)
Change the source texture.
SpriteParticles()
Default constructor.
SpriteParticles(const Texture &texture)
Constructor with a texture.
A texture for colored images.
Definition: Texture.h:313
A set of primitives.
Definition: VertexArray.h:65
The namespace for gf classes.
Utility class for manipulating circles.
Definition: Circ.h:61
static constexpr Color4< T > White
White predefined color.
Definition: Color.h:168
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
A 4D vector.
Definition: Vector.h:852