comparison test/nds-test-progs/sprite2/source/testsprite2.c @ 2694:c1c7cb1b5a47 gsoc2008_nds

More sprite-work in the render driver, and some updates to the nds-test-progs.
author Darren Alton <dalton@stevens.edu>
date Sat, 16 Aug 2008 12:58:36 +0000
parents cd8978f47849
children c04a266c277a
comparison
equal deleted inserted replaced
2693:bae97b6ac32b 2694:c1c7cb1b5a47
5 #include <time.h> 5 #include <time.h>
6 #include <nds.h> 6 #include <nds.h>
7 #include <fat.h> 7 #include <fat.h>
8 #include "common.h" 8 #include "common.h"
9 9
10 #define NUM_SPRITES 100 10 #define NUM_SPRITES 10
11 #define MAX_SPEED 1 11 #define MAX_SPEED 1
12 12
13 static CommonState *state; 13 static CommonState *state;
14 static int num_sprites; 14 static int num_sprites;
15 static SDL_TextureID *sprites; 15 static SDL_TextureID *sprites;
147 main(int argc, char *argv[]) 147 main(int argc, char *argv[])
148 { 148 {
149 int i, done; 149 int i, done;
150 SDL_Event event; 150 SDL_Event event;
151 Uint32 then, now, frames; 151 Uint32 then, now, frames;
152
153 consoleDemoInit(); puts("Hello world! Initializing FAT...");
152 fatInitDefault(); 154 fatInitDefault();
155
153 /* Initialize parameters */ 156 /* Initialize parameters */
154 num_sprites = NUM_SPRITES; 157 num_sprites = NUM_SPRITES;
155 158
156 /* Initialize test framework */ 159 /* Initialize test framework */
157 state = CommonCreateState(argv, SDL_INIT_VIDEO); 160 state = CommonCreateState(argv, SDL_INIT_VIDEO);