![]() |
Coin3D is Free Software, published under the BSD 3-clause license. |
https://bitbucket.org/Coin3D/ http://www.kongsberg.com/kogt/ |
#include <caches/SoGlyphCache.h>
Public Member Functions | |
SoGlyphCache (SoState *state) | |
void | readFontspec (SoState *state) |
const cc_font_specification * | getCachedFontspec (void) const |
void | addGlyph (cc_glyph2d *glyph) |
void | addGlyph (cc_glyph3d *glyph) |
![]() | |
SoCache (SoState *const state) | |
void | ref (void) |
void | unref (SoState *state=NULL) |
void | addElement (const SoElement *const elem) |
virtual void | addCacheDependency (const SoState *state, SoCache *cache) |
virtual SbBool | isValid (const SoState *state) const |
const SoElement * | getInvalidElement (const SoState *const state) const |
void | invalidate (void) |
Additional Inherited Members | |
![]() | |
virtual void | destroy (SoState *state) |
virtual | ~SoCache () |
The SoGlyphClass is used to cache glyphs.
void SoGlyphCache::readFontspec | ( | SoState * | state | ) |
Read and store current fontspec. Will create cache dependencies since some elements are read. We can't read the fontspec in the constructor since we need to update SoCacheElement before reading the elements.
const cc_font_specification * SoGlyphCache::getCachedFontspec | ( | void | ) | const |
Returns the cached fontspec.