diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2021-10-29 04:49:21 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2021-10-29 04:49:21 +0300 |
commit | 70947ebc65a618f2d5e156427aae59780926653c (patch) | |
tree | 3469f89068aa4afdc0302eb196a70f0673be93ce /source/blender/blenfont/intern/blf_internal.h | |
parent | 59534dbee2effd6a4880a0f26329e0571f943207 (diff) |
BLF Refactor: blf_utf8_next_fast
Simplification of BLF glyph loading
See D13026 for details.
Differential Revision: https://developer.blender.org/D13026
Reviewed by Campbell Barton
Diffstat (limited to 'source/blender/blenfont/intern/blf_internal.h')
-rw-r--r-- | source/blender/blenfont/intern/blf_internal.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/blender/blenfont/intern/blf_internal.h b/source/blender/blenfont/intern/blf_internal.h index 6fd5e8b7503..ba871ea2496 100644 --- a/source/blender/blenfont/intern/blf_internal.h +++ b/source/blender/blenfont/intern/blf_internal.h @@ -140,13 +140,10 @@ void blf_glyph_cache_clear(struct FontBLF *font); void blf_glyph_cache_free(struct GlyphCacheBLF *gc); struct GlyphBLF *blf_glyph_search(struct GlyphCacheBLF *gc, unsigned int c); -struct GlyphBLF *blf_glyph_add(struct FontBLF *font, - struct GlyphCacheBLF *gc, - unsigned int index, - unsigned int c); +struct GlyphBLF *blf_glyph_ensure(struct FontBLF *font, struct GlyphCacheBLF *gc, uint charcode); void blf_glyph_free(struct GlyphBLF *g); -void blf_glyph_render( +void blf_glyph_draw( struct FontBLF *font, struct GlyphCacheBLF *gc, struct GlyphBLF *g, float x, float y); #ifdef WIN32 |