
Public Member Functions | |
| GlyphTexture () | |
| const char * | className () const |
| Return the name of the attribute's class type. | |
| virtual int | compare (const osg::StateAttribute &rhs) const |
| return -1 if *this < *rhs, 0 if *this==*rhs, 1 if *this>*rhs. | |
| void | setStateSet (osg::StateSet *stateset) |
| osg::StateSet * | getStateSet () |
| const osg::StateSet * | getStateSet () const |
| void | setGlyphImageMargin (unsigned int margin) |
| Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other. | |
| 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 |
| Bind the texture object. | |
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 | |
| osg::StateSet * | _stateset |
| 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.
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
Set the margin around each glyph, to ensure that texture filtering doesn't bleed adjacent glyph's into each other.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|