A class for MatSys-based font rendering. More...
#include "Font.hpp"
Public Member Functions | |
FontT (const std::string &MaterialName) | |
The constructor. More... | |
~FontT () | |
The destructor. More... | |
FontT (const FontT &Other) | |
The copy constructor. More... | |
FontT & | operator= (const FontT &Other) |
The assignment operator. More... | |
void | Print (int PosX, int PosY, float FrameWidth, float FrameHeight, unsigned long Color, const std::string &PrintString) |
Prints PrintString at (PosX, PosY) in color Color. More... | |
void | AccPrintBegin (float FrameWidth, float FrameHeight) |
Accumulative printing functions. Faster if you have to call Print() a lot. More... | |
void | AccPrint (int PosX, int PosY, unsigned long Color, const std::string &PrintString) |
void | AccPrintEnd () |
A class for MatSys-based font rendering.
The only requirement is that the MatSys in fully initialized (the global MatSys::Renderer pointer is set) before any object of this class is instantiated.
FontT::FontT | ( | const std::string & | MaterialName | ) |
The constructor.
FontT::~FontT | ( | ) |
The destructor.
FontT::FontT | ( | const FontT & | Other | ) |
The copy constructor.
void FontT::AccPrintBegin | ( | float | FrameWidth, |
float | FrameHeight | ||
) |
Accumulative printing functions. Faster if you have to call Print() a lot.
void FontT::Print | ( | int | PosX, |
int | PosY, | ||
float | FrameWidth, | ||
float | FrameHeight, | ||
unsigned long | Color, | ||
const std::string & | PrintString | ||
) |
Prints PrintString at (PosX, PosY) in color Color.