Mercurial > hg > old > magoroku_racing.bad
diff title_scene.c @ 90:8edae89a3877
compile on Mac OS X
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 19 May 2011 16:41:21 +0900 |
parents | 6910aeb52843 |
children | cb6c6de125dc |
line wrap: on
line diff
--- a/title_scene.c Thu May 19 16:38:44 2011 +0900 +++ b/title_scene.c Thu May 19 16:41:21 2011 +0900 @@ -1,8 +1,5 @@ -/* - * $Id$ -*/ -#include "libps2.h" -#include "ps2util.h" +//#include "libps2.h" +//#include "ps2util.h" #include "title_scene.h" typedef enum { @@ -12,9 +9,9 @@ } TITLE_STATE; -static ps2utilSprite title_sprite; +//static ps2utilSprite title_sprite; -static TEXTURE *title_img; +//static TEXTURE *title_img; #define TITLE_IMG_FILE "img/title.png" @@ -25,17 +22,19 @@ /* load texture */ - title_img = read_png_file( TITLE_IMG_FILE ); - ps2util_tex_Set( title_img ); + // title_img = read_png_file( TITLE_IMG_FILE ); + // ps2util_tex_Set( title_img ); /* create sprite object */ + /* ps2util_sprite_Create( &title_sprite, title_img ); ps2util_sprite_Set_basicAttribute( &title_sprite, - 0, 0, 650, 500, 0, 0, 512, 256, SPRITE_PRIO_FOREGROUND ); + 0, 0, 650, 500, 0, 0, 512, 256, SPRITE_PRIO_FOREGROUND ); ps2util_sprite_Use_alpha( &title_sprite ); ps2util_sprite_Request( &title_sprite ); + */ } void @@ -47,9 +46,9 @@ static void title_finish() { - ps2util_sprite_Destroy( &title_sprite ); - ps2util_tex_Exclude( title_img ); - free_texture( title_img ); + // ps2util_sprite_Destroy( &title_sprite ); + // ps2util_tex_Exclude( title_img ); + // free_texture( title_img ); } void @@ -71,8 +70,8 @@ break; case TITLE_MAIN: - pad = sjoy_get_ps2_button( JOYPAD_1 ); - state = (pad & SJOY_PS2_START) ? TITLE_FINISH : TITLE_MAIN; + // pad = sjoy_get_ps2_button( JOYPAD_1 ); + // state = (pad & SJOY_PS2_START) ? TITLE_FINISH : TITLE_MAIN; break; case TITLE_FINISH: