ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpaint.h
Revision: 1.2
Committed: Mon Jan 8 13:37:52 1990 UTC (34 years, 3 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.1: +1 -0 lines
Log Message:
Changed handling of view parameters

File Contents

# Content
1 /* Copyright (c) 1987 Regents of the University of California */
2
3 /* SCCSid "$SunId$ LBL" */
4
5 /*
6 * rpaint.h - header file for image painting.
7 *
8 * 1/30/87
9 */
10
11 #include "driver.h"
12
13 #include "view.h"
14
15 typedef short COORD; /* an image coordinate */
16
17 typedef struct pnode {
18 struct pnode *kid; /* children */
19 COORD x, y; /* position */
20 COLOR v; /* value */
21 } PNODE; /* a paint node */
22
23 /* child ordering */
24 #define DL 0 /* down left */
25 #define DR 1 /* down right */
26 #define UL 2 /* up left */
27 #define UR 3 /* up right */
28
29 #define newptree() (PNODE *)calloc(4, sizeof(PNODE))
30
31 typedef struct {
32 COORD l, d, r, u; /* left, down, right, up */
33 } RECT; /* a rectangle */
34
35 extern PNODE ptrunk; /* the base of the image tree */
36
37 extern VIEW ourview; /* current view parameters */
38 extern VIEW oldview; /* previous view parameters */
39 extern int hresolu, vresolu; /* image resolution */
40
41 extern int greyscale; /* map colors to brightness? */
42
43 extern int pdepth; /* image depth in current frame */
44 extern RECT pframe; /* current frame rectangle */
45
46 extern double exposure; /* exposure for scene */
47
48 extern struct driver *dev; /* driver functions */
49
50 extern PNODE *findrect();