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

#include <FontTTF.h>

Collaboration diagram for FontMapTTF:
[legend]

Public Member Functions

 FontMapTTF ()
 
 FontMapTTF (FontMapTTF &&other)
 
 ~FontMapTTF ()
 
int initialize (unsigned char *fontData, int firstChar)
 
bool contains (int c)
 
int getTexture ()
 
void getQuad (int c, float *xpos, float *ypos, stbtt_aligned_quad *quad)
 

Private Attributes

int begin
 
int texture
 
stbtt_packedcharcharInfo
 

Detailed Description

Definition at line 17 of file FontTTF.h.

Constructor & Destructor Documentation

FontMapTTF::FontMapTTF ( )

Definition at line 21 of file FontTTF.cpp.

FontMapTTF::FontMapTTF ( FontMapTTF &&  other)

Definition at line 23 of file FontTTF.cpp.

FontMapTTF::~FontMapTTF ( )
FIXME:
Free the TextureManager buffer slot

Definition at line 31 of file FontTTF.cpp.

Member Function Documentation

int FontMapTTF::initialize ( unsigned char *  fontData,
int  firstChar 
)

Definition at line 41 of file FontTTF.cpp.

bool FontMapTTF::contains ( int  c)

Definition at line 83 of file FontTTF.cpp.

int FontMapTTF::getTexture ( )
inline

Definition at line 25 of file FontTTF.h.

void FontMapTTF::getQuad ( int  c,
float *  xpos,
float *  ypos,
stbtt_aligned_quad quad 
)

Definition at line 88 of file FontTTF.cpp.

Member Data Documentation

int FontMapTTF::begin
private

Definition at line 29 of file FontTTF.h.

int FontMapTTF::texture
private

Definition at line 30 of file FontTTF.h.

stbtt_packedchar* FontMapTTF::charInfo
private

Definition at line 31 of file FontTTF.h.


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