summaryrefslogtreecommitdiff
path: root/progs/demos/tunnel2.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-03-27 17:30:51 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-03-27 17:30:51 +0000
commit0a355dc01078ffd52873fa220feaf207dad10d9b (patch)
tree35d94baaff5f77476126601822dda396d4220290 /progs/demos/tunnel2.c
parent25a5dc2ea718863af84511491b9184d06a8c2931 (diff)
clean-up of tunnel demos
Diffstat (limited to 'progs/demos/tunnel2.c')
-rw-r--r--progs/demos/tunnel2.c19
1 files changed, 2 insertions, 17 deletions
diff --git a/progs/demos/tunnel2.c b/progs/demos/tunnel2.c
index 3a6e9f8843..8d66248410 100644
--- a/progs/demos/tunnel2.c
+++ b/progs/demos/tunnel2.c
@@ -20,7 +20,7 @@
#include <GL/glut.h>
#include "readtex.c"
-#include "tunneldat.c"
+#include "tunneldat.h"
#ifdef FX
#endif
@@ -49,19 +49,6 @@ static GLint Frames = 0;
#define M_PI 3.1415926535
#endif
-extern int striplength_skin_13[];
-extern float stripdata_skin_13[];
-
-extern int striplength_skin_12[];
-extern float stripdata_skin_12[];
-
-extern int striplength_skin_11[];
-extern float stripdata_skin_11[];
-
-extern int striplength_skin_9[];
-extern float stripdata_skin_9[];
-
-
static float obs[3] = { 1000.0, 0.0, 2.0 };
static float dir[3];
static float v = 0.5;
@@ -117,7 +104,7 @@ inittextures(void)
}
static void
-drawobjs(int *l, float *f)
+drawobjs(const int *l, const float *f)
{
int mend, j;
@@ -547,8 +534,6 @@ main(int ac, char **av)
{
fprintf(stderr,
"Tunnel2 V1.0\nWritten by David Bucciarelli (tech.hmw@plus.it)\n");
- fprintf(stderr,
- "You need TWO Voodoo Graphics boards in order to run this demo !\n");
glutInitWindowPosition(0, 0);
glutInitWindowSize(WIDTHC0, HEIGHTC0);