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

Comparing ray/src/common/radogl.h (file contents):
Revision 3.1 by gwlarson, Tue Jun 9 11:18:36 1998 UTC vs.
Revision 3.8 by schorsch, Thu Jun 26 00:58:09 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid $Id$ */
2   /*
3   * Header file for Radiance - OpenGL routines.
4   */
5 + #ifndef _RAD_RADOGL_H_
6 + #define _RAD_RADOGL_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
11 +
12 + #include "copyright.h"
13 +
14   #include "standard.h"
15 + #include <GL/glu.h>
16   #include "color.h"
17   #include "object.h"
18   #include "otypes.h"
19   #include "lookup.h"
14 #include <GL/glu.h>
20  
21   #define MAXLIGHTS       8       /* number of OGL light sources */
22  
# Line 37 | Line 42 | typedef struct {
42  
43   extern double   expval;         /* global exposure value */
44   extern COLOR    ambval;         /* global ambient value */
45 + extern int      glightid[MAXLIGHTS];    /* OpenGL GL_LIGHTi values */
46   extern int      dolights;       /* are we outputting light sources? */
47   extern int      domats;         /* are we doing materials? */
48  
49   extern LUTAB    mtab;           /* material/modifier lookup table */
50  
51 < extern MATREC   *newmaterial(), *getmatp();
51 > #define issrcmat(m)     ((m) != NULL && islight((m)->type) && \
52 >                                (m)->type != MAT_GLOW)
53  
54 < extern int      newglist();
54 >                                /* defined in rgldomat.c */
55 > extern void     domatobj(MATREC *mp, FVECT cent);
56 > extern void     domatvert(MATREC *mp, FVECT v, FVECT n);
57 >                                /* defined in rglfile.c */
58 > extern int      newglist(void);
59 > extern void     rgl_checkerr(char *where);
60 > extern int      rgl_filelist(int ic, char **inp, int *nl);
61 > extern int      rgl_octlist(char *fname, FVECT cent, RREAL *radp, int *nl);
62 > extern void     rgl_load(char *inpspec);
63 > extern void     rgl_object(char *name, FILE *fp);
64 >                                /* defined in rglinst.c */
65 > extern int      o_instance(OBJREC *o);
66 > extern int      loadoctrees(void);
67 > extern double   checkoct(char *fname, FVECT cent);
68 > extern int      loadoct(char *fname);
69 >                                /* defined in rglmat.c */
70 > extern void     rgl_matclear(void);
71 > extern MATREC   *getmatp(char *nam);
72 > extern int      o_default(OBJREC *o);
73 > extern int      o_unsupported(OBJREC *o);
74 > extern MATREC   *newmaterial(char *nam);
75 > extern void     freemtl(MATREC *mp);
76 > extern int      m_normal(OBJREC *o);
77 > extern int      m_aniso(OBJREC *o);
78 > extern int      m_glass(OBJREC *o);
79 > extern int      m_brdf(OBJREC *o);
80 > extern int      m_brdf2(OBJREC *o);
81 > extern int      m_light(OBJREC *o);
82 > extern int      m_mirror(OBJREC *o);
83 > extern int      m_prism(OBJREC *o);
84 >                                /* defined in rglsrc.c */
85 > extern void     lightinit(void);
86 > extern void     lightclean(void);
87 > extern void     lightdefs(void);
88 > extern int      o_source(OBJREC *o);
89 > extern int      doflatsrc(MATREC *m, FVECT pos, FVECT norm, double area);
90 > extern int      dosphsrc(MATREC *m, FVECT pos, double area);
91 >                                /* defined in rglsurf.c */
92 > extern void     setmaterial(MATREC *mp, FVECT cent, int ispoly);
93 > extern double   polyarea(FVECT cent, FVECT norm, int n, FVECT v[]);
94 > extern int      o_face(OBJREC *o);
95 > extern void     surfclean(void);
96 > extern int      o_sphere(OBJREC *o);
97 > extern int      o_cone(OBJREC *o);
98 > extern int      o_ring(OBJREC *o);
99  
49 extern double   checkoct();
100  
101 < #define issrcmat(m)     ((m) != NULL && islight((m)->type) && \
102 <                                (m)->type != MAT_GLOW)
101 > #ifdef __cplusplus
102 > }
103 > #endif
104 > #endif /* _RAD_RADOGL_H_ */
105 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines