Static debug helpers for printing SFML value types. More...
#include <Helper.h>
Static Public Member Functions | |
| static void | output (sf::FloatRect floatRect) |
Print a sf::FloatRect to stdout. | |
| static void | output (sf::Vector2f vector) |
Print a sf::Vector2f to stdout. | |
Static debug helpers for printing SFML value types.
Helper provides lightweight console-output utilities for the two SFML types most commonly inspected during development: sf::Vector2f and sf::FloatRect. Both methods write to stdout via std::cout and are intended for debugging only — they are not used by the framework at runtime.
|
static |
Print a sf::FloatRect to stdout.
Outputs the rect in the form "(left, top, width, height)\n".
| floatRect | The rect to print. |
|
static |
Print a sf::Vector2f to stdout.
Outputs the vector in the form "(x, y)\n".
| vector | The vector to print. |