39 |
|
|
40 |
|
|
41 |
|
|
42 |
< |
extern void |
42 |
> |
void |
43 |
|
gmNewGeom( /* add new geometry to next list */ |
44 |
|
char *file |
45 |
|
) |
46 |
|
{ |
47 |
< |
register int i, j; |
47 |
> |
int i, j; |
48 |
|
/* check if already in next list */ |
49 |
|
FORALLGEOM(gmNext, i) |
50 |
|
if (!strcmp(file, gmNext[i].gfile)) |
73 |
|
} |
74 |
|
|
75 |
|
|
76 |
< |
extern void |
76 |
> |
void |
77 |
|
gmEndGeom(void) /* make next list current */ |
78 |
|
{ |
79 |
< |
register int i, j; |
79 |
> |
int i, j; |
80 |
|
|
81 |
|
FORALLGEOM(gmCurrent, i) { |
82 |
|
FORALLGEOM(gmNext, j) |
93 |
|
} |
94 |
|
|
95 |
|
|
96 |
< |
extern int |
96 |
> |
int |
97 |
|
gmDrawGeom(void) /* draw current list of octrees */ |
98 |
|
{ |
99 |
< |
register int n; |
99 |
> |
int n; |
100 |
|
|
101 |
|
FORALLGEOM(gmCurrent, n) |
102 |
|
glCallList(gmCurrent[n].listid); |
104 |
|
} |
105 |
|
|
106 |
|
|
107 |
< |
extern void |
107 |
> |
void |
108 |
|
gmDrawPortals( /* draw portals with specific RGBA value */ |
109 |
|
int r, |
110 |
|
int g, |
130 |
|
} |
131 |
|
|
132 |
|
|
133 |
< |
extern void |
133 |
> |
void |
134 |
|
gmDepthLimit( /* compute approximate depth limits for view */ |
135 |
|
double dl[2], |
136 |
|
FVECT vorg, |
139 |
|
{ |
140 |
|
FVECT v; |
141 |
|
double dcent; |
142 |
< |
register int i; |
142 |
> |
int i; |
143 |
|
|
144 |
|
dl[0] = FHUGE; dl[1] = 0.; |
145 |
|
FORALLGEOM(gmCurrent, i) { |
155 |
|
} |
156 |
|
|
157 |
|
|
158 |
< |
extern void |
158 |
> |
void |
159 |
|
gmNewPortal( /* add portal file(s) to our new list */ |
160 |
|
char *pflist |
161 |
|
) |
162 |
|
{ |
163 |
< |
register int i; |
163 |
> |
int i; |
164 |
|
char newfile[128]; |
165 |
|
|
166 |
|
if (pflist == NULL) |
187 |
|
} |
188 |
|
|
189 |
|
|
190 |
< |
extern int |
190 |
> |
int |
191 |
|
gmEndPortal(void) /* close portal list and return GL list */ |
192 |
|
{ |
193 |
< |
register int n; |
193 |
> |
int n; |
194 |
|
|
195 |
|
FORALLPORT(newportlist, n); |
196 |
|
if (!n) { /* free old GL list */ |