Bromeon
Namespaces | Functions
Multimedia/Shapes.hpp File Reference

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::ConvexShape thor::Shapes::ToConvexShape (const sf::Shape &shape)
 Converts a specific shape to a general, convex SFML shape.
sf::ConvexShape thor::Shapes::Line (sf::Vector2f direction, const sf::Color &color, float thickness=1.f)
 Creates a rectangle with radiused corners.
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.
sf::ConvexShape thor::Shapes::Polygon (unsigned int nbPoints, float radius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
 Creates a regular, convex polygon shape.
sf::ConvexShape thor::Shapes::Star (unsigned int nbStarPoints, float innerRadius, float outerRadius, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
 Creates a regular star shape.
ConcaveShape thor::Shapes::Pie (float radius, float filledAngle, const sf::Color &fillColor, float outlineThickness=0.f, const sf::Color &outlineColor=sf::Color())
 Creates a pie (a sector of a circle).

Detailed Description

Factory functions that create different shapes (concave and convex)