source: trunk/packages/vizservers/nanovis/config.h @ 2877

Last change on this file since 2877 was 2877, checked in by ldelgass, 7 years ago

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.

  • Property svn:eol-style set to native
File size: 2.6 KB
Line 
1/* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * ----------------------------------------------------------------------
4 * Nanovis: Visualization of Nanoelectronics Data
5 *
6 * ======================================================================
7 *  AUTHOR:  Wei Qiao <qiaow@purdue.edu>
8 *           Purdue Rendering and Perceptualization Lab (PURPL)
9 *
10 *  Copyright (c) 2004-2006  Purdue Research Foundation
11 *
12 *  See the file "license.terms" for information on usage and
13 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
14 * ======================================================================
15 */
16
17#ifndef CONFIG_H__
18#define CONFIG_H__
19
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
39#define XINETD                          /* Enable render server. */
40//#define EVENTLOG                      /* Enable event logging. */
41//#define DO_RLE                        /* Do run length compression. */
42
43#define KEEPSTATS               1
44
45/*
46 * Controls if debug trace logging is enabled
47 */
48#define WANT_TRACE
49
50//#define OLD_CAMERA
51
52/*
53 * The following define controls whether new prototype features are to be
54 * compiled.  Right now by default it's off (0). That's because nanovis
55 * releases are built directly from the subversion repository.  So for now,
56 * we'll rely on developers to set this in their respective sandboxes.
57 */
58#define PROTOTYPE               0
59
60/*
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 *
68 * [In the future, we'll use the OpenDX library reader and determine at
69 * runtime if mesh decimation is required]
70 */
71#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
78
79/*
80 * The following define controls whether the plane* commands are
81 * registered in the interpreter.  Right now it's off.  [Are these
82 * commands still required?]
83 */
84#define PLANE_CMD               0
85
86#endif
Note: See TracBrowser for help on using the repository browser.