Holds a cache of recently-used glyph objects of some type. More...
#include <juce_RenderingHelpers.h>


Public Member Functions | |
| GlyphCache () | |
| ~GlyphCache () override | |
| void | drawGlyph (RenderTargetType &target, const Font &font, const int glyphNumber, Point< float > pos) |
| ReferenceCountedObjectPtr< CachedGlyphType > | findOrCreateGlyph (const Font &font, int glyphNumber) |
| void | reset () |
Static Public Member Functions | |
| static GlyphCache & | getInstance () |
Private Member Functions | |
| void | addNewGlyphSlots (int num) |
| ReferenceCountedObjectPtr< CachedGlyphType > | findExistingGlyph (const Font &font, int glyphNumber) const noexcept |
| CachedGlyphType * | findLeastRecentlyUsedGlyph () const noexcept |
| ReferenceCountedObjectPtr< CachedGlyphType > | getGlyphForReuse () |
Static Private Member Functions | |
| static void | deleteAll () |
| Deletes all extant objects. More... | |
| static GlyphCache *& | getSingletonPointer () noexcept |
Private Attributes | |
| Atomic< int > | accessCounter |
| ReferenceCountedArray< CachedGlyphType > | glyphs |
| Atomic< int > | hits |
| CriticalSection | lock |
| Atomic< int > | misses |
Holds a cache of recently-used glyph objects of some type.
@tags{Graphics}
|
inline |
References juce::gl::reset.
|
inlineoverride |
|
inlineprivate |
|
staticinherited |
Deletes all extant objects.
This shouldn't be used by applications, as it's called automatically in the shutdown code of the JUCEApplicationBase class.
|
inline |
References juce::gl::target.
|
inlineprivatenoexcept |
References juce::gl::g.
|
inlineprivatenoexcept |
References juce::gl::g.
|
inline |
References juce::gl::g, and jassert.
|
inlineprivate |
|
inlinestatic |
References juce::gl::g.
|
inlinestaticprivatenoexcept |
References juce::gl::g.
|
inline |
|
private |
|
private |
|
private |
|
private |
|
private |