--- ray/src/hd/rhd_odraw.h 1998/12/18 11:55:19 3.1 +++ ray/src/hd/rhd_odraw.h 2003/02/22 02:07:24 3.7 @@ -1,7 +1,4 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ - -/* SCCSid "$SunId$ SGI" */ - +/* RCSid: $Id: rhd_odraw.h,v 3.7 2003/02/22 02:07:24 greg Exp $ */ /* * Header for OpenGL cone drawing routines with depth buffer checks. */ @@ -17,15 +14,19 @@ #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 */ + int n2redraw; /* approx. number of samples needing redraw */ struct ODblock { short nsamp; /* number of samples in block */ 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 +112,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 +126,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. **********************************************************************/