29 #ifndef THOR_SHAPES_HPP
30 #define THOR_SHAPES_HPP
34 #include <SFML/System/Vector2.hpp>
35 #include <SFML/Graphics/Color.hpp>
64 sf::ConvexShape THOR_API
toConvexShape(
const sf::Shape& shape);
73 sf::ConvexShape THOR_API
line(sf::Vector2f direction,
const sf::Color& color,
float thickness = 1.f);
82 sf::ConvexShape THOR_API
roundedRect(sf::Vector2f size,
float cornerRadius,
83 const sf::Color& fillColor,
float outlineThickness = 0.f,
const sf::Color& outlineColor = sf::Color());
92 sf::ConvexShape THOR_API
polygon(std::size_t nbPoints,
float radius,
const sf::Color& fillColor,
93 float outlineThickness = 0.f,
const sf::Color& outlineColor = sf::Color());
103 sf::ConvexShape THOR_API
star(std::size_t nbStarPoints,
float innerRadius,
float outerRadius,
const sf::Color& fillColor,
104 float outlineThickness = 0.f,
const sf::Color& outlineColor = sf::Color());
112 #endif // THOR_SHAPES_HPP
Definition: AnimationMap.hpp:42
sf::ConvexShape toConvexShape(const sf::Shape &shape)
Converts a specific shape to a general, convex SFML shape.
Configuration header of the library.
sf::ConvexShape star(std::size_t nbStarPoints, float innerRadius, float outerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
Creates a regular star shape.
sf::ConvexShape roundedRect(sf::Vector2f size, float cornerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
Creates a rectangle with radiused corners.
Definition: BigSprite.hpp:41
sf::ConvexShape line(sf::Vector2f direction, const sf::Color &color, float thickness=1.f)
Creates a line shape.
sf::ConvexShape polygon(std::size_t nbPoints, float radius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
Creates a regular, convex polygon shape.