diff options
author | Matt Turner <mattst88@gmail.com> | 2010-01-22 15:32:04 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2011-04-04 17:14:36 -0400 |
commit | da3836699a0ffa3a9e5cf5b6da2fdf7364dd3b2e (patch) | |
tree | 050cb722e8eab800b396453f9625f839ac573ef7 | |
parent | bf004a04b33e1172c5d9871dc4632ecadf491cd7 (diff) |
Remove unnecessary code.
Signed-off-by: Matt Turner <mattst88@gmail.com>
-rw-r--r-- | glpong3d.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -253,17 +253,6 @@ void GLPong_Move(void) { void GLPong_Draw(void) { float count; - glLoadIdentity(); - glColor3f(0.0f, 0.0f, 0.0f); - glTranslatef(0.0f, 0.0f, GLPONG_BACK_Z); - glBegin(GL_QUADS); - glTexCoord2f(0.875f, 0.0f); glVertex2f( 1.5f, 1.0f); /* Upper Right */ - glTexCoord2f(0.125f, 0.0f); glVertex2f(-1.5f, 1.0f); /* Upper Left */ - glTexCoord2f(0.125f, 1.0f); glVertex2f(-1.5f, -1.0f); /* Lower Left */ - glTexCoord2f(0.875f, 1.0f); glVertex2f( 1.5f, -1.0f); /* Lower Right */ - glEnd(); - glDisable(GL_TEXTURE_2D); - glColor3f(0.0f, 1.0f, 0.0f); for (count = GLPONG_FRONT_Z; count >= GLPONG_BACK_Z; count -= 1.0f) { glLoadIdentity(); @@ -390,9 +379,8 @@ static void SDL_GL_GetMouseState(Paddle_t * paddle) { int x, y; float temp_x, temp_y; - Uint8 * key; - key = SDL_GetKeyState(NULL); + SDL_PumpEvents(); SDL_GetMouseState(&x, &y); temp_x = ((float) x / GLPONG_WIDTH) * 3.3f - 1.65f; |