Struct GlyphCache

Glyph image cache

struct GlyphCache;

Recently used glyphs are marked with glyph.lastUsage = 1

checkpoint() call clears usage marks

cleanup() removes all items not accessed since last checkpoint()

Methods

NameDescription
checkpoint () clear usage flags for all entries
cleanup () removes entries not used after last call of checkpoint() or cleanup()
clear () removes all entries (when built with USE_OPENGL version, notify OpenGL cache about removed glyphs)
find (ch) try to find glyph for character in cache, returns null if not found
put (ch, glyph) put character glyph to cache

Aliases

NameDescription
glyph_ptr
~this