summaryrefslogtreecommitdiff
path: root/src/mesa/main/mtypes.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-01-02 22:02:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-01-02 22:02:51 +0000
commit3041d05bbcccfddba01a1eeaba01e5da0e1e99af (patch)
treee25361e01fdf7be6d75713235c7e130246be67f1 /src/mesa/main/mtypes.h
parent8446d1bab15ef82b35b8980a0a56072ace6feb04 (diff)
Removed fixed.h (GLfixed now in mtypes.h, fixed-pt macros in mmath.h)
Clean-up of color conversion macros. New mmath.h macros (IROUND, IFLOOR, ICEIL, FRAC) used in various places.
Diffstat (limited to 'src/mesa/main/mtypes.h')
-rw-r--r--src/mesa/main/mtypes.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index 61e70688b6..7992b00304 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -1,4 +1,4 @@
-/* $Id: mtypes.h,v 1.8 2000/12/27 22:52:45 keithw Exp $ */
+/* $Id: mtypes.h,v 1.9 2001/01/02 22:02:51 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -31,7 +31,6 @@
#include "glheader.h"
#include "config.h" /* Hardwired parameters */
-#include "fixed.h" /* GLfixed */
#include "glapitable.h"
#include "glthread.h"
@@ -101,11 +100,6 @@
#endif
-/* Maximum number of temporary vertices required for clipping. (Used
- * in array_cache and tnl modules).
- */
-#define MAX_CLIPPED_VERTICES ((2 * (6 + MAX_CLIP_PLANES))+1)
-
/*
* Depth buffer data type:
*/
@@ -113,6 +107,13 @@ typedef GLuint GLdepth; /* Must be 32-bits! */
/*
+ * Fixed point data type:
+ */
+typedef int GLfixed;
+
+
+
+/*
* Some forward type declarations
*/
struct _mesa_HashTable;
@@ -123,6 +124,12 @@ typedef struct __GLcontextRec GLcontext;
+/* Maximum number of temporary vertices required for clipping. (Used
+ * in array_cache and tnl modules).
+ */
+#define MAX_CLIPPED_VERTICES ((2 * (6 + MAX_CLIP_PLANES))+1)
+
+
/* Data structure for color tables */
struct gl_color_table {
GLvoid *Table;
@@ -1386,7 +1393,6 @@ struct gl_extensions {
#define _MESA_NEW_NEED_NORMALS (_NEW_LIGHT| \
_NEW_TEXTURE)
-
#define _IMAGE_NEW_TRANSFER_STATE (_NEW_PIXEL|_NEW_COLOR_MATRIX)