comparison test/nds-test-progs/sprite2/source/testsprite2.c @ 2692:cd8978f47849 gsoc2008_nds

Minor cleanups in renderer.
author Darren Alton <dalton@stevens.edu>
date Sat, 16 Aug 2008 11:16:08 +0000
parents e9f27fe4f2a1
children c1c7cb1b5a47
comparison
equal deleted inserted replaced
2691:87cfb5fde5db 2692:cd8978f47849
2 2
3 #include <stdlib.h> 3 #include <stdlib.h>
4 #include <stdio.h> 4 #include <stdio.h>
5 #include <time.h> 5 #include <time.h>
6 #include <nds.h> 6 #include <nds.h>
7 #include <fat.h>
7 #include "common.h" 8 #include "common.h"
8 9
9 #define NUM_SPRITES 100 10 #define NUM_SPRITES 100
10 #define MAX_SPEED 1 11 #define MAX_SPEED 1
11 12
146 main(int argc, char *argv[]) 147 main(int argc, char *argv[])
147 { 148 {
148 int i, done; 149 int i, done;
149 SDL_Event event; 150 SDL_Event event;
150 Uint32 then, now, frames; 151 Uint32 then, now, frames;
151 152 fatInitDefault();
152 /* Initialize parameters */ 153 /* Initialize parameters */
153 num_sprites = NUM_SPRITES; 154 num_sprites = NUM_SPRITES;
154 155
155 /* Initialize test framework */ 156 /* Initialize test framework */
156 state = CommonCreateState(argv, SDL_INIT_VIDEO); 157 state = CommonCreateState(argv, SDL_INIT_VIDEO);