Oxygine  1
2g game engine
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
oxygine::Font Class Reference
Inheritance diagram for oxygine::Font:
oxygine::ObjectBase oxygine::PoolObject

Public Member Functions

void init (const char *name, int size, int baselineDistance, int lineHeight, bool sdf=false)
 
void addGlyph (const glyph &g)
 
void sortGlyphs ()
 
void setScale (float scale)
 
void setBaselineDistance (int d)
 
const glyph * getGlyph (int code, const glyphOptions &opt) const
 
int getBaselineDistance () const
 
int getSize () const
 
float getScale () const
 
bool isSDF () const
 
- Public Member Functions inherited from oxygine::ObjectBase
 ObjectBase (const ObjectBase &src)
 
 ObjectBase (bool assignID=true)
 
const std::string & getName () const
 
const void * getUserData () const
 
int getObjectID () const
 
bool isName (const std::string &name) const
 
bool isName (const char *name) const
 
void setName (const std::string &name)
 
void setUserData (const void *data)
 
void dumpObject () const
 
void __removeFromDebugList ()
 

Protected Types

typedef std::unordered_set< glyph, GlyphHasherglyphs
 

Protected Member Functions

const glyph * findGlyph (int code, const glyphOptions &opt) const
 
virtual bool loadGlyph (int code, glyph &, const glyphOptions &opt)
 
- Protected Member Functions inherited from oxygine::ObjectBase
void __generateID ()
 
std::string * __getName () const
 
void __freeName () const
 

Protected Attributes

glyphs _glyphs
 
bool _ignoreOptions
 
float _scale
 
bool _sdf
 
int _size
 
int _baselineDistance
 
- Protected Attributes inherited from oxygine::ObjectBase
std::string __name
 
int __id
 
const void * __userData
 

Additional Inherited Members

- Public Types inherited from oxygine::ObjectBase
typedef std::vector< ObjectBase * > __createdObjects
 
- Static Public Member Functions inherited from oxygine::ObjectBase
static void dumpCreatedObjects ()
 
static void showAssertInCtor (int id)
 
static void showAssertInDtor (int id)
 
static __createdObjects & __getCreatedObjects ()
 
static void __startTracingLeaks ()
 
static void __stopTracingLeaks ()
 
- Static Protected Member Functions inherited from oxygine::ObjectBase
static void __addToDebugList (ObjectBase *base)
 
static void __removeFromDebugList (ObjectBase *base)
 
- Static Protected Attributes inherited from oxygine::ObjectBase
static int _lastID
 
static int _assertCtorID
 
static int _assertDtorID
 

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