diff options
author | Vinson Lee <[email protected]> | 2009-12-21 15:20:01 -0800 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2009-12-21 15:20:01 -0800 |
commit | 07b54fe35b93ccfd9eebd2cebe637c20044200f2 (patch) | |
tree | 9489591db4a4e8b0d1559dc06fd25bc84e97fd28 /progs/redbook/plane.c | |
parent | 753f0a1dea6c304eb3cc5a3db5f24a5801e37a55 (diff) |
progs/redbook: Silence compiler warnings.
Diffstat (limited to 'progs/redbook/plane.c')
-rw-r--r-- | progs/redbook/plane.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/progs/redbook/plane.c b/progs/redbook/plane.c index dc17f7b2386..2c2e2d24d93 100644 --- a/progs/redbook/plane.c +++ b/progs/redbook/plane.c @@ -47,7 +47,7 @@ /* Initialize material property, light source, and lighting model. */ -void myinit(void) +static void myinit(void) { GLfloat mat_ambient[] = { 0.0, 0.0, 0.0, 1.0 }; /* mat_specular and mat_shininess are NOT default values */ @@ -75,7 +75,7 @@ void myinit(void) glEnable(GL_DEPTH_TEST); } -void drawPlane(void) +static void drawPlane(void) { glBegin (GL_QUADS); glNormal3f (0.0, 0.0, 1.0); @@ -104,7 +104,7 @@ void drawPlane(void) glEnd(); } -void display (void) +static void display (void) { GLfloat infinite_light[] = { 1.0, 1.0, 1.0, 0.0 }; GLfloat local_light[] = { 1.0, 1.0, 1.0, 1.0 }; @@ -125,7 +125,7 @@ void display (void) glFlush (); } -void myReshape(int w, int h) +static void myReshape(int w, int h) { glViewport (0, 0, w, h); glMatrixMode (GL_PROJECTION); |