ReactOS  0.4.13-dev-650-g34bf247
config.h
Go to the documentation of this file.
1 /* $Id: config.h,v 1.8 1997/09/27 00:13:44 brianp Exp $ */
2 
3 /*
4  * Mesa 3-D graphics library
5  * Version: 2.5
6  * Copyright (C) 1995-1997 Brian Paul
7  *
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.
12  *
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.
17  *
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.
21  */
22 
23 
24 /*
25  * $Log: config.h,v $
26  * Revision 1.8 1997/09/27 00:13:44 brianp
27  * added GL_EXT_paletted_texture extension
28  *
29  * Revision 1.7 1997/09/23 00:57:21 brianp
30  * removed MAX_DISPLAYLISTS
31  *
32  * Revision 1.6 1997/06/17 02:20:25 brianp
33  * changed MAX_WIDTH to 1600 and MAX_HEIGHT to 1200
34  *
35  * Revision 1.5 1997/05/28 03:27:19 brianp
36  * set MAX_TEXTURE_LEVELS to 9 if compiling for 3Dfx driver (FX)
37  *
38  * Revision 1.4 1997/01/08 20:54:02 brianp
39  * added DITHER666 option from Michael Pichler
40  *
41  * Revision 1.3 1996/10/01 03:30:18 brianp
42  * changed MAX_DEPTH to 0x00ffffff for 32-bit depth buffer
43  *
44  * Revision 1.2 1996/09/15 01:49:26 brianp
45  * removed some junk
46  *
47  * Revision 1.1 1996/09/13 01:38:16 brianp
48  * Initial revision
49  *
50  */
51 
52 
53 
54 /*
55  * Tunable configuration parameters.
56  */
57 
58 
59 
60 #ifndef CONFIG_H
61 #define CONFIG_H
62 
63 
64 
65 /* Maximum modelview matrix stack depth: */
66 #define MAX_MODELVIEW_STACK_DEPTH 32
67 
68 /* Maximum projection matrix stack depth: */
69 #define MAX_PROJECTION_STACK_DEPTH 32
70 
71 /* Maximum texture matrix stack depth: */
72 #define MAX_TEXTURE_STACK_DEPTH 10
73 
74 /* Maximum attribute stack depth: */
75 #define MAX_ATTRIB_STACK_DEPTH 16
76 
77 /* Maximum client attribute stack depth: */
78 #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
79 
80 /* Maximum recursion depth of display list calls: */
81 #define MAX_LIST_NESTING 64
82 
83 /* Maximum number of lights: */
84 #define MAX_LIGHTS 8
85 
86 /* Maximum user-defined clipping planes: */
87 #define MAX_CLIP_PLANES 6
88 
89 /* Number of texture levels */
90 #define MAX_TEXTURE_LEVELS 11
91 
92 /* Max texture size */
93 #define MAX_TEXTURE_SIZE (1 << (MAX_TEXTURE_LEVELS-1))
94 
95 /* Maximum pixel map lookup table size: */
96 #define MAX_PIXEL_MAP_TABLE 256
97 
98 /* Number of auxillary color buffers: */
99 #define NUM_AUX_BUFFERS 0
100 
101 /* Maximum order (degree) of curves: */
102 #ifdef AMIGA
103 # define MAX_EVAL_ORDER 12
104 #else
105 # define MAX_EVAL_ORDER 30
106 #endif
107 
108 /* Maximum Name stack depth */
109 #define MAX_NAME_STACK_DEPTH 64
110 
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
115 
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
120 
121 /* Max texture palette size */
122 #define MAX_TEXTURE_PALETTE_SIZE 256
123 
124 
125 /* Maximum viewport size: */
126 #ifdef AMIGA
127 # define MAX_WIDTH 640
128 # define MAX_HEIGHT 400
129 #else
130 # define MAX_WIDTH 1600
131 # define MAX_HEIGHT 1200
132 #endif
133 
134 
135 
136 /*
137  * Bits per accumulation buffer color component: 8 or 16
138  */
139 #define ACCUM_BITS 16
140 
141 
142 /*
143  * Bits per depth buffer value: 16 or 32
144  */
145 #define MAX_DEPTH 0x00ffffff
146 #define DEPTH_SCALE ((GLfloat) 0x00ffffff)
147 
148 
149 /*
150  * Bits per stencil value: 8
151  */
152 #define STENCIL_BITS 8
153 
154 
155 
156 /***
157  *** For X11 driver only:
158  ***/
159 
160 /*
161  * When defined, use 6x6x6 dithering instead of 5x9x5.
162  * 5x9x5 better for general colors, 6x6x6 better for grayscale.
163  */
164 /*#define DITHER666*/
165 
166 
167 #endif