Kochol Game Engine  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
kge::gui::Font Class Reference

#include <Font.h>

Inheritance diagram for kge::gui::Font:
kge::Resource kge::KgeUnknown

Public Member Functions

 Font (const u32 Handle, const char *FileName, const char *Name, sn::SceneManager *pSnmgr)
 Constructor.
virtual ~Font ()
 Destructor.
virtual bool Init ()
 Loads and create font characters.
- Public Member Functions inherited from kge::Resource
 Resource (const u32 Handle, const char *FileName, const char *Name, void *ExtraParam)
 Constructor.
virtual ~Resource ()
 Destructor.
virtual const char * GetFileName ()
 Return resource file name.
virtual const char * GetName ()
 Return resource name.
virtual u32 GetHandle ()
 Return resource handle.
- Public Member Functions inherited from kge::KgeUnknown
 KgeUnknown ()
 Constructor.
virtual ~KgeUnknown ()
 Destructor.
virtual void AddRef ()
 Add a reference to the object.
virtual void DecRef ()
 Decrease a reference from the object. if its reference count get 0 then the object will destroy.
u32 GetRefCount ()
 Return resource reference count.
const char * GetDebugText ()
 returns the instance debug text.

Protected Attributes

Char * m_pChars
std::map< int, Char * > m_mChars
int m_iLineHeight
int m_iBase
int m_iWidth
int m_iHeight
int m_iPages
int m_iCharsCount
char * m_pTextureFileName
gfx::Texturem_pTexture
sn::SceneManagerm_pSnmgr
- Protected Attributes inherited from kge::Resource
char * m_pFileName
char * m_pName
void * m_pExtraParam
u32 m_iHandle
void * m_pMyMgr
 Resource manager pointer.

Friends

class Text

Additional Inherited Members

- Protected Member Functions inherited from kge::KgeUnknown
void SetDebugText (char *text)

Detailed Description

Definition at line 27 of file Font.h.

Constructor & Destructor Documentation

kge::gui::Font::Font ( const u32  Handle,
const char *  FileName,
const char *  Name,
sn::SceneManager pSnmgr 
)

Constructor.

virtual kge::gui::Font::~Font ( )
virtual

Destructor.

Member Function Documentation

virtual bool kge::gui::Font::Init ( )
virtual

Loads and create font characters.

Friends And Related Function Documentation

friend class Text
friend

Definition at line 29 of file Font.h.

Member Data Documentation

int kge::gui::Font::m_iBase
protected

Definition at line 46 of file Font.h.

int kge::gui::Font::m_iCharsCount
protected

Definition at line 46 of file Font.h.

int kge::gui::Font::m_iHeight
protected

Definition at line 46 of file Font.h.

int kge::gui::Font::m_iLineHeight
protected

Definition at line 46 of file Font.h.

int kge::gui::Font::m_iPages
protected

Definition at line 46 of file Font.h.

int kge::gui::Font::m_iWidth
protected

Definition at line 46 of file Font.h.

std::map<int, Char*> kge::gui::Font::m_mChars
protected

Definition at line 45 of file Font.h.

Char* kge::gui::Font::m_pChars
protected

Definition at line 44 of file Font.h.

sn::SceneManager* kge::gui::Font::m_pSnmgr
protected

Definition at line 54 of file Font.h.

gfx::Texture* kge::gui::Font::m_pTexture
protected

Definition at line 53 of file Font.h.

char* kge::gui::Font::m_pTextureFileName
protected

Definition at line 52 of file Font.h.


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