2 |
|
/* |
3 |
|
* Header file for object display routines for rholo drivers. |
4 |
|
*/ |
5 |
+ |
#ifndef _RAD_RHDOBJ_H_ |
6 |
+ |
#define _RAD_RHDOBJ_H_ |
7 |
|
|
8 |
+ |
#ifdef __cplusplus |
9 |
+ |
extern "C" { |
10 |
+ |
#endif |
11 |
+ |
|
12 |
|
/* additional user commands */ |
13 |
|
#define DO_LOAD 0 /* load octree object */ |
14 |
|
#define DO_UNLOAD 1 /* unload (free) octree object */ |
148 |
|
|
149 |
|
******************************************************************/ |
150 |
|
|
151 |
+ |
extern TMstruct *tmGlobal; |
152 |
|
|
146 |
– |
extern double dobj_trace(); |
147 |
– |
|
153 |
|
extern char rhdcmd[DO_NCMDS][8]; |
154 |
|
|
155 |
< |
extern int (*dobj_lightsamp)(); /* pointer to function to get lights */ |
155 |
> |
/* pointer to function to get lights */ |
156 |
> |
extern void (*dobj_lightsamp)(COLR clr, FVECT direc, FVECT pos); |
157 |
> |
|
158 |
> |
|
159 |
> |
extern int dobj_cleanup(void); |
160 |
> |
extern int dobj_command(char *cmd, register char *args); |
161 |
> |
extern int dobj_render(void); |
162 |
> |
extern double dobj_trace(char nm[], FVECT rorg, FVECT rdir); |
163 |
> |
extern int dobj_load(char *oct, char *nam); |
164 |
> |
extern int dobj_unload(char *nam); |
165 |
> |
extern int dobj_xform(char *nam, int rel, int ac, char **av); |
166 |
> |
extern int dobj_putstats(char *nam, FILE *fp); |
167 |
> |
extern int dobj_unmove(void); |
168 |
> |
extern int dobj_dup(char *oldnm, char *nam); |
169 |
> |
extern int dobj_lighting(char *nam, int cn); |
170 |
> |
|
171 |
> |
|
172 |
> |
#ifdef __cplusplus |
173 |
> |
} |
174 |
> |
#endif |
175 |
> |
#endif /* _RAD_RHDOBJ_H_ */ |
176 |
> |
|