rag
graphic 2d engine
Public Member Functions | List of all members
rag::ITextFont Class Referenceabstract

Interface for text fonts. More...

#include <ITextFont.h>

Inheritance diagram for rag::ITextFont:
rag::BMPFont rag::TTFFont

Public Member Functions

virtual int getWidth (const std::string &text)=0
 Returns the width of a text.
 
virtual void print (const std::string &text, const glm::mat4 &matrix)=0
 Renders text. Asumes ortho projection 1:1 screen pixel.
 
virtual void setLetterSpacing (float value)
 
virtual void reloadTexture ()
 Sets the extra space between characters.
 

Detailed Description

Interface for text fonts.


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