Visualization Library v1.0.3

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Public Member Functions | Protected Attributes

vl::Glyph Class Reference

The Glyph associated to a character of a given Font. More...

#include <Font.hpp>

Inheritance diagram for vl::Glyph:
vl::Object

List of all members.

Public Member Functions

 Glyph ()
 ~Glyph ()
unsigned int textureHandle () const
void setTextureHandle (unsigned int handle)
int width () const
void setWidth (int width)
int height () const
void setHeight (int height)
int left () const
void setLeft (int left)
int top () const
void setTop (int top)
float s0 () const
void setS0 (float s0)
float t0 () const
void setT0 (float t0)
float s1 () const
void setS1 (float s1)
float t1 () const
void setT1 (float t1)
const fvec2advance () const
void setAdvance (const fvec2 &advance)
unsigned int glyphIndex () const
void setGlyphIndex (unsigned int glyph_index)
const Fontfont () const
void setFont (Font *font)

Protected Attributes

FontmFont
fvec2 mAdvance
float mS0
float mT0
float mS1
float mT1
unsigned int mGlyphIndex
unsigned int mTextureHandle
int mWidth
int mHeight
int mLeft
int mTop

Detailed Description

The Glyph associated to a character of a given Font.

Definition at line 55 of file Font.hpp.


Constructor & Destructor Documentation

vl::Glyph::Glyph (  ) [inline]

Definition at line 67 of file Font.hpp.

vl::Glyph::~Glyph (  )

Member Function Documentation

unsigned int vl::Glyph::textureHandle (  ) const [inline]

Definition at line 71 of file Font.hpp.

References mTextureHandle.

Referenced by vl::Text::renderText(), and vl::CoreText::renderText().

void vl::Glyph::setTextureHandle ( unsigned int  handle ) [inline]

Definition at line 72 of file Font.hpp.

References mTextureHandle.

int vl::Glyph::width (  ) const [inline]

Definition at line 74 of file Font.hpp.

References mWidth.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setWidth().

void vl::Glyph::setWidth ( int  width ) [inline]

Definition at line 75 of file Font.hpp.

References mWidth, and width().

int vl::Glyph::height (  ) const [inline]

Definition at line 77 of file Font.hpp.

References mHeight.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setHeight().

void vl::Glyph::setHeight ( int  height ) [inline]

Definition at line 78 of file Font.hpp.

References height(), and mHeight.

int vl::Glyph::left (  ) const [inline]

Definition at line 80 of file Font.hpp.

References mLeft.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setLeft().

void vl::Glyph::setLeft ( int  left ) [inline]

Definition at line 81 of file Font.hpp.

References left(), and mLeft.

int vl::Glyph::top (  ) const [inline]

Definition at line 83 of file Font.hpp.

References mTop.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setTop().

void vl::Glyph::setTop ( int  top ) [inline]

Definition at line 84 of file Font.hpp.

References mTop, and top().

float vl::Glyph::s0 (  ) const [inline]

Definition at line 86 of file Font.hpp.

References mS0.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS0().

void vl::Glyph::setS0 ( float  s0 ) [inline]

Definition at line 87 of file Font.hpp.

References mS0, and s0().

float vl::Glyph::t0 (  ) const [inline]

Definition at line 89 of file Font.hpp.

References mT0.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT0().

void vl::Glyph::setT0 ( float  t0 ) [inline]

Definition at line 90 of file Font.hpp.

References mT0, and t0().

float vl::Glyph::s1 (  ) const [inline]

Definition at line 92 of file Font.hpp.

References mS1.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setS1().

void vl::Glyph::setS1 ( float  s1 ) [inline]

Definition at line 93 of file Font.hpp.

References mS1, and s1().

float vl::Glyph::t1 (  ) const [inline]

Definition at line 95 of file Font.hpp.

References mT1.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setT1().

void vl::Glyph::setT1 ( float  t1 ) [inline]

Definition at line 96 of file Font.hpp.

References mT1, and t1().

const fvec2& vl::Glyph::advance (  ) const [inline]

Definition at line 98 of file Font.hpp.

References mAdvance.

Referenced by vl::Text::renderText(), vl::CoreText::renderText(), and setAdvance().

void vl::Glyph::setAdvance ( const fvec2 advance ) [inline]

Definition at line 99 of file Font.hpp.

References advance(), and mAdvance.

unsigned int vl::Glyph::glyphIndex (  ) const [inline]

Definition at line 101 of file Font.hpp.

References mGlyphIndex.

Referenced by vl::Text::renderText(), and vl::CoreText::renderText().

void vl::Glyph::setGlyphIndex ( unsigned int  glyph_index ) [inline]

Definition at line 102 of file Font.hpp.

References mGlyphIndex.

const Font* vl::Glyph::font (  ) const [inline]

Definition at line 104 of file Font.hpp.

References mFont.

Referenced by setFont().

void vl::Glyph::setFont ( Font font ) [inline]

Definition at line 105 of file Font.hpp.

References font(), and mFont.


Member Data Documentation

Font* vl::Glyph::mFont [protected]

Definition at line 108 of file Font.hpp.

Referenced by font(), and setFont().

Definition at line 109 of file Font.hpp.

Referenced by advance(), and setAdvance().

float vl::Glyph::mS0 [protected]

Definition at line 110 of file Font.hpp.

Referenced by s0(), and setS0().

float vl::Glyph::mT0 [protected]

Definition at line 111 of file Font.hpp.

Referenced by setT0(), and t0().

float vl::Glyph::mS1 [protected]

Definition at line 112 of file Font.hpp.

Referenced by s1(), and setS1().

float vl::Glyph::mT1 [protected]

Definition at line 113 of file Font.hpp.

Referenced by setT1(), and t1().

unsigned int vl::Glyph::mGlyphIndex [protected]

Definition at line 114 of file Font.hpp.

Referenced by glyphIndex(), and setGlyphIndex().

unsigned int vl::Glyph::mTextureHandle [protected]

Definition at line 115 of file Font.hpp.

Referenced by setTextureHandle(), and textureHandle().

int vl::Glyph::mWidth [protected]

Definition at line 116 of file Font.hpp.

Referenced by setWidth(), and width().

int vl::Glyph::mHeight [protected]

Definition at line 117 of file Font.hpp.

Referenced by height(), and setHeight().

int vl::Glyph::mLeft [protected]

Definition at line 118 of file Font.hpp.

Referenced by left(), and setLeft().

int vl::Glyph::mTop [protected]

Definition at line 119 of file Font.hpp.

Referenced by setTop(), and top().


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

Visualization Library v1.0.3 Reference Documentation
Copyright Michele Bosi. All rights reserved.
Updated on Tue Feb 7 2017 00:55:10.
Permission is granted to use this page to write and publish articles regarding Visualization Library.