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.8 by greg, Tue Mar 4 05:49:21 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   */
5  
9 #undef NOPROTO
10 #define NOPROTO 1
6   #include "color.h"
7   #include "tonemap.h"
8   #include "rhdriver.h"
# Line 17 | Line 12
12   #endif
13  
14   extern struct ODview {
15 +        int     sfirst, snext;  /* first sample and first in next view */
16          short   hhi, vhi;       /* screen image resolution */
17          short   hlow, vlow;     /* block resolution */
18 +        int     n2redraw;       /* approx. number of samples needing redraw */
19          struct ODblock {
20                  short   nsamp;          /* number of samples in block */
21                  short   nused;          /* number actually allocated */
22                  int     first;          /* first sample in this block */
23                  int     free;           /* index for block free list */
24 +                float   pthresh;        /* proximity threshold */
25          }       *bmap;          /* low resolution image map */
26          int4    *emap;          /* low resolution edge presence map */
27 +        int4    *pmap;          /* high resolution presence map */
28          GLfloat *dmap;          /* high resolution depth map */
29   } *odView;              /* our view list */
30  
# Line 111 | Line 110 | needs to be redrawn in the next call to odUpdate().
110  
111  
112   void
113 + odRedrawAll()                   : everything needs to be redrawn
114 +
115 + Redraw everything in all views on the next call to odUpdate().
116 + Unless odRemap() is called, no new tone mapping will be done.
117 +
118 +
119 + void
120   odUpdate(vn)                    : update the current view
121   int     vn;                     : view number
122  
# Line 118 | Line 124 | Draw all new and undrawn sample values since last call
124  
125  
126   void
127 < odRemap()                       : recompute tone mapping
127 > odRemap(newhist)                : recompute tone mapping
128 > int     newhist;                : flag whether to clear history
129  
130   Recompute the tone mapping for all the samples in all the views
131 < and redraw them on the next call(s) to odUpdate().
131 > and redraw them on the next call(s) to odUpdate().  If newhist
132 > is non-zero, then clear the previous sample history.
133  
134   **********************************************************************/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines