|
NasNas
An intuitive and beginner friendly 2D game framework for C++
|
DebugText evaluates a variable or a method and display the value on the AppWindow. More...
#include <Debug.hpp>
Public Member Functions | |
| DebugText (std::string label, const sf::Vector2f &position) | |
| DebugText (const std::string &label, T *var_address, const sf::Vector2f &position) | |
| Create a DebugText from variable address. More... | |
| DebugText (const std::string &label, std::function< T()> fn, const sf::Vector2f &position) | |
| Create a DebugText from a lambda function. More... | |
| void | update () override |
| Updates DebugText value. | |
Additional Inherited Members | |
Static Public Attributes inherited from ns::DebugTextInterface | |
| static int | font_size |
| set DebugText font size | |
| static sf::Color | color |
| set DebugText color | |
| static sf::Color | outline_color |
| set DebugText outline color | |
| static float | outline_thickness |
| set DebugText outline thickness | |
DebugText evaluates a variable or a method and display the value on the AppWindow.
It lets you see methods or variables values changing in real time.
| T | Type of the value to display on the AppWindow |
| ns::DebugText< T >::DebugText | ( | const std::string & | label, |
| T * | var_address, | ||
| const sf::Vector2f & | position | ||
| ) |
| ns::DebugText< T >::DebugText | ( | const std::string & | label, |
| std::function< T()> | fn, | ||
| const sf::Vector2f & | position | ||
| ) |
1.8.13