summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/p_defines.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-15 19:13:03 -0600
committerBrian <[email protected]>2007-08-15 19:13:03 -0600
commit94a4910c9a1ef48470f45c01c379254cb033119f (patch)
treec79e4ba0887a204d7efd7862e51c4a2aa9726630 /src/mesa/pipe/p_defines.h
parentd9a230f30a98eb677bba869a6f7bb9a840e36354 (diff)
added PIPE_PRIM_x tokens (matching GL), use in a few places
Diffstat (limited to 'src/mesa/pipe/p_defines.h')
-rw-r--r--src/mesa/pipe/p_defines.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index addbb026bf5..43d1c438aed 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -276,5 +276,19 @@
#define PIPE_FLUSH_TEXTURE_CACHE 0x2
+/**
+ * Primitive types:
+ */
+#define PIPE_PRIM_POINTS 0
+#define PIPE_PRIM_LINES 1
+#define PIPE_PRIM_LINE_LOOP 2
+#define PIPE_PRIM_LINE_STRIP 3
+#define PIPE_PRIM_TRIANGLES 4
+#define PIPE_PRIM_TRIANGLE_STRIP 5
+#define PIPE_PRIM_TRIANGLE_FAN 6
+#define PIPE_PRIM_QUADS 7
+#define PIPE_PRIM_QUAD_STRIP 8
+#define PIPE_PRIM_POLYGON 9
+
#endif