Mercurial > sdl-ios-xcode
comparison test/testgl.c @ 1439:4d3bb026cd16
Fixed warnings in -pedantic mode
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 26 Feb 2006 05:02:14 +0000 |
parents | 670e74bf5cc8 |
children | 0a53c90a37f9 3b2a92126f4d |
comparison
equal
deleted
inserted
replaced
1438:1f4f09641645 | 1439:4d3bb026cd16 |
---|---|
243 static GLfloat texMinX, texMinY; | 243 static GLfloat texMinX, texMinY; |
244 static GLfloat texMaxX, texMaxY; | 244 static GLfloat texMaxX, texMaxY; |
245 static int w, h; | 245 static int w, h; |
246 int x, y; | 246 int x, y; |
247 | 247 |
248 SDL_Surface *screen = SDL_GetVideoSurface(); | |
249 | |
250 if ( ! cursor_texture ) { | 248 if ( ! cursor_texture ) { |
251 SDL_Surface *image; | 249 SDL_Surface *image; |
252 GLfloat texcoord[4]; | 250 GLfloat texcoord[4]; |
253 | 251 |
254 /* Load the image (could use SDL_image library here) */ | 252 /* Load the image (could use SDL_image library here) */ |
301 static int x = 0; | 299 static int x = 0; |
302 static int y = 0; | 300 static int y = 0; |
303 static int w, h; | 301 static int w, h; |
304 static int delta_x = 1; | 302 static int delta_x = 1; |
305 static int delta_y = 1; | 303 static int delta_y = 1; |
306 static Uint32 last_moved = 0; | |
307 | 304 |
308 SDL_Surface *screen = SDL_GetVideoSurface(); | 305 SDL_Surface *screen = SDL_GetVideoSurface(); |
309 | 306 |
310 if ( ! global_texture ) { | 307 if ( ! global_texture ) { |
311 SDL_Surface *image; | 308 SDL_Surface *image; |
375 static int x = 0; | 372 static int x = 0; |
376 static int y = 0; | 373 static int y = 0; |
377 static int w, h; | 374 static int w, h; |
378 static int delta_x = 1; | 375 static int delta_x = 1; |
379 static int delta_y = 1; | 376 static int delta_y = 1; |
380 static Uint32 last_moved = 0; | |
381 | 377 |
382 SDL_Rect dst; | 378 SDL_Rect dst; |
383 SDL_Surface *screen = SDL_GetVideoSurface(); | 379 SDL_Surface *screen = SDL_GetVideoSurface(); |
384 | 380 |
385 if ( global_image == NULL ) { | 381 if ( global_image == NULL ) { |
655 glVertex3fv(cube[1]); | 651 glVertex3fv(cube[1]); |
656 glColor3fv(color[2]); | 652 glColor3fv(color[2]); |
657 glVertex3fv(cube[2]); | 653 glVertex3fv(cube[2]); |
658 glColor3fv(color[7]); | 654 glColor3fv(color[7]); |
659 glVertex3fv(cube[7]); | 655 glVertex3fv(cube[7]); |
660 #else // flat cube | 656 #else /* flat cube */ |
661 glColor3f(1.0, 0.0, 0.0); | 657 glColor3f(1.0, 0.0, 0.0); |
662 glVertex3fv(cube[0]); | 658 glVertex3fv(cube[0]); |
663 glVertex3fv(cube[1]); | 659 glVertex3fv(cube[1]); |
664 glVertex3fv(cube[2]); | 660 glVertex3fv(cube[2]); |
665 glVertex3fv(cube[3]); | 661 glVertex3fv(cube[3]); |
765 return(0); | 761 return(0); |
766 } | 762 } |
767 | 763 |
768 int main(int argc, char *argv[]) | 764 int main(int argc, char *argv[]) |
769 { | 765 { |
770 int i, logo, logocursor; | 766 int i, logo, logocursor = 0; |
771 int numtests; | 767 int numtests; |
772 int bpp = 0; | 768 int bpp = 0; |
773 int slowly; | 769 int slowly; |
774 float gamma = 0.0; | 770 float gamma = 0.0; |
775 int noframe = 0; | 771 int noframe = 0; |