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:
authorHarley Acheson <harley.acheson@gmail.com>2021-01-25 10:02:55 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-01-25 10:06:39 +0300
commit32fd000b4b144076998ade16debed8dae697dbb5 (patch)
tree0e78a957104c89b7121d868d7f1fadd3cb7b09e4 /source/blender/editors/include
parent1ac3c861fd8977f47e7f471b02a838346c486c73 (diff)
UI: Round-box drawing cleanup
The new GPU_SHADER_2D_WIDGET_BASE shader allows us to draw many complex shapes with anti-aliasing. One thing it can do is draw an opaque rounded rectangle with colors that differ between its interior and outline. In order to do the above in a single pass I recently added an "_ex" version of UI_draw_roundbox that exposes most of that shaders features. This simplifies interface_draw.c by removing redundancy in the calling of this shader by using this new uber "_ex" version. Ref D10189
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r--source/blender/editors/include/UI_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface.h b/source/blender/editors/include/UI_interface.h
index 455db025735..015237ba954 100644
--- a/source/blender/editors/include/UI_interface.h
+++ b/source/blender/editors/include/UI_interface.h
@@ -450,7 +450,7 @@ void UI_draw_roundbox_4fv_ex(float minx,
const float inner1[4],
const float inner2[4],
float shade_dir,
- float outline[4],
+ const float outline[4],
float outline_width,
float rad);