OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Static Public Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
Font Class Reference

Font interface. More...

#include <Font.h>

Collaboration diagram for Font:
[legend]

Static Public Member Functions

static void shutdown ()
 
static int initialize (std::string font="")
 
static std::string getFontName ()
 
static unsigned int widthText (float scale, std::string s)
 
static unsigned int heightText (float scale, unsigned int maxWidth, std::string s)
 
static void drawText (unsigned int x, unsigned int y, float scale, glm::vec4 color, std::string s)
 
static void drawTextWrapped (unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int maxWidth, std::string s)
 
static void drawTextCentered (unsigned int x, unsigned int y, float scale, glm::vec4 color, unsigned int width, std::string s)
 
static void setShowFontBox (bool s)
 
static bool getShowFontBox ()
 

Static Private Member Functions

static void drawFontBox (unsigned int x, unsigned int y, unsigned int w, unsigned int h)
 

Static Private Attributes

static bool isInit = false
 
static std::string fontName
 
static bool showFontBox = false
 

Detailed Description

Font interface.

Definition at line 16 of file Font.h.

Member Function Documentation

void Font::shutdown ( )
static

Definition at line 23 of file Font.cpp.

int Font::initialize ( std::string  font = "")
static

Definition at line 28 of file Font.cpp.

static std::string Font::getFontName ( )
inlinestatic

Definition at line 22 of file Font.h.

unsigned int Font::widthText ( float  scale,
std::string  s 
)
static

Definition at line 44 of file Font.cpp.

unsigned int Font::heightText ( float  scale,
unsigned int  maxWidth,
std::string  s 
)
static

Definition at line 54 of file Font.cpp.

void Font::drawText ( unsigned int  x,
unsigned int  y,
float  scale,
glm::vec4  color,
std::string  s 
)
static

Definition at line 64 of file Font.cpp.

void Font::drawTextWrapped ( unsigned int  x,
unsigned int  y,
float  scale,
glm::vec4  color,
unsigned int  maxWidth,
std::string  s 
)
static

Definition at line 81 of file Font.cpp.

void Font::drawTextCentered ( unsigned int  x,
unsigned int  y,
float  scale,
glm::vec4  color,
unsigned int  width,
std::string  s 
)
static

Definition at line 100 of file Font.cpp.

static void Font::setShowFontBox ( bool  s)
inlinestatic

Definition at line 37 of file Font.h.

static bool Font::getShowFontBox ( )
inlinestatic

Definition at line 38 of file Font.h.

void Font::drawFontBox ( unsigned int  x,
unsigned int  y,
unsigned int  w,
unsigned int  h 
)
staticprivate

Definition at line 105 of file Font.cpp.

Member Data Documentation

bool Font::isInit = false
staticprivate

Definition at line 43 of file Font.h.

std::string Font::fontName
staticprivate

Definition at line 44 of file Font.h.

bool Font::showFontBox = false
staticprivate

Definition at line 45 of file Font.h.


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