summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/draw
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-17 12:34:40 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-17 12:34:40 -0600
commit74e58c5b82a15d250f42c9695e3ed61f64faedaf (patch)
treebc705bd24ce582a822a46f9c39ab4a0987314d45 /src/mesa/pipe/draw
parent48b09322ee1b701558e1f223320cd2a9259bb37f (diff)
added CLIP_x_SHIFT vals
Diffstat (limited to 'src/mesa/pipe/draw')
-rw-r--r--src/mesa/pipe/draw/draw_context.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mesa/pipe/draw/draw_context.h b/src/mesa/pipe/draw/draw_context.h
index afa3a04165..19fddf7104 100644
--- a/src/mesa/pipe/draw/draw_context.h
+++ b/src/mesa/pipe/draw/draw_context.h
@@ -46,6 +46,10 @@ struct draw_context;
struct draw_stage;
+/**
+ * Clipmask flags
+ */
+/*@{*/
#define CLIP_RIGHT_BIT 0x01
#define CLIP_LEFT_BIT 0x02
#define CLIP_TOP_BIT 0x04
@@ -54,7 +58,19 @@ struct draw_stage;
#define CLIP_FAR_BIT 0x20
#define CLIP_USER_BIT 0x40
#define CLIP_CULL_BIT 0x80
+/*@}*/
+/**
+ * Bitshift for each clip flag
+ */
+/*@{*/
+#define CLIP_RIGHT_SHIFT 0
+#define CLIP_LEFT_SHIFT 1
+#define CLIP_TOP_SHIFT 2
+#define CLIP_BOTTOM_SHIFT 3
+#define CLIP_NEAR_SHIFT 4
+#define CLIP_FAR_SHIFT 5
+/*@}*/
struct draw_context *draw_create( void );