1 /* $Id: config.h,v 1.8 1997/09/27 00:13:44 brianp Exp $ */
4 * Mesa 3-D graphics library
6 * Copyright (C) 1995-1997 Brian Paul
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Library General Public License for more details.
18 * You should have received a copy of the GNU Library General Public
19 * License along with this library; if not, write to the Free
20 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26 * Revision 1.8 1997/09/27 00:13:44 brianp
27 * added GL_EXT_paletted_texture extension
29 * Revision 1.7 1997/09/23 00:57:21 brianp
30 * removed MAX_DISPLAYLISTS
32 * Revision 1.6 1997/06/17 02:20:25 brianp
33 * changed MAX_WIDTH to 1600 and MAX_HEIGHT to 1200
35 * Revision 1.5 1997/05/28 03:27:19 brianp
36 * set MAX_TEXTURE_LEVELS to 9 if compiling for 3Dfx driver (FX)
38 * Revision 1.4 1997/01/08 20:54:02 brianp
39 * added DITHER666 option from Michael Pichler
41 * Revision 1.3 1996/10/01 03:30:18 brianp
42 * changed MAX_DEPTH to 0x00ffffff for 32-bit depth buffer
44 * Revision 1.2 1996/09/15 01:49:26 brianp
47 * Revision 1.1 1996/09/13 01:38:16 brianp
55 * Tunable configuration parameters.
65 /* Maximum modelview matrix stack depth: */
66 #define MAX_MODELVIEW_STACK_DEPTH 32
68 /* Maximum projection matrix stack depth: */
69 #define MAX_PROJECTION_STACK_DEPTH 32
71 /* Maximum texture matrix stack depth: */
72 #define MAX_TEXTURE_STACK_DEPTH 10
74 /* Maximum attribute stack depth: */
75 #define MAX_ATTRIB_STACK_DEPTH 16
77 /* Maximum client attribute stack depth: */
78 #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
80 /* Maximum recursion depth of display list calls: */
81 #define MAX_LIST_NESTING 64
83 /* Maximum number of lights: */
86 /* Maximum user-defined clipping planes: */
87 #define MAX_CLIP_PLANES 6
89 /* Number of texture levels */
90 #define MAX_TEXTURE_LEVELS 11
92 /* Max texture size */
93 #define MAX_TEXTURE_SIZE (1 << (MAX_TEXTURE_LEVELS-1))
95 /* Maximum pixel map lookup table size: */
96 #define MAX_PIXEL_MAP_TABLE 256
98 /* Number of auxillary color buffers: */
99 #define NUM_AUX_BUFFERS 0
101 /* Maximum order (degree) of curves: */
103 # define MAX_EVAL_ORDER 12
105 # define MAX_EVAL_ORDER 30
108 /* Maximum Name stack depth */
109 #define MAX_NAME_STACK_DEPTH 64
111 /* Min and Max point sizes and granularity */
112 #define MIN_POINT_SIZE 1.0
113 #define MAX_POINT_SIZE 10.0
114 #define POINT_SIZE_GRANULARITY 0.1
116 /* Min and Max line widths and granularity */
117 #define MIN_LINE_WIDTH 1.0
118 #define MAX_LINE_WIDTH 10.0
119 #define LINE_WIDTH_GRANULARITY 1.0
121 /* Max texture palette size */
122 #define MAX_TEXTURE_PALETTE_SIZE 256
125 /* Maximum viewport size: */
127 # define MAX_WIDTH 640
128 # define MAX_HEIGHT 400
130 # define MAX_WIDTH 1600
131 # define MAX_HEIGHT 1200
137 * Bits per accumulation buffer color component: 8 or 16
139 #define ACCUM_BITS 16
143 * Bits per depth buffer value: 16 or 32
145 #define MAX_DEPTH 0x00ffffff
146 #define DEPTH_SCALE ((GLfloat) 0x00ffffff)
150 * Bits per stencil value: 8
152 #define STENCIL_BITS 8
157 *** For X11 driver only:
161 * When defined, use 6x6x6 dithering instead of 5x9x5.
162 * 5x9x5 better for general colors, 6x6x6 better for grayscale.
164 /*#define DITHER666*/