![]() |
HIRO_DRAW
Computer Graphics Structures library
|
Helper class for easier state printing to the top left corner of the viewport. More...
Public Member Functions | |
| TextPrinter (hiro::draw::TextRenderer *t_renderer) | |
| void | PrintStr (const std::string &text) |
| Print custom text line. | |
| void | PrintBool (const std::string &text, bool state) |
| Print text and boolean value. Text color changes according to the boolean state. | |
| template<typename T > | |
| void | PrintValue (const std::string &text, T value) |
| Print text and value. Type of value parameter must be supported by any of the std::to_string overloads. | |
Helper class for easier state printing to the top left corner of the viewport.
Outputs text records line by line, for every print call. Use this class by wrapping hiro::draw::TextRenderer in your code, before printing: