--- ray/src/hd/rhd_odraw.h 1998/12/18 11:55:19 3.1 +++ ray/src/hd/rhd_odraw.h 1998/12/23 17:42:24 3.5 @@ -17,6 +17,7 @@ #endif extern struct ODview { + int sfirst, snext; /* first sample and first in next view */ short hhi, vhi; /* screen image resolution */ short hlow, vlow; /* block resolution */ struct ODblock { @@ -24,8 +25,10 @@ extern struct ODview { short nused; /* number actually allocated */ int first; /* first sample in this block */ int free; /* index for block free list */ + float pthresh; /* proximity threshold */ } *bmap; /* low resolution image map */ int4 *emap; /* low resolution edge presence map */ + int4 *pmap; /* high resolution presence map */ GLfloat *dmap; /* high resolution depth map */ } *odView; /* our view list */ @@ -111,6 +114,13 @@ needs to be redrawn in the next call to odUpdate(). void +odRedrawAll() : everything needs to be redrawn + +Redraw everything in all views on the next call to odUpdate(). +Unless odRemap() is called, no new tone mapping will be done. + + +void odUpdate(vn) : update the current view int vn; : view number @@ -118,9 +128,11 @@ Draw all new and undrawn sample values since last call void -odRemap() : recompute tone mapping +odRemap(newhist) : recompute tone mapping +int newhist; : flag whether to clear history Recompute the tone mapping for all the samples in all the views -and redraw them on the next call(s) to odUpdate(). +and redraw them on the next call(s) to odUpdate(). If newhist +is non-zero, then clear the previous sample history. **********************************************************************/