Debian Codegraph @

debian/external_deps/fetk/sg/src/gl/config.h

raw
1 /* $Id: config.h,v 1.2 2000/10/27 15:21:40 mholst Exp $ */
2
3 /*
4 * Mesa 3-D graphics library
5 * Version: 2.2
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 * Tunable configuration parameters.
25 */
26
27
28
29 #ifndef CONFIG_H
30 #define CONFIG_H
31
32
33
34 /* Maximum modelview matrix stack depth: */
35 #define MAX_MODELVIEW_STACK_DEPTH 32
36
37 /* Maximum projection matrix stack depth: */
38 #define MAX_PROJECTION_STACK_DEPTH 32
39
40 /* Maximum texture matrix stack depth: */
41 #define MAX_TEXTURE_STACK_DEPTH 10
42
43 /* Maximum attribute stack depth: */
44 #define MAX_ATTRIB_STACK_DEPTH 16
45
46 /* Maximum client attribute stack depth: */
47 #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
48
49 /* Maximum number of display lists: */
50 #define MAX_DISPLAYLISTS 7000
51
52 /* Maximum recursion depth of display list calls: */
53 #define MAX_LIST_NESTING 64
54
55 /* Maximum number of lights: */
56 #define MAX_LIGHTS 8
57
58 /* Maximum user-defined clipping planes: */
59 #define MAX_CLIP_PLANES 6
60
61 /* Number of texture levels */
62 #define MAX_TEXTURE_LEVELS 11
63
64 /* Max texture size */
65 #define MAX_TEXTURE_SIZE (1 << (MAX_TEXTURE_LEVELS-1))
66
67 /* Maximum pixel map lookup table size: */
68 #define MAX_PIXEL_MAP_TABLE 256
69
70 /* Number of auxillary color buffers: */
71 #define NUM_AUX_BUFFERS 0
72
73 /* Maximum order (degree) of curves: */
74 #ifdef AMIGA
75 # define MAX_EVAL_ORDER 12
76 #else
77 # define MAX_EVAL_ORDER 30
78 #endif
79
80 /* Maximum Name stack depth */
81 #define MAX_NAME_STACK_DEPTH 64
82
83 /* Min and Max point sizes and granularity */
84 #define MIN_POINT_SIZE 1.0
85 #define MAX_POINT_SIZE 10.0
86 #define POINT_SIZE_GRANULARITY 0.1
87
88 /* Min and Max line widths and granularity */
89 #define MIN_LINE_WIDTH 1.0
90 #define MAX_LINE_WIDTH 10.0
91 #define LINE_WIDTH_GRANULARITY 1.0
92
93
94 /* Maximum viewport size: */
95 #ifdef AMIGA
96 # define MAX_WIDTH 640
97 # define MAX_HEIGHT 400
98 #else
99 # define MAX_WIDTH 1280
100 # define MAX_HEIGHT 1024
101 #endif
102
103
104
105 /*
106 * Bits per accumulation buffer color component: 8 or 16
107 */
108 #define ACCUM_BITS 16
109
110
111 /*
112 * Bits per depth buffer value: 16 or 32
113 */
114 #define DEPTH_BITS 16
115
116 #if DEPTH_BITS==16
117 # define MAX_DEPTH 0xffff
118 # define DEPTH_SCALE 65535.0F
119 #else
120 # define MAX_DEPTH 0x00ffffff
121 # define DEPTH_SCALE ((GLfloat) 0x00ffffff)
122 #endif
123
124
125 /*
126 * Bits per stencil value: 8
127 */
128 #define STENCIL_BITS 8
129
130
131
132 /***
133 *** For X11 driver only:
134 ***/
135
136 /*
137 * When defined, use 6x6x6 dithering instead of 5x9x5.
138 * 5x9x5 better for general colors, 6x6x6 better for grayscale.
139 */
140 /*#define DITHER666*/
141
142
143 #endif