Changeset 3582 for trunk/src/opengl/mesa/config.h
- Timestamp:
- May 21, 2000, 10:57:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/opengl/mesa/config.h
r2962 r3582 1 /* $Id: config.h,v 1. 2 2000-03-01 18:49:24jeroen Exp $ */1 /* $Id: config.h,v 1.3 2000-05-21 20:24:21 jeroen Exp $ */ 2 2 3 3 /* 4 4 * Mesa 3-D graphics library 5 * Version: 3. 15 * Version: 3.3 6 6 * 7 7 * Copyright (C) 1999 Brian Paul All Rights Reserved. … … 98 98 #define MIN_LINE_WIDTH 1.0 99 99 #define MAX_LINE_WIDTH 10.0 100 #define LINE_WIDTH_GRANULARITY 1.0100 #define LINE_WIDTH_GRANULARITY 0.1 101 101 102 102 /* Max texture palette size */ … … 116 116 #define MAX_ARRAY_LOCK_SIZE 3000 117 117 118 119 /* 120 * 118 /* Subpixel precision for antialiasing, window coordinate snapping */ 119 #define SUB_PIXEL_BITS 4 120 121 122 123 /* 121 124 * Mesa-specific parameters 122 *123 125 */ 124 126 … … 130 132 131 133 132 #ifdef MESAD3D 133 /* Mesa / Direct3D driver only */ 134 extern float g_DepthScale, g_MaxDepth; 135 # define DEPTH_BITS 32 136 # define DEPTH_SCALE g_DepthScale 137 # define MAX_DEPTH g_MaxDepth 138 #else 139 /* 140 * Bits per depth buffer value: 16 or 32 141 */ 142 # define DEPTH_BITS 16 143 # if DEPTH_BITS==16 144 # define MAX_DEPTH 0xffff 145 # define DEPTH_SCALE 65535.0F 146 # elif DEPTH_BITS==32 147 # define MAX_DEPTH 0x3fffffff 148 # define DEPTH_SCALE ((GLfloat) MAX_DEPTH) 149 # else 150 # error "illegal number of depth bits" 151 # endif 152 #endif 134 /* 135 * Bits per depth buffer value: 16 or 32 (GLushort or GLuint) 136 * gl_create_visual() can select any depth in [0, 32]. 137 */ 138 #define DEFAULT_SOFTWARE_DEPTH_BITS 16 139 #define DEFAULT_SOFTWARE_DEPTH_TYPE GLushort 140 153 141 154 142 … … 163 151 */ 164 152 #define CHAN_BITS 8 165 153 #define CHAN_MAX ((1 << CHAN_BITS) - 1) 154 #define CHAN_MAXF ((GLfloat) CHAN_MAX) 166 155 167 156 … … 181 170 * value of 12n + 3. 182 171 */ 183 184 172 #define VB_START 3 185 173 186 #if defined(FX) && !defined(MITS) 187 # define VB_MAX 72 + VB_START /* better performance */ 188 #else 189 # define VB_MAX 480 + VB_START 190 #endif 174 #define VB_MAX (216 + VB_START) 175 176 191 177 192 178 /* … … 198 184 * sharing the vb). 199 185 */ 200 #define VB_MAX_CLIPPED_VERTS ( 2 * (6 + MAX_CLIP_PLANES))186 #define VB_MAX_CLIPPED_VERTS ((2 * (6 + MAX_CLIP_PLANES))+1) 201 187 #define VB_SIZE (VB_MAX + VB_MAX_CLIPPED_VERTS) 202 188 203 189 204 /*205 *206 * For X11 driver only:207 *208 */209 210 /*211 * When defined, use 6x6x6 dithering instead of 5x9x5.212 * 5x9x5 better for general colors, 6x6x6 better for grayscale.213 */214 /*#define DITHER666*/215 216 217 190 218 191 typedef struct gl_context GLcontext; 219 typedef struct gl_visual GLvisual; 220 typedef struct gl_frame_buffer GLframebuffer; 221 222 extern void gl_read_config_file( struct gl_context *ctx ); 192 /* typedef struct gl_visual GLvisual;*/ 193 /* typedef struct gl_frame_buffer GLframebuffer;*/ 194 195 extern void 196 gl_read_config_file( struct gl_context *ctx ); 197 198 extern void 199 gl_register_config_var(const char *name, void (*notify)( const char *, int )); 223 200 224 201 #endif
Note:
See TracChangeset
for help on using the changeset viewer.