Use lru
for glyph caching
I noticed that the `RecentlyUsed` map was actually a `RecentlyInserted` map. This caused panics when trying to reduce the initial texture atlas size and dynamically increase it (coming in another PR!).
This commit is contained in:
parent
bbe26f9c54
commit
da4bb4af5c
5 changed files with 17 additions and 275 deletions
|
@ -1,10 +1,8 @@
|
|||
mod error;
|
||||
mod recently_used;
|
||||
mod text_atlas;
|
||||
mod text_render;
|
||||
|
||||
pub use error::{PrepareError, RenderError};
|
||||
use recently_used::RecentlyUsedMap;
|
||||
pub use text_atlas::TextAtlas;
|
||||
use text_render::ContentType;
|
||||
pub use text_render::TextRenderer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue