Pictel 2d 0.1
Game Engine Documentation
Public Member Functions | List of all members
engine::FontI Class Referenceabstract

Public Member Functions

 FontI (std::string filename)
 
std::string & getFontName ()
 
virtual void SetScale (float)=0
 
virtual void SetAlpha (float)=0
 
virtual void SetZPosition (float)=0
 
virtual void DrawAt (std::string text, float x, float y, int r, int g, int b, int a, TEXT_HORIZONTAL_ALIGNMENT hAlign, TEXT_VERTICAL_ALIGNMENT vAlign, Color4 colorMod, float lineMultiplier)=0
 

Member Function Documentation

◆ DrawAt()

virtual void engine::FontI::DrawAt ( std::string  text,
float  x,
float  y,
int  r,
int  g,
int  b,
int  a,
TEXT_HORIZONTAL_ALIGNMENT  hAlign,
TEXT_VERTICAL_ALIGNMENT  vAlign,
Color4  colorMod,
float  lineMultiplier 
)
pure virtual

Draw the font. Uses the current engine provider.

◆ getFontName()

std::string & engine::FontI::getFontName ( )
inline

Retrieve the font name. Usually the name of the defining the font.

◆ SetAlpha()

virtual void engine::FontI::SetAlpha ( float  )
pure virtual

Set alpha

◆ SetScale()

virtual void engine::FontI::SetScale ( float  )
pure virtual

Set the scale

◆ SetZPosition()

virtual void engine::FontI::SetZPosition ( float  )
pure virtual

Set z-position