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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines