Cafu Engine
FontT Class Reference

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...
 
FontToperator= (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 ()
 

Detailed Description

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.

Constructor & Destructor Documentation

FontT::FontT ( const std::string &  MaterialName)

The constructor.

FontT::~FontT ( )

The destructor.

FontT::FontT ( const FontT Other)

The copy constructor.

Member Function Documentation

void FontT::AccPrintBegin ( float  FrameWidth,
float  FrameHeight 
)

Accumulative printing functions. Faster if you have to call Print() a lot.

FontT & FontT::operator= ( const FontT Other)

The assignment operator.

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.


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