-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: clean up font caching system
Reworked font caching system to load all data for a set font size at once. `font->letters` is now a 2D array, with the first value being the size, and the second value being a `char` value. `xpd_font_cache` is no longer called twice for every character drawn. BREAKING CHANGE: While this shouldn't affect users, the internal functions `xpd_font_get_metrics` and `xpd_font_get_texture` have been removed. Various types were also changed, with `xpd_font_cache_t` being removed altogether.
- Loading branch information
Showing
2 changed files
with
28 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters