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.7 by greg, Sat Feb 22 02:07:24 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header for OpenGL cone drawing routines with depth buffer checks.
4   */
# Line 17 | Line 14
14   #endif
15  
16   extern struct ODview {
17 +        int     sfirst, snext;  /* first sample and first in next view */
18          short   hhi, vhi;       /* screen image resolution */
19          short   hlow, vlow;     /* block resolution */
20 +        int     n2redraw;       /* approx. number of samples needing redraw */
21          struct ODblock {
22                  short   nsamp;          /* number of samples in block */
23                  short   nused;          /* number actually allocated */
24                  int     first;          /* first sample in this block */
25                  int     free;           /* index for block free list */
26 +                float   pthresh;        /* proximity threshold */
27          }       *bmap;          /* low resolution image map */
28          int4    *emap;          /* low resolution edge presence map */
29 +        int4    *pmap;          /* high resolution presence map */
30          GLfloat *dmap;          /* high resolution depth map */
31   } *odView;              /* our view list */
32  
# Line 111 | Line 112 | needs to be redrawn in the next call to odUpdate().
112  
113  
114   void
115 + odRedrawAll()                   : everything needs to be redrawn
116 +
117 + Redraw everything in all views on the next call to odUpdate().
118 + Unless odRemap() is called, no new tone mapping will be done.
119 +
120 +
121 + void
122   odUpdate(vn)                    : update the current view
123   int     vn;                     : view number
124  
# Line 118 | Line 126 | Draw all new and undrawn sample values since last call
126  
127  
128   void
129 < odRemap()                       : recompute tone mapping
129 > odRemap(newhist)                : recompute tone mapping
130 > int     newhist;                : flag whether to clear history
131  
132   Recompute the tone mapping for all the samples in all the views
133 < and redraw them on the next call(s) to odUpdate().
133 > and redraw them on the next call(s) to odUpdate().  If newhist
134 > is non-zero, then clear the previous sample history.
135  
136   **********************************************************************/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines