summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-08-08 10:26:16 -0600
committerBrian <[email protected]>2007-08-08 10:26:16 -0600
commiteb147ed775bedec9d849cdc817f208b5fe5eade3 (patch)
tree7877388b1d0d6c7ad0e7654261c3363a619ac3f2
parent40bc47f5780333e75c35a16bfec1f9670b2a646a (diff)
added PIPE_TEX_FACE_*
-rw-r--r--src/mesa/pipe/p_defines.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/mesa/pipe/p_defines.h b/src/mesa/pipe/p_defines.h
index a3288134db2..77512f8818f 100644
--- a/src/mesa/pipe/p_defines.h
+++ b/src/mesa/pipe/p_defines.h
@@ -112,6 +112,19 @@
#define PIPE_STENCIL_OP_DECR_WRAP 6
#define PIPE_STENCIL_OP_INVERT 7
+/** Texture types */
+#define PIPE_TEXTURE_1D 0
+#define PIPE_TEXTURE_2D 1
+#define PIPE_TEXTURE_3D 2
+#define PIPE_TEXTURE_CUBE 3
+
+#define PIPE_TEX_FACE_POS_X 0
+#define PIPE_TEX_FACE_NEG_X 1
+#define PIPE_TEX_FACE_POS_Y 2
+#define PIPE_TEX_FACE_NEG_Y 3
+#define PIPE_TEX_FACE_POS_Z 4
+#define PIPE_TEX_FACE_NEG_Z 5
+
#define PIPE_TEX_WRAP_REPEAT 0
#define PIPE_TEX_WRAP_CLAMP 1
#define PIPE_TEX_WRAP_CLAMP_TO_EDGE 2
@@ -131,6 +144,7 @@
#define PIPE_TEX_COMPARE_NONE 0
#define PIPE_TEX_COMPARE_R_TO_TEXTURE 1
+
/**
* Texture/surface image formats (preliminary)
*/
@@ -156,14 +170,6 @@
/**
- * Texture typess
- */
-#define PIPE_TEXTURE_1D 0
-#define PIPE_TEXTURE_2D 1
-#define PIPE_TEXTURE_3D 2
-#define PIPE_TEXTURE_CUBE 3
-
-/**
* Buffer mapping access modes
*/
#define PIPE_MAP_READ 1