NasNas
An intuitive and beginner friendly 2D game framework for C++
|
Public Member Functions | |
void | resize (size_t size) |
void | addPoint (float x, float y, const std::optional< sf::Color > &color=std::nullopt) |
void | addPoint (const sf::Vector2f &position, const std::optional< sf::Color > &color=std::nullopt) |
void | removePoint (unsigned index) |
void | setPoint (unsigned index, float x, float y) |
void | setPoint (unsigned index, const sf::Vector2f &position) |
auto | getPoint (unsigned index) const -> const sf::Vector2f & |
void | setColor (const sf::Color &color) |
auto | getColor () const -> const sf::Color & |
void | setColor (unsigned index, const sf::Color &color) |
auto | getColor (unsigned index) const -> const sf::Color & |
void | setThickness (float thickness) |
auto | getThickness () const -> float |
void | setThickness (unsigned index, float thickness) |
auto | getThickness (unsigned index) const -> float |
void | setOutlineThickness (float thickness) |
auto | getOutlineThickness () const -> float |
void | setOutlineColor (const sf::Color &color) |
auto | getOutlineColor () const -> const sf::Color & |
auto | getPointCount () const -> std::size_t |
auto | getLocalBounds () const -> sf::FloatRect |
auto | getGlobalBounds () const -> ns::FloatRect |
Definition at line 40 of file Shapes.hpp.