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:
authorDalai Felinto <dfelinto@gmail.com>2016-10-13 23:06:44 +0300
committerDalai Felinto <dfelinto@gmail.com>2016-10-13 23:08:51 +0300
commit05cf74622f6b50d92cf077dcfb9d5086f4018e50 (patch)
treea0022fbcd7ec9d18a1e537ea4acc75c10cd6d8a4 /source/blender/gpu/intern/gpu_immediate.c
parent945f8e3f93ac3c2dbc8ee0d8504040b6bcaa41b8 (diff)
more theme color functions: UI_GetThemeColorBlendShade4fv, immUniformThemeColorBlendShade
Diffstat (limited to 'source/blender/gpu/intern/gpu_immediate.c')
-rw-r--r--source/blender/gpu/intern/gpu_immediate.c9
1 files changed, 8 insertions, 1 deletions
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);
+}