Ignore:
Timestamp:
Mar 23, 2012, 4:31:05 AM (7 years ago)
Author:
ldelgass
Message:

Some minor refactoring, also add some more fine grained config.h defines
(e.g. replace NV40 define with feature defines). Add tests for some required
OpenGL extensions (should always check for extensions or base version before
calling entry points from the extension). Also, clamp diffuse and specular
values on input and warn when they are out of range.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/vizservers/nanovis/config.h

    r2841 r2877  
    1818#define CONFIG_H__
    1919
    20 #define NV40                            /* Uncomment if using 6 series
    21                                          * card. By default we assume older
    22                                          * card the 5xxx series */
     20/*
     21 * GeForce 6 series and above cards support non-power-of-two texture
     22 * dimensions.  If using a 5 series card, disable this define
     23 */
     24#define HAVE_NPOT_TEXTURES
     25
     26/*
     27 * GeForce 6 series and above cards support 16- or 32-bit float filtering
     28 * and blending.  If using a 5 series card, disable this define
     29 */
     30#define HAVE_FLOAT_TEXTURES
     31
     32/*
     33 * GeForce 8 series cards support 32-bit float filtering and blending.
     34 * If using a 6 or 7 series card, enable this define to use 16-bit float
     35 * textures and blending
     36 */
     37#define USE_HALF_FLOAT
     38
    2339#define XINETD                          /* Enable render server. */
    2440//#define EVENTLOG                      /* Enable event logging. */
    2541//#define DO_RLE                        /* Do run length compression. */
    2642
     43#define KEEPSTATS               1
     44
    2745/*
    2846 * Controls if debug trace logging is enabled
    2947 */
    30 //#define WANT_TRACE
     48#define WANT_TRACE
     49
     50//#define OLD_CAMERA
    3151
    3252/*
     
    3959
    4060/*
    41  * The following define controls whether new load_volume_stream or
    42  * load_volume_stream2 are used to load DX data.  The difference is that
    43  * load_volume_stream2 doesn't do any interpolation of the points to a coarser
    44  * mesh.  Right now, we're using load_volume_stream2 to make isosurfaces
    45  * work correctly. 
    46 
     61 * The following define controls whether the new or old load_volume_stream
     62 * implementation is used to load DX data. The difference is that the old
     63 * implementation doesn't do any interpolation of the points to a coarser
     64 * mesh.  Setting ISO_TEST to 1 will cause the old implementation to be
     65 * used, which makes isosurfaces work correctly (FIXME: is this still
     66 * true?)
     67 *
    4768 * [In the future, we'll use the OpenDX library reader and determine at
    4869 * runtime if mesh decimation is required]
    4970 */
    5071#define ISO_TEST                0
     72
     73/*
     74 * Determines if Sobel filter is applied to gradients when loading a
     75 * volume
     76 */
     77#define FILTER_GRADIENTS        1
    5178
    5279/*
Note: See TracChangeset for help on using the changeset viewer.