comparison test/testsprite2.c @ 1712:931d111e737a SDL-1.3

Started framework for Windows video driver
author Sam Lantinga <slouken@libsdl.org>
date Mon, 26 Jun 2006 13:56:56 +0000
parents 57ce47f033a5
children 6c63fc2bd986
comparison
equal deleted inserted replaced
1711:865ba39fc96d 1712:931d111e737a
1 /* Simple program: Move N sprites around on the screen as fast as possible */ 1 /* Simple program: Move N sprites around on the screen as fast as possible */
2 2
3 #include <stdio.h>
4 #include <stdlib.h> 3 #include <stdlib.h>
5 #include <string.h>
6 #include <ctype.h>
7 #include <math.h>
8 #include <time.h> 4 #include <time.h>
9 5
10 #include "SDL.h" 6 #include "SDL.h"
11 7
12 #define NUM_WINDOWS 2 8 #define NUM_WINDOWS 2
120 } 116 }
121 117
122 int 118 int
123 main(int argc, char *argv[]) 119 main(int argc, char *argv[])
124 { 120 {
125 const SDL_DisplayMode *current_mode;
126 int window_w, window_h; 121 int window_w, window_h;
127 int i, done; 122 int i, done;
128 SDL_Event event; 123 SDL_Event event;
129 Uint32 then, now, frames; 124 Uint32 then, now, frames;
130 125