OpenSceneGraph  3.0.1
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
osgText::Glyph Class Reference
Inheritance diagram for osgText::Glyph:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 Glyph (Font *font, unsigned int glyphCode)
Font * getFont ()
const Font * getFont () const
unsigned int getGlyphCode () const
void setWidth (float width)
float getWidth () const
void setHeight (float height)
float getHeight () const
void setHorizontalBearing (const osg::Vec2 &bearing)
const osg::Vec2 & getHorizontalBearing () const
void setHorizontalAdvance (float advance)
float getHorizontalAdvance () const
void setVerticalBearing (const osg::Vec2 &bearing)
const osg::Vec2 & getVerticalBearing () const
void setVerticalAdvance (float advance)
float getVerticalAdvance () const
void setTexture (GlyphTexture *texture)
GlyphTexture * getTexture ()
const GlyphTexture * getTexture () const
void setTexturePosition (int posX, int posY)
int getTexturePositionX () const
int getTexturePositionY () const
void setMinTexCoord (const osg::Vec2 &coord)
const osg::Vec2 & getMinTexCoord () const
void setMaxTexCoord (const osg::Vec2 &coord)
const osg::Vec2 & getMaxTexCoord () const
void subload () const

Protected Types

typedef osg::buffered_value
< GLuint > 
GLObjectList

Protected Member Functions

virtual ~Glyph ()

Protected Attributes

Font * _font
unsigned int _glyphCode
float _width
float _height
osg::Vec2 _horizontalBearing
float _horizontalAdvance
osg::Vec2 _verticalBearing
float _verticalAdvance
GlyphTexture * _texture
int _texturePosX
int _texturePosY
osg::Vec2 _minTexCoord
osg::Vec2 _maxTexCoord
GLObjectList _globjList

Member Typedef Documentation


Constructor & Destructor Documentation

osgText::Glyph::Glyph ( Font *  font,
unsigned int  glyphCode 
)
virtual osgText::Glyph::~Glyph ( ) [protected, virtual]

Member Function Documentation

const Font* osgText::Glyph::getFont ( ) const [inline]
unsigned int osgText::Glyph::getGlyphCode ( ) const [inline]
float osgText::Glyph::getHeight ( ) const [inline]
float osgText::Glyph::getWidth ( ) const [inline]
void osgText::Glyph::setHeight ( float  height) [inline]
void osgText::Glyph::setHorizontalAdvance ( float  advance)
void osgText::Glyph::setMaxTexCoord ( const osg::Vec2 &  coord)
void osgText::Glyph::setMinTexCoord ( const osg::Vec2 &  coord)
void osgText::Glyph::setTexturePosition ( int  posX,
int  posY 
)
void osgText::Glyph::setVerticalAdvance ( float  advance)
void osgText::Glyph::setVerticalBearing ( const osg::Vec2 &  bearing)
void osgText::Glyph::setWidth ( float  width) [inline]
void osgText::Glyph::subload ( ) const

Member Data Documentation

unsigned int osgText::Glyph::_glyphCode [protected]
float osgText::Glyph::_height [protected]
float osgText::Glyph::_width [protected]

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

osg logo
Generated at Thu Sep 27 2012 12:20:30 for the OpenSceneGraph by doxygen 1.7.6.1.