Pioneer
Classes | Public Member Functions | Static Public Member Functions | List of all members
Text::TextureFont Class Reference

#include <TextureFont.h>

Inheritance diagram for Text::TextureFont:
Inheritance graph
[legend]
Collaboration diagram for Text::TextureFont:
Collaboration graph
[legend]

Classes

struct  Glyph
 

Public Member Functions

 TextureFont (const FontConfig &config, Graphics::Renderer *renderer, float scale=1.0f)
 
 ~TextureFont ()
 
void RenderBuffer (Graphics::VertexBuffer *vb, const Color &color=Color::WHITE)
 
void MeasureString (const std::string &str, float &w, float &h)
 
void MeasureCharacterPos (const std::string &str, int charIndex, float &x, float &y)
 
int PickCharacter (const std::string &str, float mouseX, float mouseY)
 
void PopulateString (Graphics::VertexArray &va, const std::string &str, const float x, const float y, const Color &color=Color::WHITE)
 
Color PopulateMarkup (Graphics::VertexArray &va, const std::string &str, const float x, const float y, const Color &color=Color::WHITE)
 
Graphics::VertexBufferCreateVertexBuffer (const Graphics::VertexArray &va, const bool bIsStatic) const
 
Graphics::VertexBufferCreateVertexBuffer (const Graphics::VertexArray &va, const std::string &str, const bool bIsStatic)
 
Graphics::VertexBufferGetCachedVertexBuffer (const std::string &str)
 
float GetHeight () const
 
float GetDescender () const
 
const GlyphGetGlyph (Uint32 ch)
 
RefCountedPtr< Graphics::TextureGetTexture () const
 
Graphics::MaterialGetMaterial () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 
virtual ~RefCounted ()
 
void IncRefCount () const
 
void DecRefCount () const
 
int GetRefCount () const
 
- Public Member Functions inherited from LuaWrappable
virtual ~LuaWrappable ()
 

Static Public Member Functions

static int GetGlyphCount ()
 
static void ClearGlyphCount ()
 

Constructor & Destructor Documentation

◆ TextureFont()

Text::TextureFont::TextureFont ( const FontConfig config,
Graphics::Renderer renderer,
float  scale = 1.0f 
)
Here is the call graph for this function:

◆ ~TextureFont()

Text::TextureFont::~TextureFont ( )

Member Function Documentation

◆ ClearGlyphCount()

static void Text::TextureFont::ClearGlyphCount ( )
inlinestatic

◆ CreateVertexBuffer() [1/2]

Graphics::VertexBuffer * Text::TextureFont::CreateVertexBuffer ( const Graphics::VertexArray va,
const bool  bIsStatic 
) const
Here is the call graph for this function:

◆ CreateVertexBuffer() [2/2]

Graphics::VertexBuffer * Text::TextureFont::CreateVertexBuffer ( const Graphics::VertexArray va,
const std::string &  str,
const bool  bIsStatic 
)
Here is the call graph for this function:

◆ GetCachedVertexBuffer()

Graphics::VertexBuffer * Text::TextureFont::GetCachedVertexBuffer ( const std::string &  str)

◆ GetDescender()

float Text::TextureFont::GetDescender ( ) const
inline

◆ GetGlyph()

const TextureFont::Glyph & Text::TextureFont::GetGlyph ( Uint32  ch)

◆ GetGlyphCount()

static int Text::TextureFont::GetGlyphCount ( )
inlinestatic

◆ GetHeight()

float Text::TextureFont::GetHeight ( ) const
inline

◆ GetMaterial()

Graphics::Material* Text::TextureFont::GetMaterial ( ) const
inline

◆ GetTexture()

RefCountedPtr<Graphics::Texture> Text::TextureFont::GetTexture ( ) const
inline

◆ MeasureCharacterPos()

void Text::TextureFont::MeasureCharacterPos ( const std::string &  str,
int  charIndex,
float &  x,
float &  y 
)
Here is the call graph for this function:

◆ MeasureString()

void Text::TextureFont::MeasureString ( const std::string &  str,
float &  w,
float &  h 
)
Here is the call graph for this function:

◆ PickCharacter()

int Text::TextureFont::PickCharacter ( const std::string &  str,
float  mouseX,
float  mouseY 
)
Here is the call graph for this function:

◆ PopulateMarkup()

Color Text::TextureFont::PopulateMarkup ( Graphics::VertexArray va,
const std::string &  str,
const float  x,
const float  y,
const Color color = Color::WHITE 
)
Here is the call graph for this function:

◆ PopulateString()

void Text::TextureFont::PopulateString ( Graphics::VertexArray va,
const std::string &  str,
const float  x,
const float  y,
const Color color = Color::WHITE 
)
Here is the call graph for this function:

◆ RenderBuffer()

void Text::TextureFont::RenderBuffer ( Graphics::VertexBuffer vb,
const Color color = Color::WHITE 
)
Here is the call graph for this function:

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