ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/devtable.c
(Generate patch)

Comparing ray/src/rt/devtable.c (file contents):
Revision 1.7 by greg, Wed Jul 18 21:45:09 1990 UTC vs.
Revision 2.9 by schorsch, Sat Mar 19 12:51:36 2016 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1988 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  devtable.c - device table for rview.
9 *
10 *      3/30/88
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "driver.h"
11  
12 < char  dev_default[] = "X";
12 > #if !defined(HAS_X11) && !defined(HAS_QT) && !defined(WIN_RVIEW)
13 > /* weird logic ... */
14 > #define HAS_X11
15 > #endif
16  
17 < extern struct driver  *aed_init(), *x_init(), *nws_init();
17 > #ifdef HAS_X11
18 > extern dr_initf_t x11_init;
19 > char  dev_default[] = "x11";
20 > #elif defined(HAS_QT)
21 > char  dev_default[] = "qt";
22 > #elif defined(WIN_RVIEW)
23 > char  dev_default[] = "win";
24 > #endif
25  
26 + #ifdef HAS_QT
27 + extern dr_initf_t qt_init;
28 + #endif
29 +
30 + #ifdef WIN_RVIEW
31 + extern dr_initf_t win_rvudev_init;
32 + #endif
33 +
34   struct device  devtable[] = {                   /* supported devices */
35 <        {"aed", "AED 512 color graphics terminal", aed_init},
36 <        {"news", "NeWS color or greyscale display", nws_init},
37 <        {"sundev", "SunView color or greyscale screen", comm_init},
38 <        {"X", "X10 color or greyscale display", x_init},
39 <        {"x11dev", "X11 color or greyscale display", comm_init},
35 >        {"slave", "Slave driver", slave_init},
36 > #ifdef HAS_X11
37 >        {"x11", "X11 color or greyscale display", x11_init},
38 >        {"x11d", "X11 display using stdin/stdout", x11_init},
39 > #endif
40 > #ifdef HAS_QT
41 >        {"qt", "QT display", qt_init},
42 > #endif
43 > #ifdef WIN_RVIEW
44 >        {"win", "Windows display", win_rvudev_init},
45 > #endif
46          {0}                                     /* terminator */
47   };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines