home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 5 / MA_Cover_5.iso / ppc / mesa / src / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-01-31  |  3.8 KB  |  179 lines

  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. #ifdef FX
  91. #define MAX_TEXTURE_LEVELS 9
  92. #else
  93. #define MAX_TEXTURE_LEVELS 11
  94. #endif
  95.  
  96. /* Max texture size */
  97. #define MAX_TEXTURE_SIZE   (1 << (MAX_TEXTURE_LEVELS-1))
  98.  
  99. /* Maximum pixel map lookup table size: */
  100. #define MAX_PIXEL_MAP_TABLE 256
  101.  
  102. /* Number of auxillary color buffers: */
  103. #define NUM_AUX_BUFFERS 0
  104.  
  105. /* Maximum order (degree) of curves: */
  106. #ifdef AMIGA
  107. #   define MAX_EVAL_ORDER 12
  108. #else
  109. #   define MAX_EVAL_ORDER 30
  110. #endif
  111.  
  112. /* Maximum Name stack depth */
  113. #define MAX_NAME_STACK_DEPTH 64
  114.  
  115. /* Min and Max point sizes and granularity */
  116. #define MIN_POINT_SIZE 1.0
  117. #define MAX_POINT_SIZE 10.0
  118. #define POINT_SIZE_GRANULARITY 0.1
  119.  
  120. /* Min and Max line widths and granularity */
  121. #define MIN_LINE_WIDTH 1.0
  122. #define MAX_LINE_WIDTH 10.0
  123. #define LINE_WIDTH_GRANULARITY 1.0
  124.  
  125. /* Max texture palette size */
  126. #define MAX_TEXTURE_PALETTE_SIZE 256
  127.  
  128.  
  129. /* Maximum viewport size: */
  130. #ifdef AMIGA
  131. #  define MAX_WIDTH 640
  132. #  define MAX_HEIGHT 400
  133. #else
  134. #  define MAX_WIDTH 1600
  135. #  define MAX_HEIGHT 1200
  136. #endif
  137.  
  138.  
  139.  
  140. /*
  141.  * Bits per accumulation buffer color component:  8 or 16
  142.  */
  143. #define ACCUM_BITS 16
  144.  
  145.  
  146. /*
  147.  * Bits per depth buffer value:  16 or 32
  148.  */
  149. #define DEPTH_BITS 16
  150.  
  151. #if DEPTH_BITS==16
  152. #  define MAX_DEPTH 0xffff
  153. #  define DEPTH_SCALE 65535.0F
  154. #else
  155. #  define MAX_DEPTH 0x00ffffff
  156. #  define DEPTH_SCALE ((GLfloat) 0x00ffffff)
  157. #endif
  158.  
  159.  
  160. /*
  161.  * Bits per stencil value:  8
  162.  */
  163. #define STENCIL_BITS 8
  164.  
  165.  
  166.  
  167. /***
  168.  *** For X11 driver only:
  169.  ***/
  170.  
  171. /*
  172.  * When defined, use 6x6x6 dithering instead of 5x9x5.
  173.  * 5x9x5 better for general colors, 6x6x6 better for grayscale.
  174.  */
  175. /*#define DITHER666*/
  176.  
  177.  
  178. #endif
  179.