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 |
|
*/ |
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 |
|
|
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 |
|
|
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 |
|
**********************************************************************/ |