diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-03-30 20:16:14 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-03-30 21:09:26 +0300 |
commit | ab9adf9cdc3b2fd91dcade32ea4b4359f4897392 (patch) | |
tree | 1f9e12d6a24fa1f74cfc4ab595ac1680d0202433 /source/blender/blenfont/BLF_api.h | |
parent | 8568d38f1b0858a3138b72698babd6ba7b65d6b3 (diff) |
BLF: Use Batch API instead of IMM.
This is not a perfect win just yet. It's now calling glBufferSubData for
every call (instead of using glMapBufferRange which is almost faster), but
with this system we will be able to batch drawcalls together.
See next commit.
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r-- | source/blender/blenfont/BLF_api.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h index cd3a15f1c88..fd0c0362300 100644 --- a/source/blender/blenfont/BLF_api.h +++ b/source/blender/blenfont/BLF_api.h @@ -47,6 +47,7 @@ void BLF_exit(void); void BLF_default_dpi(int dpi); void BLF_default_set(int fontid); int BLF_default(void); /* get default font ID so we can pass it to other functions */ +void BLF_batch_reset(void); /* call when changing opengl context. */ void BLF_antialias_set(bool enabled); bool BLF_antialias_get(void); |