Factory functions that create different shapes (concave and convex) More...
Go to the source code of this file.
Namespaces | |
namespace | thor::Shapes |
Namespace for predefined shapes. | |
Functions | |
sf::Shape | thor::Shapes::RoundedRect (sf::Vector2f leftUpperPosition, sf::Vector2f size, float cornerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color(0, 0, 0)) |
Creates a rectangle with radiused corners. | |
sf::Shape | thor::Shapes::RoundedRect (float left, float top, float width, float height, float cornerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color(0, 0, 0)) |
Creates a rectangle with radiused corners. | |
sf::Shape | thor::Shapes::Polygon (unsigned int nbPoints, sf::Vector2f center, float radius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color(0, 0, 0)) |
Creates a regular, convex polygon shape. | |
ConcaveShape | thor::Shapes::Star (unsigned int nbStarPoints, sf::Vector2f center, float innerRadius, float outerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color(0, 0, 0)) |
Creates a regular star shape. | |
ConcaveShape | thor::Shapes::Pie (sf::Vector2f center, float radius, float filledAngle, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color(0, 0, 0)) |
Creates a pie (a sector of a circle). |
Factory functions that create different shapes (concave and convex)