Struct GlyphCache
Glyph image cache
Recently used glyphs are marked with glyph.lastUsage = 1
checkpoint
() call clears usage marks
cleanup
() removes all items not accessed since last checkpoint
()
Methods
Name | Description |
---|---|
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
|
try to find glyph for character in cache, returns null if not found
|
opAssign
|
|
put
|
put character glyph to cache
|
Aliases
Name | Description |
---|---|
glyph_ptr
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0