ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhdriver.h
(Generate patch)

Comparing ray/src/hd/rhdriver.h (file contents):
Revision 3.3 by gregl, Fri Nov 21 15:11:43 1997 UTC vs.
Revision 3.7 by gregl, Thu Dec 11 09:34:51 1997 UTC

# Line 17 | Line 17 | extern struct driver {
17  
18                          /* dev_input() return flags */
19   #define DEV_SHUTDOWN    01      /* user shutdown request */
20 < #define DEV_NEWVIEW     02      /* view change (new view in odev.v) */
21 < #define DEV_NEWSIZE     04      /* device resolution change */
22 < #define DEV_WAIT        010     /* pause computation and wait for input */
20 > #define DEV_NEWVIEW     02      /* view change (new view in odev.v) */
21 > #define DEV_NEWSIZE     04      /* device resolution change */
22 > #define DEV_WAIT        010     /* pause computation and wait for input */
23   #define DEV_RESUME      020     /* resume after pause */
24 + #define DEV_REDRAW      040     /* redraw from server */
25 + #define DEV_PUTVIEW     0100    /* print out current view */
26 + #define DEV_LASTVIEW    0200    /* restore previous view */
27  
28  
29   /************************************************************************
# Line 36 | Line 39 | The view type, horizontal and vertical view angles and
39   parameters in odev.v should also be assigned.
40  
41  
42 < void
42 > int
43   dev_view(nv)            : set display view parameters
44   VIEW    *nv;            : the new view
45  
46   Updates the display for the given view change.
47   Look for nv==&odev.v when making view current after dev_input()
48 < returns DEV_NEWVIEW flag.
48 > returns DEV_NEWVIEW flag.  Return 1 on success, or 0 if the
49 > new view would conflict with device requirements.  In the latter
50 > case, reset parameters in nv to make it more agreeable, calling
51 > error(COMMAND, "appropriate user warning").
52  
53  
54   void
55 < dev_value(c, p)         : register new point of light
55 > dev_value(c, p, v)      : register new point of light
56   COLR    c;              : pixel color (RGBE)
57   FVECT   p;              : world intersection point
58 + FVECT   v;              : ray direction vector
59  
60   Add the given color point to the display output queue.
61  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines