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

Comparing ray/src/hd/rhd_odraw.h (file contents):
Revision 3.1 by gwlarson, Fri Dec 18 11:55:19 1998 UTC vs.
Revision 3.5 by gwlarson, Wed Dec 23 17:42:24 1998 UTC

# Line 17 | Line 17
17   #endif
18  
19   extern struct ODview {
20 +        int     sfirst, snext;  /* first sample and first in next view */
21          short   hhi, vhi;       /* screen image resolution */
22          short   hlow, vlow;     /* block resolution */
23          struct ODblock {
# Line 24 | Line 25 | extern struct ODview {
25                  short   nused;          /* number actually allocated */
26                  int     first;          /* first sample in this block */
27                  int     free;           /* index for block free list */
28 +                float   pthresh;        /* proximity threshold */
29          }       *bmap;          /* low resolution image map */
30          int4    *emap;          /* low resolution edge presence map */
31 +        int4    *pmap;          /* high resolution presence map */
32          GLfloat *dmap;          /* high resolution depth map */
33   } *odView;              /* our view list */
34  
# Line 111 | Line 114 | needs to be redrawn in the next call to odUpdate().
114  
115  
116   void
117 + odRedrawAll()                   : everything needs to be redrawn
118 +
119 + Redraw everything in all views on the next call to odUpdate().
120 + Unless odRemap() is called, no new tone mapping will be done.
121 +
122 +
123 + void
124   odUpdate(vn)                    : update the current view
125   int     vn;                     : view number
126  
# Line 118 | Line 128 | Draw all new and undrawn sample values since last call
128  
129  
130   void
131 < odRemap()                       : recompute tone mapping
131 > odRemap(newhist)                : recompute tone mapping
132 > int     newhist;                : flag whether to clear history
133  
134   Recompute the tone mapping for all the samples in all the views
135 < and redraw them on the next call(s) to odUpdate().
135 > and redraw them on the next call(s) to odUpdate().  If newhist
136 > is non-zero, then clear the previous sample history.
137  
138   **********************************************************************/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines