8 |
|
* Program to display Radiance scene using OpenGL. |
9 |
|
*/ |
10 |
|
|
11 |
– |
#include "radogl.h" |
12 |
– |
#include "view.h" |
13 |
– |
#include "paths.h" |
11 |
|
#include <sys/types.h> |
12 |
|
#include <GL/glx.h> |
13 |
|
#ifndef NOSTEREO |
14 |
|
#include <X11/extensions/SGIStereo.h> |
15 |
|
#endif |
16 |
|
#include <ctype.h> |
17 |
+ |
#include "radogl.h" |
18 |
+ |
#include "view.h" |
19 |
+ |
#include "paths.h" |
20 |
|
#include "glradicon.h" |
21 |
|
|
22 |
|
#ifndef MAXVIEW |
161 |
|
dev_open(radfile = argv[i]); |
162 |
|
/* load octree or scene files */ |
163 |
|
if (octree != NULL) { |
164 |
< |
displist = rgl_octlist(octree, NULL, NULL); |
164 |
> |
displist = rgl_octlist(octree, NULL, NULL, NULL); |
165 |
|
startrtrace(octree); |
166 |
|
} else |
167 |
< |
displist = rgl_filelist(nscenef, scene); |
167 |
> |
displist = rgl_filelist(nscenef, scene, NULL); |
168 |
|
/* set initial view */ |
169 |
|
dev_view(currentview < 0 ? &thisview : vwl[currentview].v); |
170 |
|
/* input/render loop */ |