Ignore:
Timestamp:
May 21, 2000, 10:57:14 PM (25 years ago)
Author:
jeroen
Message:

* empty log message *

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:24 jeroen Exp $ */
     1/* $Id: config.h,v 1.3 2000-05-21 20:24:21 jeroen Exp $ */
    22
    33/*
    44 * Mesa 3-D graphics library
    5  * Version:  3.1
     5 * Version:  3.3
    66 *
    77 * Copyright (C) 1999  Brian Paul   All Rights Reserved.
     
    9898#define MIN_LINE_WIDTH 1.0
    9999#define MAX_LINE_WIDTH 10.0
    100 #define LINE_WIDTH_GRANULARITY 1.0
     100#define LINE_WIDTH_GRANULARITY 0.1
    101101
    102102/* Max texture palette size */
     
    116116#define MAX_ARRAY_LOCK_SIZE 3000
    117117
    118 
    119 /*
    120  *
     118/* Subpixel precision for antialiasing, window coordinate snapping */
     119#define SUB_PIXEL_BITS 4
     120
     121
     122
     123/*
    121124 * Mesa-specific parameters
    122  *
    123125 */
    124126
     
    130132
    131133
    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
    153141
    154142
     
    163151 */
    164152#define CHAN_BITS 8
    165 
     153#define CHAN_MAX ((1 << CHAN_BITS) - 1)
     154#define CHAN_MAXF ((GLfloat) CHAN_MAX)
    166155
    167156
     
    181170 * value of 12n + 3.
    182171 */
    183 
    184172#define VB_START  3
    185173
    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
    191177
    192178/*
     
    198184 * sharing the vb).
    199185 */
    200 #define VB_MAX_CLIPPED_VERTS (2 * (6 + MAX_CLIP_PLANES))
     186#define VB_MAX_CLIPPED_VERTS ((2 * (6 + MAX_CLIP_PLANES))+1)
    201187#define VB_SIZE  (VB_MAX + VB_MAX_CLIPPED_VERTS)
    202188
    203189
    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 
    217190
    218191typedef 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
     195extern void
     196gl_read_config_file( struct gl_context *ctx );
     197
     198extern void
     199gl_register_config_var(const char *name, void (*notify)( const char *, int ));
    223200
    224201#endif
Note: See TracChangeset for help on using the changeset viewer.