demos: move tests/dinoshade.c to demos/
authorBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 19:08:48 +0000 (13:08 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 18 Apr 2009 19:08:48 +0000 (13:08 -0600)
progs/demos/Makefile
progs/demos/dinoshade.c [moved from progs/tests/dinoshade.c with 99% similarity]
progs/tests/Makefile

index 2fe4079..8febc14 100644 (file)
@@ -19,6 +19,7 @@ PROGS = \
        clearspd \
        copypix \
        cubemap \
+       dinoshade \
        drawpix \
        engine \
        fbo_firecube \
similarity index 99%
rename from progs/tests/dinoshade.c
rename to progs/demos/dinoshade.c
index fb7c3f4..451da2e 100644 (file)
@@ -165,7 +165,7 @@ enum {
 };
 
 /* Create a matrix that will project the desired shadow. */
-void
+static void
 shadowMatrix(GLfloat shadowMat[4][4],
   GLfloat groundplane[4],
   GLfloat lightpos[4])
@@ -201,7 +201,7 @@ shadowMatrix(GLfloat shadowMat[4][4],
 }
 
 /* Find the plane equation given 3 points. */
-void
+static void
 findPlane(GLfloat plane[4],
   GLfloat v0[3], GLfloat v1[3], GLfloat v2[3])
 {
@@ -224,7 +224,7 @@ findPlane(GLfloat plane[4],
   plane[D] = -(plane[A] * v0[X] + plane[B] * v0[Y] + plane[C] * v0[Z]);
 }
 
-void
+static void
 extrudeSolidFromPolygon(GLfloat data[][2], unsigned int dataSize,
   GLdouble thickness, GLuint side, GLuint edge, GLuint whole)
 {
index 24275fd..e5da72a 100644 (file)
@@ -37,7 +37,6 @@ SOURCES = \
        copypixrate.c \
        crossbar.c \
        cva.c \
-       dinoshade.c \
        drawbuffers.c \
        exactrast.c \
        floattex.c \