diff options
author | Kyle K <kylek389@gmail.com> | 2010-10-14 00:46:39 -0500 |
---|---|---|
committer | Kamil Kaminski <kamilkss@gmail.com> | 2010-10-14 00:46:39 -0500 |
commit | 5fea698cd896f80f0ddcd93c6fb40498d3ba5d0c (patch) | |
tree | 633dfd168fcad47802806454f5bebcc8e0599607 /sdl | |
parent | 982bdae0bcb7158e96be398371c73187315bc437 (diff) | |
download | GLPyramid-5fea698cd896f80f0ddcd93c6fb40498d3ba5d0c.tar.gz GLPyramid-5fea698cd896f80f0ddcd93c6fb40498d3ba5d0c.tar.bz2 GLPyramid-5fea698cd896f80f0ddcd93c6fb40498d3ba5d0c.zip |
pyramid: get rid of tabs
Diffstat (limited to 'sdl')
-rw-r--r-- | sdl/pyramid.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sdl/pyramid.c b/sdl/pyramid.c index 0b5d261..c8595b2 100644 --- a/sdl/pyramid.c +++ b/sdl/pyramid.c @@ -85,7 +85,7 @@ static void SetupRC() glLightModelfv(GL_LIGHT_MODEL_AMBIENT, whiteLight); glLightfv(GL_LIGHT0, GL_AMBIENT, sourceLight); glLightfv(GL_LIGHT0, GL_DIFFUSE, fBrightLight); - glLightfv(GL_LIGHT0, GL_SPECULAR, fBrightLight); + glLightfv(GL_LIGHT0, GL_SPECULAR, fBrightLight); glLightfv(GL_LIGHT0, GL_POSITION, lightPos); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); @@ -260,10 +260,10 @@ static void render(void) /* save the matrix state and do the rotations */ glPushMatrix(); - /* apply camera transform, and draw the ground */ - apply_camera_transform(&camera); - glColor3ub(255, 0, 255); - draw_ground(); + /* apply camera transform, and draw the ground */ + apply_camera_transform(&camera); + glColor3ub(255, 0, 255); + draw_ground(); /* move object back and do in place rotation */ glTranslatef(0.0f, 0.2f, -3.5f); @@ -349,7 +349,7 @@ int main(int argc, char **argv) #ifdef STAT_FPS deltaclock = SDL_GetTicks() - startclock; if (deltaclock != 0 ) - current_fps = 1000 / deltaclock; + current_fps = 1000 / deltaclock; static char buffer[30] = { 0 }; sprintf(buffer, "Textured Pyramid: %04d fps", current_fps); |