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/pickdepth.c | |
parent | 753f0a1dea6c304eb3cc5a3db5f24a5801e37a55 (diff) |
progs/redbook: Silence compiler warnings.
Diffstat (limited to 'progs/redbook/pickdepth.c')
-rw-r--r-- | progs/redbook/pickdepth.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/progs/redbook/pickdepth.c b/progs/redbook/pickdepth.c index ad5bdc81994..91d44a38c0a 100644 --- a/progs/redbook/pickdepth.c +++ b/progs/redbook/pickdepth.c @@ -51,7 +51,7 @@ #include <stdio.h> #include <GL/glut.h> -void +static void myinit(void) { glClearColor(0.0, 0.0, 0.0, 0.0); @@ -65,7 +65,7 @@ myinit(void) * each rectangle is given the same name. Note that * each rectangle is drawn with a different z value. */ -void +static void drawRects(GLenum mode) { if (mode == GL_SELECT) @@ -100,7 +100,7 @@ drawRects(GLenum mode) /* processHits() prints out the contents of the * selection array. */ -void +static void processHits(GLint hits, GLuint buffer[]) { GLint i; @@ -131,7 +131,7 @@ processHits(GLint hits, GLuint buffer[]) */ #define BUFSIZE 512 -void +static void pickRects(int button, int state, int x, int y) { GLuint selectBuf[BUFSIZE]; @@ -164,7 +164,7 @@ pickRects(int button, int state, int x, int y) processHits(hits, selectBuf); } -void +static void display(void) { glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); @@ -172,7 +172,7 @@ display(void) glutSwapBuffers(); } -void +static void myReshape(int w, int h) { glViewport(0, 0, w, h); |