ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/rpaint.h
(Generate patch)

Comparing ray/src/rt/rpaint.h (file contents):
Revision 2.4 by schorsch, Sat Jun 7 00:54:58 2003 UTC vs.
Revision 2.8 by greg, Thu Aug 21 07:05:59 2008 UTC

# Line 4 | Line 4
4   */
5   #ifndef _RAD_RPAINT_H_
6   #define _RAD_RPAINT_H_
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
7  
11
12 #include "copyright.h"
13
8   #include  "driver.h"
15
9   #include  "view.h"
10  
11 + #ifdef __cplusplus
12 + extern "C" {
13 + #endif
14 +
15   typedef short  COORD;           /* an image coordinate */
16  
17   typedef struct pnode {
18          struct pnode  *kid;             /* children */
19          COORD  x, y;                    /* position */
20 +        COORD  xmin, ymin, xmax, ymax;  /* rectangle */
21          COLOR  v;                       /* value */
22   }  PNODE;                       /* a paint node */
23  
# Line 41 | Line 39 | extern VIEW  ourview;          /* current view parameters */
39   extern VIEW  oldview;           /* previous view parameters */
40   extern int  hresolu, vresolu;   /* image resolution */
41  
42 + extern int  newparam;           /* parameter setting changed */
43 +
44 + extern char  *dvcname;          /* output device name */
45 +
46 + extern char  rifname[];         /* rad input file name */
47 +
48 + extern int  psample;            /* pixel sample size */
49 + extern double  maxdiff;         /* max. sample difference */
50 +
51   extern int  greyscale;          /* map colors to brightness? */
52  
53   extern int  pdepth;             /* image depth in current frame */
# Line 50 | Line 57 | extern double  exposure;       /* exposure for scene */
57  
58   extern struct driver  *dev;     /* driver functions */
59  
60 + extern int  nproc;              /* number of processes */
61 +
62                                  /* defined in rview.c */
63   extern void     devopen(char *dname);
64   extern void     devclose(void);
65   extern void     printdevices(void);
57 extern void     fillreserves(void);
58 extern void     freereserves(void);
66   extern void     command(char *prompt);
67   extern void     rsample(void);
68 < extern int      refine(PNODE *p, int xmin, int ymin,
62 <                                int xmax, int ymax, int pd);
68 > extern int      refine(PNODE *p, int pd);
69                                  /* defined in rv2.c */
70   extern void     getframe(char *s);
71   extern void     getrepaint(char *s);
# Line 67 | Line 73 | extern void    getview(char *s);
73   extern void     lastview(char *s);
74   extern void     saveview(char *s);
75   extern void     loadview(char *s);
76 + extern void     getfocus(char *s);
77   extern void     getaim(char *s);
78   extern void     getmove(char *s);
79   extern void     getrotate(char *s);
# Line 80 | Line 87 | extern void    writepict(char *s);
87   extern int      getrect(char *s, RECT *r);
88   extern int      getinterest(char *s, int direc, FVECT vec, double *mp);
89   extern float    *greyof(COLOR col);
90 < extern void     paint(PNODE *p, int xmin, int ymin, int xmax, int ymax);
91 < extern void     newimage(void);
90 > extern int      paint(PNODE *p);
91 > extern int      waitrays(void);
92 > extern void     newimage(char *s);
93   extern void     redraw(void);
94   extern void     repaint(int xmin, int ymin, int xmax, int ymax);
95 < extern void     paintrect(PNODE *p, int xmin, int ymin,
96 <                                int xmax, int ymax, RECT *r);
89 < extern PNODE    *findrect(int x, int y, PNODE *p, RECT *r, int pd);
95 > extern void     paintrect(PNODE *p, RECT *r);
96 > extern PNODE    *findrect(int x, int y, PNODE *p, int pd);
97   extern void     scalepict(PNODE *p, double sf);
98   extern void     getpictcolrs(int yoff, COLR *scan, PNODE *p,
99                          int xsiz, int ysiz);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines