Inheritance diagram for osgText::Font::GlyphTexture:
Public Member Functions | |
GlyphTexture () | |
const char * | className () const |
virtual int | compare (const osg::StateAttribute &rhs) const |
void | setGlyphImageMargin (unsigned int margin) |
unsigned int | getGlyphImageMargin () const |
bool | getSpaceForGlyph (Glyph *glyph, int &posX, int &posY) |
void | addGlyph (Glyph *glyph, int posX, int posY) |
virtual void | apply (osg::State &state) const |
Protected Types | |
typedef std::vector< osg::ref_ptr< Glyph > > | GlyphRefList |
typedef std::vector< const Glyph * > | GlyphPtrList |
typedef osg::buffered_object< GlyphPtrList > | GlyphBuffer |
Protected Member Functions | |
virtual | ~GlyphTexture () |
Protected Attributes | |
int | _margin |
int | _usedY |
int | _partUsedX |
int | _partUsedY |
GlyphRefList | _glyphs |
GlyphBuffer | _glyphsToSubload |
|
|
|
|
|
|
|
|
|
|
|
|
|
Bind the texture object. If the texture object hasn't already been compiled, create the texture mipmap levels. Reimplemented from osg::Texture2D. |
|
Return the name of the attribute's class type. Reimplemented from osg::Texture. |
|
return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. Reimplemented from osg::Texture2D. |
|
|
|
|
|
Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. |
|
|
|
|
|
|
|
|
|
|
|
|