#include <GUIFontTTF.h>
|
| void | AddReference () |
| |
| void | RemoveReference () |
| |
| float | GetTextWidthInternal (vecText::const_iterator start, vecText::const_iterator end) |
| |
| float | GetCharWidthInternal (character_t ch) |
| |
| float | GetTextHeight (float lineSpacing, int numLines) const |
| |
| float | GetTextBaseLine () const |
| |
| float | GetLineHeight (float lineSpacing) const |
| |
| float | GetFontHeight () const |
| |
| void | DrawTextInternal (float x, float y, const std::vector< UTILS::Color > &colors, const vecText &text, uint32_t alignment, float maxPixelWidth, bool scrolling) |
| |
| Character * | GetCharacter (character_t letter) |
| |
| bool | CacheCharacter (wchar_t letter, uint32_t style, Character *ch) |
| |
| void | RenderCharacter (float posX, float posY, const Character *ch, UTILS::Color color, bool roundX, std::vector< SVertex > &vertices) |
| |
| void | ClearCharacterCache () |
| |
| virtual CBaseTexture * | ReallocTexture (unsigned int &newHeight)=0 |
| |
| virtual bool | CopyCharToTexture (FT_BitmapGlyph bitGlyph, unsigned int x1, unsigned int y1, unsigned int x2, unsigned int y2)=0 |
| |
| virtual void | DeleteHardwareTexture ()=0 |
| |
| void | SetGlyphStrength (FT_GlyphSlot slot, int glyphStrength) |
| |
| unsigned int | GetTextureLineHeight () const |
| | the height of each line in the texture. Accounts for spacing between lines to avoid characters overlapping. More...
|
| |
§ CGUIFontTTFBase()
| CGUIFontTTFBase::CGUIFontTTFBase |
( |
const std::string & |
strFileName | ) |
|
|
explicit |
§ ~CGUIFontTTFBase()
| CGUIFontTTFBase::~CGUIFontTTFBase |
( |
void |
| ) |
|
|
virtual |
§ AddReference()
| void CGUIFontTTFBase::AddReference |
( |
| ) |
|
|
protected |
§ Begin()
| void CGUIFontTTFBase::Begin |
( |
| ) |
|
§ CacheCharacter()
| bool CGUIFontTTFBase::CacheCharacter |
( |
wchar_t |
letter, |
|
|
uint32_t |
style, |
|
|
Character * |
ch |
|
) |
| |
|
protected |
§ Clear()
| void CGUIFontTTFBase::Clear |
( |
| ) |
|
§ ClearCharacterCache()
| void CGUIFontTTFBase::ClearCharacterCache |
( |
| ) |
|
|
protected |
§ CopyCharToTexture()
| virtual bool CGUIFontTTFBase::CopyCharToTexture |
( |
FT_BitmapGlyph |
bitGlyph, |
|
|
unsigned int |
x1, |
|
|
unsigned int |
y1, |
|
|
unsigned int |
x2, |
|
|
unsigned int |
y2 |
|
) |
| |
|
protectedpure virtual |
§ CreateVertexBuffer()
| virtual CVertexBuffer CGUIFontTTFBase::CreateVertexBuffer |
( |
const std::vector< SVertex > & |
vertices | ) |
const |
|
inlinevirtual |
§ DeleteHardwareTexture()
| virtual void CGUIFontTTFBase::DeleteHardwareTexture |
( |
| ) |
|
|
protectedpure virtual |
§ DestroyVertexBuffer()
| virtual void CGUIFontTTFBase::DestroyVertexBuffer |
( |
CVertexBuffer & |
bufferHandle | ) |
const |
|
inlinevirtual |
§ DrawTextInternal()
| void CGUIFontTTFBase::DrawTextInternal |
( |
float |
x, |
|
|
float |
y, |
|
|
const std::vector< UTILS::Color > & |
colors, |
|
|
const vecText & |
text, |
|
|
uint32_t |
alignment, |
|
|
float |
maxPixelWidth, |
|
|
bool |
scrolling |
|
) |
| |
|
protected |
§ End()
| void CGUIFontTTFBase::End |
( |
| ) |
|
§ GetCharacter()
§ GetCharWidthInternal()
| float CGUIFontTTFBase::GetCharWidthInternal |
( |
character_t |
ch | ) |
|
|
protected |
§ GetFileName()
| const std::string& CGUIFontTTFBase::GetFileName |
( |
| ) |
const |
|
inline |
§ GetFontHeight()
| float CGUIFontTTFBase::GetFontHeight |
( |
| ) |
const |
|
inlineprotected |
§ GetLineHeight()
| float CGUIFontTTFBase::GetLineHeight |
( |
float |
lineSpacing | ) |
const |
|
protected |
§ GetTextBaseLine()
| float CGUIFontTTFBase::GetTextBaseLine |
( |
| ) |
const |
|
inlineprotected |
§ GetTextHeight()
| float CGUIFontTTFBase::GetTextHeight |
( |
float |
lineSpacing, |
|
|
int |
numLines |
|
) |
| const |
|
protected |
§ GetTextureLineHeight()
| unsigned int CGUIFontTTFBase::GetTextureLineHeight |
( |
| ) |
const |
|
protected |
the height of each line in the texture. Accounts for spacing between lines to avoid characters overlapping.
§ GetTextWidthInternal()
| float CGUIFontTTFBase::GetTextWidthInternal |
( |
vecText::const_iterator |
start, |
|
|
vecText::const_iterator |
end |
|
) |
| |
|
protected |
§ Load()
| bool CGUIFontTTFBase::Load |
( |
const std::string & |
strFilename, |
|
|
float |
height = 20.0f, |
|
|
float |
aspect = 1.0f, |
|
|
float |
lineSpacing = 1.0f, |
|
|
bool |
border = false |
|
) |
| |
§ ObliqueGlyph()
§ ReallocTexture()
| virtual CBaseTexture* CGUIFontTTFBase::ReallocTexture |
( |
unsigned int & |
newHeight | ) |
|
|
protectedpure virtual |
§ RemoveReference()
| void CGUIFontTTFBase::RemoveReference |
( |
| ) |
|
|
protected |
§ RenderCharacter()
§ SetGlyphStrength()
§ CGUIFont
§ m_cellBaseLine
| unsigned int CGUIFontTTFBase::m_cellBaseLine |
|
protected |
§ m_cellHeight
| unsigned int CGUIFontTTFBase::m_cellHeight |
|
protected |
§ m_char
§ m_charquick
§ m_color
§ m_dynamicCache
§ m_ellipsesWidth
| float CGUIFontTTFBase::m_ellipsesWidth |
|
protected |
§ m_face
§ m_fontFileInMemory
§ m_height
| float CGUIFontTTFBase::m_height |
|
protected |
§ m_maxChars
| int CGUIFontTTFBase::m_maxChars |
|
protected |
§ m_nestedBeginCount
| unsigned int CGUIFontTTFBase::m_nestedBeginCount |
|
protected |
§ m_nTexture
| unsigned int CGUIFontTTFBase::m_nTexture |
|
protected |
§ m_numChars
| int CGUIFontTTFBase::m_numChars |
|
protected |
§ m_originX
| float CGUIFontTTFBase::m_originX |
|
protected |
§ m_originY
| float CGUIFontTTFBase::m_originY |
|
protected |
§ m_posX
| int CGUIFontTTFBase::m_posX |
|
protected |
§ m_posY
| int CGUIFontTTFBase::m_posY |
|
protected |
§ m_renderSystem
§ m_staticCache
§ m_strFilename
| std::string CGUIFontTTFBase::m_strFilename |
|
protected |
§ m_strFileName
| std::string CGUIFontTTFBase::m_strFileName |
|
protected |
§ m_stroker
§ m_texture
§ m_textureHeight
| unsigned int CGUIFontTTFBase::m_textureHeight |
|
protected |
§ m_textureScaleX
| float CGUIFontTTFBase::m_textureScaleX |
|
protected |
§ m_textureScaleY
| float CGUIFontTTFBase::m_textureScaleY |
|
protected |
§ m_textureWidth
| unsigned int CGUIFontTTFBase::m_textureWidth |
|
protected |
§ m_vertex
| std::vector<SVertex> CGUIFontTTFBase::m_vertex |
|
protected |
§ m_vertexTrans
§ spacing_between_characters_in_texture
| const unsigned int CGUIFontTTFBase::spacing_between_characters_in_texture = 1 |
|
staticprotected |
The documentation for this class was generated from the following files: