demos: move tests/dinoshade.c to demos/
This commit is contained in:
parent
49c3e7172d
commit
22af013f85
|
@ -19,6 +19,7 @@ PROGS = \
|
||||||
clearspd \
|
clearspd \
|
||||||
copypix \
|
copypix \
|
||||||
cubemap \
|
cubemap \
|
||||||
|
dinoshade \
|
||||||
drawpix \
|
drawpix \
|
||||||
engine \
|
engine \
|
||||||
fbo_firecube \
|
fbo_firecube \
|
||||||
|
|
|
@ -165,7 +165,7 @@ enum {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Create a matrix that will project the desired shadow. */
|
/* Create a matrix that will project the desired shadow. */
|
||||||
void
|
static void
|
||||||
shadowMatrix(GLfloat shadowMat[4][4],
|
shadowMatrix(GLfloat shadowMat[4][4],
|
||||||
GLfloat groundplane[4],
|
GLfloat groundplane[4],
|
||||||
GLfloat lightpos[4])
|
GLfloat lightpos[4])
|
||||||
|
@ -201,7 +201,7 @@ shadowMatrix(GLfloat shadowMat[4][4],
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Find the plane equation given 3 points. */
|
/* Find the plane equation given 3 points. */
|
||||||
void
|
static void
|
||||||
findPlane(GLfloat plane[4],
|
findPlane(GLfloat plane[4],
|
||||||
GLfloat v0[3], GLfloat v1[3], GLfloat v2[3])
|
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]);
|
plane[D] = -(plane[A] * v0[X] + plane[B] * v0[Y] + plane[C] * v0[Z]);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
extrudeSolidFromPolygon(GLfloat data[][2], unsigned int dataSize,
|
extrudeSolidFromPolygon(GLfloat data[][2], unsigned int dataSize,
|
||||||
GLdouble thickness, GLuint side, GLuint edge, GLuint whole)
|
GLdouble thickness, GLuint side, GLuint edge, GLuint whole)
|
||||||
{
|
{
|
|
@ -37,7 +37,6 @@ SOURCES = \
|
||||||
copypixrate.c \
|
copypixrate.c \
|
||||||
crossbar.c \
|
crossbar.c \
|
||||||
cva.c \
|
cva.c \
|
||||||
dinoshade.c \
|
|
||||||
drawbuffers.c \
|
drawbuffers.c \
|
||||||
exactrast.c \
|
exactrast.c \
|
||||||
floattex.c \
|
floattex.c \
|
||||||
|
|
Loading…
Reference in New Issue