Factory functions that create different shapes (concave and convex) More...
Go to the source code of this file.
Namespaces | |
thor::Shapes | |
Namespace for predefined shapes. | |
Functions | |
sf::ConvexShape | thor::Shapes::toConvexShape (const sf::Shape &shape) |
Converts a specific shape to a general, convex SFML shape. More... | |
sf::ConvexShape | thor::Shapes::line (sf::Vector2f direction, const sf::Color &color, float thickness=1.f) |
Creates a line shape. More... | |
sf::ConvexShape | thor::Shapes::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. More... | |
sf::ConvexShape | thor::Shapes::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. More... | |
sf::ConvexShape | thor::Shapes::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. More... | |
Factory functions that create different shapes (concave and convex)