From 05cf74622f6b50d92cf077dcfb9d5086f4018e50 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Thu, 13 Oct 2016 20:06:44 +0000 Subject: more theme color functions: UI_GetThemeColorBlendShade4fv, immUniformThemeColorBlendShade --- source/blender/gpu/intern/gpu_immediate.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'source/blender/gpu/intern/gpu_immediate.c') diff --git a/source/blender/gpu/intern/gpu_immediate.c b/source/blender/gpu/intern/gpu_immediate.c index 444a8850452..e0241dba893 100644 --- a/source/blender/gpu/intern/gpu_immediate.c +++ b/source/blender/gpu/intern/gpu_immediate.c @@ -50,4 +50,11 @@ void immUniformThemeColorShade(int colorid, int offset) float color[4]; UI_GetThemeColorShade4fv(colorid, offset, color); immUniformColor4fv(color); -} \ No newline at end of file +} + +void immUniformThemeColorBlendShade(int colorid1, int colorid2, float fac, int offset) +{ + float color[4]; + UI_GetThemeColorBlendShade4fv(colorid1, colorid2, fac, offset, color); + immUniformColor4fv(color); +} -- cgit v1.2.3