NasNas
An intuitive and beginner friendly 2D game framework for C++
Public Member Functions | Static Public Attributes | List of all members
ns::DebugTextInterface Class Referenceabstract

Base class of all DebugText classes. More...

#include <Debug.hpp>

Inheritance diagram for ns::DebugTextInterface:
ns::DebugText< T >

Public Member Functions

virtual void update ()=0
 Updates DebugText values.
 

Static Public Attributes

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
 

Detailed Description

Base class of all DebugText classes.

DebugTextInterface contains static style information, such as color, outline color and outline thickness. Once you set DebugTextInterface members, they will be active for all the DebugTexts you create afterwards. For example to create a DebugText with a red outline of 1 px

auto* dbg_txt = new DebugText(&var, "label:", {0, 0});
See also
DebugText

Definition at line 32 of file Debug.hpp.


The documentation for this class was generated from the following file: