home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / mesa-1.2.8 / src / config.h < prev    next >
C/C++ Source or Header  |  1996-05-27  |  4KB  |  188 lines

  1. /* $Id: config.h,v 1.14 1996/04/25 21:08:46 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  1.2
  6.  * Copyright (C) 1995-1996  Brian Paul  (brianp@ssec.wisc.edu)
  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.14  1996/04/25  21:08:46  brianp
  27.  * changed MAX_DISPLAYLISTS to 7000
  28.  *
  29.  * Revision 1.13  1996/02/02  23:21:39  brianp
  30.  * increased MAX_TEXTURE_STACK_DEPTH, MAX_DISPLAYLISTS, and MAX_TEXTURE_LEVELS
  31.  *
  32.  * Revision 1.12  1996/01/11  20:09:25  brianp
  33.  * rearranged a few lines
  34.  *
  35.  * Revision 1.11  1995/12/18  17:12:09  brianp
  36.  * replaced ACC_TYPE with ACCUM_BITS
  37.  * added new DEPTH_BITS config
  38.  *
  39.  * Revision 1.10  1995/12/12  21:47:47  brianp
  40.  * changed depth buffer range to 24 bits
  41.  *
  42.  * Revision 1.9  1995/08/31  21:33:11  brianp
  43.  * changed MAX_TEXTURE_LEVELS to  10
  44.  *
  45.  * Revision 1.8  1995/06/20  16:30:23  brianp
  46.  * added SUB_PIX defines and DEPTH_SCALE
  47.  *
  48.  * Revision 1.7  1995/05/31  19:20:20  brianp
  49.  * removed MAX_VERTICES
  50.  *
  51.  * Revision 1.6  1995/05/22  20:59:34  brianp
  52.  * Release 1.2
  53.  *
  54.  * Revision 1.5  1995/03/24  15:16:36  brianp
  55.  * replaced ACCUM_BITS with ACC_TYPE
  56.  *
  57.  * Revision 1.4  1995/03/04  19:25:29  brianp
  58.  * 1.1 beta revision
  59.  *
  60.  * Revision 1.3  1995/03/04  19:17:13  brianp
  61.  * changed max line width to 10.0
  62.  *
  63.  * Revision 1.2  1995/02/24  15:13:56  brianp
  64.  * *** empty log message ***
  65.  *
  66.  * Revision 1.1  1995/02/24  14:13:18  brianp
  67.  * Initial revision
  68.  *
  69.  */
  70.  
  71.  
  72.  
  73. /*
  74.  * Tunable configuration parameters.
  75.  */
  76.  
  77.  
  78.  
  79. #ifndef CONFIG_H
  80. #define CONFIG_H
  81.  
  82.  
  83.  
  84. /* Maximum modelview matrix stack depth: */
  85. #define MAX_MODELVIEW_STACK_DEPTH 32
  86.  
  87. /* Maximum projection matrix stack depth: */
  88. #define MAX_PROJECTION_STACK_DEPTH 32
  89.  
  90. /* Maximum texture matrix stack depth: */
  91. #define MAX_TEXTURE_STACK_DEPTH 10
  92.  
  93. /* Maximum attribute stack depth: */
  94. #define MAX_ATTRIB_STACK_DEPTH 16
  95.  
  96. /* Maximum number of display lists: */
  97. #define MAX_DISPLAYLISTS 7000
  98.  
  99. /* Maximum recursion depth of display list calls: */
  100. #define MAX_LIST_NESTING 64
  101.  
  102. /* Maximum number of lights: */
  103. #define MAX_LIGHTS 8
  104.  
  105. /* Maximum user-defined clipping planes: */
  106. #define MAX_CLIP_PLANES 6
  107.  
  108. /* Number of texture levels */
  109. #define MAX_TEXTURE_LEVELS 11
  110.  
  111. /* Max texture size */
  112. #define MAX_TEXTURE_SIZE   (1 << (MAX_TEXTURE_LEVELS-1))
  113.  
  114. /* Maximum pixel map lookup table size: */
  115. #define MAX_PIXEL_MAP_TABLE 256
  116.  
  117. /* Number of bits of red, green, blue and alpha in color buffer: */
  118. /* TODO: remove, this is a temporary kludge */
  119. #define COLOR_BITS 8
  120.  
  121. /* Number of auxillary color buffers: */
  122. #define NUM_AUX_BUFFERS 0
  123.  
  124. /* Maximum order (degree) of curves: */
  125. #ifdef AMIGA
  126. #   define MAX_EVAL_ORDER 12
  127. #else
  128. #   define MAX_EVAL_ORDER 30
  129. #endif
  130.  
  131. /* Maximum Name stack depth */
  132. #define MAX_NAME_STACK_DEPTH 64
  133.  
  134. /* Min and Max point sizes and granularity */
  135. #define MIN_POINT_SIZE 1.0
  136. #define MAX_POINT_SIZE 10.0
  137. #define POINT_SIZE_GRANULARITY 1.0
  138.  
  139. /* Min and Max line widths and granularity */
  140. #define MIN_LINE_WIDTH 1.0
  141. #define MAX_LINE_WIDTH 10.0
  142. #define LINE_WIDTH_GRANULARITY 1.0
  143.  
  144.  
  145. /* Maximum viewport size: */
  146. #ifdef AMIGA
  147. #  define MAX_WIDTH 640
  148. #  define MAX_HEIGHT 400
  149. #else
  150. #  define MAX_WIDTH 1280
  151. #  define MAX_HEIGHT 1024
  152. #endif
  153.  
  154.  
  155.  
  156. /*
  157.  * Bits per accumulation buffer color component:  8 or 16
  158.  */
  159. #define ACCUM_BITS 16
  160.  
  161.  
  162. /*
  163.  * Bits per depth buffer value:  16 or 32
  164.  */
  165. #define DEPTH_BITS 16
  166.  
  167. #if DEPTH_BITS==16
  168. #  define MAX_DEPTH 0xffff
  169. #  define DEPTH_SCALE 65535.0F
  170. #else
  171. #  define MAX_DEPTH 0x00ffffff
  172. #  define DEPTH_SCALE ((GLfloat) 0x00ffffff)
  173. #endif
  174.  
  175.  
  176. /*
  177.  * Bits per stencil value:  8
  178.  */
  179. #define STENCIL_BITS 8
  180.  
  181.  
  182.  
  183. /* Sub-pixel window coordinate scaling: (not currently used) */
  184. #define SUB_PIX_SCALE 256.0
  185. #define SUB_PIX_SHIFT 8
  186.  
  187. #endif
  188.