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:
authorLuca Rood <dev@lucarood.com>2017-02-16 23:22:28 +0300
committerLuca Rood <dev@lucarood.com>2017-02-16 23:48:19 +0300
commitb5cae50376ba32694a48e23dabf5d35c8e6d5d8b (patch)
tree137e4b6750efe6b0d72974d6789a7c265480cb07 /source/blender/editors/include/BIF_glutil.h
parente3dd2b1591fdde19d533657303c8b10eb413fddb (diff)
Add imm_draw_checker_box function
This replaces `fdrawcheckerboard` in drawing a standard gray checkerboard for alpha backgrounds.
Diffstat (limited to 'source/blender/editors/include/BIF_glutil.h')
-rw-r--r--source/blender/editors/include/BIF_glutil.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/include/BIF_glutil.h b/source/blender/editors/include/BIF_glutil.h
index 35e9f35b4ef..30c810154b0 100644
--- a/source/blender/editors/include/BIF_glutil.h
+++ b/source/blender/editors/include/BIF_glutil.h
@@ -128,6 +128,9 @@ void imm_draw_line_box(unsigned pos, float x1, float y1, float x2, float y2);
/* use this version when VertexFormat has a vec3 position */
void imm_draw_line_box_3D(unsigned pos, float x1, float y1, float x2, float y2);
+/* Draw a standard checkerboard to indicate transparent backgrounds */
+void imm_draw_checker_box(float x1, float y1, float x2, float y2);
+
void imm_draw_line(unsigned pos, float x1, float y1, float x2, float y2);
/**
* Pack color into 3 bytes