Mercurial > hg > old > magoroku_racing
comparison title_scene.c @ 91:cb6c6de125dc
halfway
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 26 May 2011 14:44:03 +0900 |
parents | 8edae89a3877 |
children | 0b65ca27f113 |
comparison
equal
deleted
inserted
replaced
90:8edae89a3877 | 91:cb6c6de125dc |
---|---|
1 //#include "libps2.h" | 1 #include "libps2.h" |
2 //#include "ps2util.h" | 2 #include "ps2util.h" |
3 #include "title_scene.h" | 3 #include "title_scene.h" |
4 | 4 |
5 typedef enum { | 5 typedef enum { |
6 TITLE_INIT, | 6 TITLE_INIT, |
7 TITLE_MAIN, | 7 TITLE_MAIN, |
8 TITLE_FINISH | 8 TITLE_FINISH |
9 } TITLE_STATE; | 9 } TITLE_STATE; |
10 | 10 |
11 | 11 |
12 //static ps2utilSprite title_sprite; | 12 static ps2utilSprite title_sprite; |
13 | 13 |
14 //static TEXTURE *title_img; | 14 static TEXTURE *title_img; |
15 | 15 |
16 #define TITLE_IMG_FILE "img/title.png" | 16 #define TITLE_IMG_FILE "img/title.png" |
17 | 17 |
18 | 18 |
19 static void | 19 static void |
20 title_init() | 20 title_init() |
21 { | 21 { |
22 /* | 22 /* |
23 load texture | 23 load texture |
24 */ | 24 */ |
25 // title_img = read_png_file( TITLE_IMG_FILE ); | 25 // title_img = read_png_file( TITLE_IMG_FILE ); |
26 // ps2util_tex_Set( title_img ); | 26 // ps2util_tex_Set( title_img ); |
27 | 27 |
44 } | 44 } |
45 | 45 |
46 static void | 46 static void |
47 title_finish() | 47 title_finish() |
48 { | 48 { |
49 // ps2util_sprite_Destroy( &title_sprite ); | 49 ps2util_sprite_Destroy( &title_sprite ); |
50 // ps2util_tex_Exclude( title_img ); | 50 ps2util_tex_Exclude( title_img ); |
51 // free_texture( title_img ); | 51 free_texture( title_img ); |
52 } | 52 } |
53 | 53 |
54 void | 54 void |
55 title_finish_call() | 55 title_finish_call() |
56 { | 56 { |
59 | 59 |
60 int | 60 int |
61 title_scene() | 61 title_scene() |
62 { | 62 { |
63 static TITLE_STATE state = TITLE_INIT; | 63 static TITLE_STATE state = TITLE_INIT; |
64 int pad; | 64 //int pad; |
65 | 65 |
66 switch (state) { | 66 switch (state) { |
67 case TITLE_INIT: | 67 case TITLE_INIT: |
68 title_init(); | 68 title_init(); |
69 state = TITLE_MAIN; | 69 state = TITLE_MAIN; |