ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/devtable.c
Revision: 2.8
Committed: Wed Oct 5 17:20:55 2011 UTC (12 years, 7 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad4R2P2, rad5R0, rad4R2, rad4R1, rad4R2P1
Changes since 2.7: +18 -2 lines
Log Message:
Windows compatibility changes from Bill Hoffman

File Contents

# User Rev Content
1 greg 1.1 #ifndef lint
2 greg 2.8 static const char RCSid[] = "$Id: devtable.c,v 2.7 2004/03/30 16:13:01 schorsch Exp $";
3 greg 1.1 #endif
4     /*
5     * devtable.c - device table for rview.
6 greg 2.4 */
7    
8 greg 2.5 #include "copyright.h"
9 greg 2.6
10     #include <stdio.h>
11 greg 1.1
12 greg 2.4 #include "color.h"
13 greg 1.1 #include "driver.h"
14    
15 greg 2.8 #if !defined(HAS_X11) && !defined(HAS_QT)
16     #define HAS_X11
17     #endif
18    
19     #ifdef HAS_X11
20     extern dr_initf_t x11_init;
21 greg 1.9 char dev_default[] = "x11";
22 greg 2.8 #else
23     char dev_default[] = "qt";
24     #endif
25 greg 1.6
26 greg 2.8 #ifdef HAS_QT
27     extern dr_initf_t qt_init;
28     #endif
29 greg 1.1
30     struct device devtable[] = { /* supported devices */
31 greg 2.4 {"slave", "Slave driver", slave_init},
32 greg 2.8 #ifdef HAS_X11
33 greg 1.9 {"x11", "X11 color or greyscale display", x11_init},
34 greg 2.3 {"x11d", "X11 display using stdin/stdout", x11_init},
35 greg 2.8 #endif
36     #ifdef HAS_QT
37     {"qt", "QT display", qt_init},
38     #endif
39 greg 1.1 {0} /* terminator */
40     };