Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Erwin <significant.bit@gmail.com>2017-02-02 00:44:00 +0300
committerMike Erwin <significant.bit@gmail.com>2017-02-02 00:44:00 +0300
commit4935e2449b2c0d52eb27f4889533d72c8e12df94 (patch)
tree9224f77f49cfdabfe0e41a8039d3bae5cdc7c829 /source/blender/blenfont/BLF_api.h
parent7493a2b3c09080a9700178c69fc9c49b5a6d7493 (diff)
BLF can use Theme colors
For anything fancier than regular Theme colors (shading, alpha, etc.) do this: unsigned char color[4] UI_GetThemeColor[Fancy]4ubv(... color) BLF_color4ubv(fontid, color) That way the BLF color API stays simple.
Diffstat (limited to 'source/blender/blenfont/BLF_api.h')
-rw-r--r--source/blender/blenfont/BLF_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenfont/BLF_api.h b/source/blender/blenfont/BLF_api.h
index afb391e33e6..856234dad48 100644
--- a/source/blender/blenfont/BLF_api.h
+++ b/source/blender/blenfont/BLF_api.h
@@ -65,6 +65,7 @@ void BLF_position(int fontid, float x, float y, float z);
void BLF_size(int fontid, int size, int dpi);
/* goal: small but useful color API */
+void BLF_ThemeColor(int fontid, int colorid);
void BLF_color4ubv(int fontid, const unsigned char rgba[4]);
void BLF_color3ubv(int fontid, const unsigned char rgb[3]);
void BLF_color3ubv_alpha(int fontid, const unsigned char rgb[3], unsigned char alpha);