#include <BitmapFont.h>
Inheritance diagram for CBitmapFont:
Public Member Functions | |
virtual int | LoadXML (TiXmlNode *pDataNode, CString strFilename) |
virtual int | SaveXML (TiXmlNode *pDataNode, CString strFilename) |
virtual void | Destroy () |
virtual void | Draw (CString strFormat,...) |
virtual void | DrawChar (float x, float y, char c) |
virtual int | Create (UINT uiNormalOrItalic, UINT uiCharLength, UINT uiCharHeight, UINT uiQuadLength, UINT uiQuadHeight, UINT uiSpacing) |
void | SetTextPos (float X, float Y) |
tVERTEX2f & | GetTextPos () |
UINT | GetQuadLength () |
UINT | GetQuadHeight () |
UINT | GetCharLength () |
UINT | GetCharHeight () |
UINT | GetSpacing () |
virtual bool | IsOfType (eEntityType eType) |
Protected Attributes | |
CTexture * | m_pTexture |
CMaterial * | m_pMaterial |
UINT | m_uiNI |
UINT | m_uiCharLength |
UINT | m_uiCharHeight |
UINT | m_uiQuadLength |
UINT | m_uiQuadHeight |
UINT | m_uiSpacing |
UINT | m_uiFontBase |
UINT | m_uiNumLists |
tVERTEX2f | m_TextPos |
This class is an implementation of generic font interface class, that uses texture to output textured quads with letters.
Definition at line 14 of file BitmapFont.h.
|
Method details:
References CTexture::Bind(), m_pTexture, m_uiCharLength, m_uiFontBase, m_uiNI, m_uiNumLists, m_uiQuadLength, and m_uiSpacing. Referenced by LoadXML(). |
|
Method details: Clean-up method Reimplemented from CCustomFont. Definition at line 219 of file BitmapFont.cpp. |
|
Method details:
Implements CCustomFont. Definition at line 224 of file BitmapFont.cpp. References CTexture::Bind(), CMaterial::GetAmbient(), m_pMaterial, m_pTexture, m_TextPos, m_uiFontBase, m_uiNI, tVERTEX2f::x, and tVERTEX2f::y. Referenced by CGUIStatic::DrawText(). |
|
Method details:
Implements CCustomFont. Definition at line 269 of file BitmapFont.cpp. |
|
Method details:
References m_uiCharHeight. |
|
Method details:
References m_uiCharLength. |
|
Method details:
References m_uiQuadHeight. Referenced by CGUIStatic::DrawText(), CGUIListBox::Resize(), and CGUIDropList::Resize(). |
|
Method details:
References m_uiQuadLength. Referenced by CGUIStatic::DrawText(), and CGUIDropList::Resize(). |
|
Method details:
References m_uiSpacing. Referenced by CGUIDropList::Resize(). |
|
Method details:
References m_TextPos. |
|
Method details: This is an implementation of Custom RTTI Reimplemented from CCustomFont. Definition at line 309 of file BitmapFont.cpp. References CCustomFont::IsOfType(). |
|
Method details:
Reimplemented from CCustomFont. Definition at line 75 of file BitmapFont.cpp. References TiXmlElement::Attribute(), Create(), CSingleton< CMaterialManager >::GetSingleton(), CSingleton< CTextureManager >::GetSingleton(), CMaterialManager::LoadResource(), CTextureManager::LoadResource(), CCustomFont::LoadXML(), m_pMaterial, m_pTexture, m_uiCharHeight, m_uiCharLength, m_uiNI, m_uiQuadHeight, m_uiQuadLength, m_uiSpacing, and TiXmlNode::pcValue(). |
|
Method details:
Reimplemented from CCustomFont. Definition at line 147 of file BitmapFont.cpp. References CEntity::GetName(), TiXmlNode::InsertEndChild(), m_pMaterial, m_pTexture, m_uiCharHeight, m_uiCharLength, m_uiNI, m_uiQuadHeight, m_uiQuadLength, m_uiSpacing, TiXmlDocument::SaveFile(), TiXmlElement::SetAttribute(), and TiXmlNode::ToElement(). |
|
Method details:
References m_TextPos, tVERTEX2f::x, and tVERTEX2f::y. Referenced by CGUIStatic::DrawText(). |
|
Pointer to the material Definition at line 111 of file BitmapFont.h. |
|
Pointer to the texture Definition at line 110 of file BitmapFont.h. |
|
2D coordinate from where to start drawing text Definition at line 123 of file BitmapFont.h. Referenced by Draw(), GetTextPos(), and SetTextPos(). |
|
Character hieght (in pixels) on the bitmap Definition at line 114 of file BitmapFont.h. Referenced by GetCharHeight(), LoadXML(), and SaveXML(). |
|
Character width (in pixels) on the bitmap Definition at line 114 of file BitmapFont.h. Referenced by Create(), GetCharLength(), LoadXML(), and SaveXML(). |
|
GL Font List uiID Definition at line 120 of file BitmapFont.h. |
|
Normal or italic attribute Definition at line 113 of file BitmapFont.h. |
|
Number of GL lists Definition at line 121 of file BitmapFont.h. Referenced by Create(). |
|
Quad height (int GL units) Definition at line 114 of file BitmapFont.h. Referenced by GetQuadHeight(), LoadXML(), and SaveXML(). |
|
Quad width (in GL units) Definition at line 114 of file BitmapFont.h. Referenced by Create(), GetQuadLength(), LoadXML(), and SaveXML(). |
|
Spacing between character quads (GL) Definition at line 114 of file BitmapFont.h. Referenced by Create(), GetSpacing(), LoadXML(), and SaveXML(). |