changeset 98:1033fece71ce

text_vector
author e085768
date Thu, 02 Jun 2011 17:26:21 +0900
parents afddacdf30dd
children c534f339ee8b
files Makefile Makefile~ TAGS game.c ps2util.c schedule.c test_vector.c
diffstat 7 files changed, 402 insertions(+), 298 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jun 02 16:15:00 2011 +0900
+++ b/Makefile	Thu Jun 02 17:26:21 2011 +0900
@@ -1,6 +1,6 @@
 TARGET = main
 CC = gcc
-SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c light.c title_scene.c game_time.c ps2util.c sjoy.c
+SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c light.c title_scene.c game_time.c ps2util.c sjoy.c 
 #linda/lindaapi.c linda.c
 OBJS = ${SRCS:.c=.o}
 VU1DIR = vu1code
@@ -23,7 +23,9 @@
 
 #LIBS = `xml-config --libs` -lps2util -lpng -lps2a
 
-all : ${TARGET}
+TEST = test_vector
+
+all : ${TARGET} ${TEST}
 
 ${VU1OBJ}: ${VPUSRCS}
 	cd ${VU1DIR}; make
@@ -39,6 +41,8 @@
 ${TARGET} : ${OBJS}
 	${CC} -o ${TARGET} ${OBJS}
 
+${TEST} : test_vector.c ps2util.c 
+	${CC} -o ${TEST} $^
 
 tag:
 	etags *.[ch]
--- a/Makefile~	Thu Jun 02 16:15:00 2011 +0900
+++ b/Makefile~	Thu Jun 02 17:26:21 2011 +0900
@@ -1,6 +1,6 @@
 TARGET = main
 CC = gcc
-SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c light.c title_scene.c game_time.c ps2util.c
+SRCS = main.c game.c car.c col.c quotanion.c controler.c field.c camera.c gSprite.c schedule.c mytype.c gFont.c carNode.c light.c title_scene.c game_time.c ps2util.c sjoy.c
 #linda/lindaapi.c linda.c
 OBJS = ${SRCS:.c=.o}
 VU1DIR = vu1code
@@ -67,7 +67,8 @@
 mytype.o:
 gFont.o: 
 carNode.o:
-linda.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
+#linda.o: #/Users/e095729/magoroku_racing/Linda/lindaapi.h
 light.o:
 title_scene.o:
 game_time.o:
+sjoy.o:
\ No newline at end of file
--- a/TAGS	Thu Jun 02 16:15:00 2011 +0900
+++ b/TAGS	Thu Jun 02 17:26:21 2011 +0900
@@ -1,254 +1,13 @@
-
-camera.c,138
-static CAMERA camera,13,216
-static CAMERA camera, def_camera;13,216
-camera_init(17,257
-void set_camera(55,1126
-camera_update(69,1471
-
-car.c,342
-#define DEFAULT_SET 13,220
-#define BUFSIZE 14,309
-static FVECTOR location 17,364
-static FVECTOR direction 18,405
-car_create(29,621
-car_new_readCSV(77,1969
-car_init(120,2849
-car_swerve(141,3265
-car_accelerate(161,3830
-car_field_check(179,4441
-car_move(221,5528
-car_axis_rotation(237,5916
-car_update(270,6837
-car_destroy(284,7075
-
-carNode.c,99
-static CarPtr car_list;12,195
-carNode_append(15,225
-carNode_draw(29,386
-carNode_destroy(41,509
-
-col.c,90
-col_detect_approx(20,430
-col_orthocenter(46,1183
-col_detect(71,1848
-col_init(105,2611
-
-controler.c,22
-bool padCheck(13,190
-
-field.c,379
-#define BUFSIZE 13,222
-static int field_num_max 18,287
-static int field_num 19,317
-static FieldPtr field_list;21,344
-static FieldPtr field_actual;22,372
-field_create(25,419
-field_new_readCSV(72,1751
-field_init(141,3290
-field_draw(156,3558
-field_update(169,3864
-field_destroy(203,4538
-field_rap_increment(234,5050
-field_set_actual(246,5205
-field_get_actual(252,5270
-
-gFont.c,570
-#define DEFOBJ 15,336
-#define SPRITE_COL 16,355
-#define SCREEN_HALF_W 17,379
-#define SCREEN_HALF_H 18,405
-#define CHAR_W_SIZE 19,431
-#define CHAR_H_SIZE 20,454
-static SpriteTable   sptable[sptable22,478
-static unsigned int  sp_counter;24,593
-static bool          flag_spriteInited 25,626
-gFont_Init_Png(30,753
-gFont_Create(48,1116
-gFont_DefSprite(65,1448
-gFont_Init(74,1626
-gFont_PutSprite(92,1898
-gFont_Clear(110,2334
-gFont_Draw_Reset(121,2472
-get_number_char(129,2571
-gFont_SetString(138,2666
-gFont_SetStringInt(154,2927
-gFont_SetFont_OP(163,3069
-
-gSprite.c,562
-#define DEFOBJ 8,123
-#define SPRITE_COL 9,142
-#define SCREEN_HALF_W 10,166
-#define SCREEN_HALF_H 11,192
-static SpriteTable   sptable[sptable13,219
-static ps2utilSprite sp[sp14,257
-static unsigned int  sp_counter;15,330
-static bool          flag_spriteInited 16,363
-static TEXTURE *sprite_tex;sprite_tex18,449
-gSprite_DefSprite(21,483
-gSprite_PutSprite(30,671
-gSprite_PutSpriteEx(47,1147
-gSprite_Init_Png(65,1651
-gSprite_Create(86,2006
-gSprite_Init(105,2345
-gSprite_Clear(133,3440
-gSprite_Draw_Reset(146,3574
-gSprite_PutSprite_Pause(156,3668
-
-game.c,45
-#define linda_init 18,322
-game_main(22,356
-
-game_time.c,169
-int game_time_get_msec(6,67
-int game_time_conv_ms2cs 29,516
-int game_time_conv_ms2sec 34,603
-int game_time_conv_ms2minute 39,672
-void game_time_set_raptime 56,1044
-
-linda.c,962
-static int my_id;18,343
-static CarPtr linda_carlist[linda_carlist19,361
-static int linda_seq[linda_seq20,404
-set_header(25,485
-get_header(35,658
-make_packet(49,879
-send_packet(71,1369
-get_packet(99,2012
-linda_set_schedule(119,2566
-static bool linda_sche_wait0(128,2771
-linda_sche_wait1(153,3298
-linda_sche_wait_ready0(168,3583
-linda_sche_wait_ready1(197,4113
-linda_sche_opening0(212,4394
-linda_sche_opening1(236,4876
-linda_sche_select_car0(251,5165
-linda_sche_select_car1(275,5659
-linda_sche_select_course0(290,5959
-linda_sche_select_course1(324,6669
-linda_sche_ready0(343,7056
-linda_sche_ready1(367,7531
-linda_sche_main_init(382,7813
-linda_sche_main_ready0(417,8558
-linda_sche_main_ready1(441,9033
-linda_sche_main(456,9305
-linda_update(502,10462
-linda_jiki_compareLocation(514,10639
-linda_jiki_compare(541,11148
-linda_jiki_update(555,11419
-linda_update(580,11983
-get_id(677,14408
-linda_env_init(695,14761
-linda_init(708,14871
-
-main.c,40
-FILE *main_fp;main_fp6,83
-main(9,103
-
-mytype.c,139
-static clock_t start;11,139
-static clock_t race_start;12,161
-wait_init(15,194
-wait(25,319
-time_RaceStart(40,495
-time_RaceTime(46,550
-
-ps2util.c,1176
-OBJECT *ps2util_obj_Create_fromXML(ps2util_obj_Create_fromXML12,282
-void ps2util_obj_Set_effect(27,551
-void ps2_vu0_copy_vector(33,617
-void ps2util_obj_Renew_transMatrix(39,697
-TEXTURE* read_png_file(47,795
-int ps2util_tex_Set(56,935
-int ps2util_sprite_Create(61,987
-void ps2util_obj_Set_texture(67,1071
-void ps2_vu0_unit_matrix(72,1146
-void ps2_vu0_rot_matrix_y(81,1374
-void ps2_vu0_apply_matrix(102,1817
-void ps2_vu0_scale_vector(111,2215
-void ps2_vu0_add_vector(119,2454
-void ps2_vu0_outer_product(125,2551
-float ps2_vu0_inner_product(134,2779
-void ps2_vu0_mul_matrix(140,2893
-void ps2_vu0_copy_matrix(145,2975
-void ps2util_tex_Exclude(151,3045
-void ps2util_obj_Free(156,3096
-void ps2_vu0_sub_vector(163,3151
-void ps2_vu0_normalize(171,3227
-void xml_free(181,3432
-void ps2util_obj_Draw(187,3478
-void gSprite_Init(193,3531
-void  ps2util_sprite_Destroy(199,3566
-void ps2util_sprite_Set_basicAttribute(207,3642
-void ps2util_sprite_Request(217,3948
-void ps2util_sprite_Unuse_alpha(223,4009
-void ps2util_graphic_Init(228,4074
-sprite_disappear(238,4182
-void delete_name_dictionary(260,4582
-void free_texture(293,5259
-int malloc_align16(309,5587
-
-quotanion.c,69
-quotanion(11,226
-quotanion_rotmatrix(25,529
-degree2radian(47,1167
-
-schedule.c,858
-#define linda_update(26,448
-#define MAXCAR 29,502
-#define MAXFIELD 30,543
-#define MAXRAP 31,587
-#define SP_SEL_CAR 32,622
-#define SP_SEL_COURSE 33,647
-static int start_time,56,1356
-static int start_time,time_count;56,1356
-static int RUNNIG=57,1390
-char raptime[raptime58,1411
-static int ranking 60,1430
-static int i=63,1473
-static int change_state 67,1575
-set_schedule_assumption(69,1616
-unset_schedule(76,1726
-set_schedule(82,1782
-graphic_init(89,1884
-play_init(96,2030
-game_env_init(104,2175
-sche_game_init(121,2388
-sche_game_opening(174,3422
-sche_game_select_car(206,3945
-sche_game_select_course(237,4637
-sche_game_ready(269,5345
-sche_game_main_init(296,5980
-sche_game_main_ready(306,6134
-sche_game_main(313,6275
-sche_game_main_goal(412,8522
-sche_game_main_finish(440,9128
-sche_game_main_finish2(450,9295
-schedule(463,9478
-
-title_scene.c,313
-    TITLE_INIT,6,82
-    TITLE_MAIN,7,98
-    TITLE_FINISH8,114
-} TITLE_STATE;9,131
-static ps2utilSprite title_sprite;12,148
-static TEXTURE *title_img;title_img14,184
-#define TITLE_IMG_FILE 16,212
-title_init(20,265
-title_init_call(41,735
-title_finish(47,786
-title_finish_call(55,919
-title_scene(61,968
 
 camera.h,74
 #define CAMERA_H2,17
-typedef struct camera{camera8,75
-} CAMERA;13,159
+typedef struct camera{camera7,74
+} CAMERA;12,158
 
 car.h,74
-#define CAR_H2,14
-typedef struct car 6,50
-} Car, *CarPtr;CarPtr19,471
+#define CAR_H4,27
+typedef struct car 8,63
+} Car, *CarPtr;CarPtr21,460
 
 carNode.h,23
 #define CARNODE_H2,18
@@ -261,17 +20,17 @@
 } ColFaceHd;19,285
 
 controler.h,48
-typedef struct SGO_PAD 7,129
-} SGO_PAD;22,374
+typedef struct SGO_PAD 9,131
+} SGO_PAD;24,376
 
 field.h,225
 #define FIELD_H2,16
-#define EFFECT_TEXTURE_USE 13,300
-#define EFFECT_ALPHABLEND_UNUSE 14,329
-#define EFFECT_SHADING_FLAT 15,363
-#define DEFAULT_SET 17,394
-typedef struct field 18,483
-} Field, *FieldPtr;FieldPtr26,669
+#define EFFECT_TEXTURE_USE 14,336
+#define EFFECT_ALPHABLEND_UNUSE 15,365
+#define EFFECT_SHADING_FLAT 16,399
+#define DEFAULT_SET 18,430
+typedef struct field 19,519
+} Field, *FieldPtr;FieldPtr27,705
 
 gSprite.h,112
 #define GSPRITE_H2,18
@@ -280,23 +39,28 @@
 } SpriteTable;12,188
 
 game.h,81
-#define GAME_H2,15
-typedef struct game 14,180
-} Game, *GamePtr;GamePtr21,364
+#define GAME_H4,29
+typedef struct game 14,148
+} Game, *GamePtr;GamePtr21,332
 
-libps2.h,316
-#define LIBPS2_H2,17
-typedef float FVECTOR[FVECTOR6,49
-typedef float FMATRIX[FMATRIX7,105
-typedef struct texture 11,193
-} TEXTURE;19,599
-typedef struct surface 23,646
-} SURFACE;32,1189
-typedef struct object 36,1242
-} OBJECT;43,1511
-} SPRITE;56,1808
-typedef struct popygon 65,1904
-} PolygonInfo;68,1956
+libps2.h,360
+#define LIBPS2_H3,18
+typedef float FVECTOR[FVECTOR7,50
+typedef float FMATRIX[FMATRIX8,106
+typedef struct texture 12,194
+} TEXTURE;20,600
+typedef struct surface 24,647
+} SURFACE;33,1190
+typedef struct object 37,1243
+} OBJECT;44,1512
+} GsPrim;57,1689
+} GsSpritePacket;66,1809
+} SPRITE;78,2111
+typedef struct popygon 87,2207
+} PolygonInfo;90,2259
+
+light.h,16
+} LIGHT;11,159
 
 linda.h,723
 #define LINDA_H2,16
@@ -325,32 +89,359 @@
 #define PKT_HEADER_SIZE 48,1242
 
 mytype.h,211
-#define RADIAN(3,18
-#define INIT_VECTOR(4,53
-#define NORM(5,122
-enum { X_AXIS=7,200
-enum { X_AXIS=0, Y_AXIS=7,200
-enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=7,200
-enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=2, W_AXIS=7,200
+#define RADIAN(4,33
+#define INIT_VECTOR(5,68
+#define NORM(6,137
+enum { X_AXIS=8,215
+enum { X_AXIS=0, Y_AXIS=8,215
+enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=8,215
+enum { X_AXIS=0, Y_AXIS=1, Z_AXIS=2, W_AXIS=8,215
 
-ps2util.h,117
-#define PS2UTIL_H2,18
-#define ALIGN_16BYTE 8,84
-typedef struct ps2sprite{ps2sprite22,350
-} ps2utilSprite;24,397
+ps2util.h,142
+#define JOYPAD_1 4,48
+#define PS2UTIL_H8,87
+#define ALIGN_16BYTE 14,153
+typedef struct ps2sprite{ps2sprite28,421
+} ps2utilSprite;30,467
 
 quotanion.h,25
 #define QUOTANION_H2,20
 
 schedule.h,24
-#define SCHEDULE_H2,19
+#define SCHEDULE_H3,36
+
+sjoy.h,681
+#define SJOY_PS2_R_LEFT 10,273
+#define SJOY_PS2_R_DOWN 11,309
+#define SJOY_PS2_R_UP 12,350
+#define SJOY_PS2_R_RIGHT 13,391
+#define SJOY_PS2_L1 14,432
+#define SJOY_PS2_R1 15,473
+#define SJOY_PS2_L2 16,514
+#define SJOY_PS2_R2 17,555
+#define SJOY_PS2_SELECT 18,596
+#define SJOY_PS2_START 19,637
+#define SJOY_PS2_L_LEFT 20,678
+#define SJOY_PS2_L_DOWN 21,720
+#define SJOY_PS2_L_UP 22,762
+#define SJOY_PS2_L_RIGHT 23,804
+#define SJOY_PS2_SQUARE 26,862
+#define SJOY_PS2_CROSS 27,898
+#define SJOY_PS2_TRIANGLE 28,939
+#define SJOY_PS2_CIRCLE 29,980
+#define SJOY_PS2_LEFT 30,1021
+#define SJOY_PS2_DOWN 31,1063
+#define SJOY_PS2_UP 32,1105
+#define SJOY_PS2_RIGHT 33,1147
+
+sprite.h,508
+#define FRAME_ANGLE_NORMAL 1,0
+#define FRAME_ANGLE_REVERSE_HORIZON 2,39
+#define FRAME_ANGLE_REVERSE_VERTICAL 3,78
+#define FRAME_ANGLE_ROTATE_180 4,117
+#define UNVISIBLE 7,190
+#define VISIBLE 8,210
+typedef struct sprite_frame 11,237
+} SPRITE_FRAME;21,401
+typedef struct sprite_polygon 23,418
+} SPRITE_POLYGON;36,679
+typedef struct sprite_polygon_head 38,698
+} SPRITE_POLYGON_HEAD;44,897
+#define free_sprite_frame 49,1067
+} GsPrim;69,1649
+} GsSpritePacket;87,2043
+} SpritePacketHeader;102,2557
+
+camera.c,138
+static CAMERA camera,13,214
+static CAMERA camera, def_camera;13,214
+camera_init(17,255
+void set_camera(53,1122
+camera_update(65,1465
+
+car.c,383
+#define DEFAULT_SET 15,233
+#define BUFSIZE 16,322
+static FVECTOR location 19,377
+static FVECTOR direction 20,418
+car_create(25,497
+car_new_readCSV(73,1792
+CarPtr car_init(115,2655
+car_swerve(136,3061
+car_accelerate(156,3612
+car_field_check(174,4217
+car_move(216,5282
+car_axis_rotation(232,5670
+void car_update(264,6568
+car_destroy(279,6801
+void car_id_update(296,7093
+
+carNode.c,99
+static CarPtr car_list;12,188
+carNode_append(15,218
+carNode_draw(29,380
+carNode_destroy(41,496
+
+col.c,90
+col_detect_approx(20,430
+col_orthocenter(46,1161
+col_detect(71,1818
+col_init(105,2584
+
+controler.c,42
+SGO_PAD pad;21,329
+bool padCheck(23,343
+
+field.c,419
+#define BUFSIZE 13,222
+static int field_num_max 18,287
+static int field_num 19,317
+static FieldPtr field_list;21,344
+static FieldPtr field_actual;22,372
+PolygonInfo  xml_read_file(25,427
+field_create(35,553
+field_new_readCSV(82,1834
+field_init(151,3348
+field_draw(166,3616
+void field_update(178,3905
+field_destroy(212,4576
+field_rap_increment(243,5084
+field_set_actual(255,5236
+field_get_actual(261,5299
+
+gFont.c,647
+#define DEFOBJ 15,332
+#define SPRITE_COL 16,351
+#define SCREEN_HALF_W 17,375
+#define SCREEN_HALF_H 18,401
+#define CHAR_W_SIZE 19,427
+#define CHAR_H_SIZE 20,450
+static SpriteTable   sptable[sptable22,474
+static ps2utilSprite sp[sp23,512
+static unsigned int  sp_counter;24,587
+static bool          flag_spriteInited 25,620
+static TEXTURE *font_tex;font_tex27,706
+gFont_Init_Png(30,745
+gFont_Create(48,1118
+gFont_DefSprite(66,1446
+gFont_Init(75,1616
+gFont_PutSprite(93,1884
+gFont_Clear(114,2363
+gFont_Draw_Reset(125,2496
+get_number_char(133,2595
+gFont_SetString(142,2690
+gFont_SetStringInt(158,2957
+gFont_SetFont_OP(167,3093
+
+gSprite.c,562
+#define DEFOBJ 8,123
+#define SPRITE_COL 9,142
+#define SCREEN_HALF_W 10,166
+#define SCREEN_HALF_H 11,192
+static SpriteTable   sptable[sptable13,219
+static ps2utilSprite sp[sp14,257
+static unsigned int  sp_counter;15,330
+static bool          flag_spriteInited 16,363
+static TEXTURE *sprite_tex;sprite_tex18,449
+gSprite_DefSprite(22,484
+gSprite_PutSprite(31,664
+gSprite_PutSpriteEx(48,1140
+gSprite_Init_Png(66,1644
+gSprite_Create(85,2012
+gSprite_Init(104,2349
+gSprite_Clear(132,3406
+gSprite_Draw_Reset(145,3535
+gSprite_PutSprite_Pause(155,3628
+
+game.c,50
+#define linda_init 20,288
+void game_main(23,317
+
+game_time.c,169
+int game_time_get_msec(6,67
+int game_time_conv_ms2cs 29,516
+int game_time_conv_ms2sec 34,603
+int game_time_conv_ms2minute 39,672
+void game_time_set_raptime 56,1044
+
+light.c,187
+FMATRIX normal_light;9,124
+FMATRIX light_color;10,146
+void init_light(13,169
+void ps2_vu0_normal_light_matrix(60,1060
+void ps2_vu0_light_color_matrix(67,1226
+void set_light(73,1371
+
+linda.c,967
+static int my_id;18,343
+static CarPtr linda_carlist[linda_carlist19,361
+static int linda_seq[linda_seq20,404
+set_header(25,485
+get_header(35,658
+make_packet(49,879
+send_packet(71,1369
+get_packet(99,2012
+linda_set_schedule(119,2580
+static bool linda_sche_wait0(128,2777
+linda_sche_wait1(153,3304
+linda_sche_wait_ready0(168,3581
+linda_sche_wait_ready1(197,4119
+linda_sche_opening0(212,4392
+linda_sche_opening1(236,4874
+linda_sche_select_car0(251,5155
+linda_sche_select_car1(275,5649
+linda_sche_select_course0(290,5941
+linda_sche_select_course1(324,6648
+linda_sche_ready0(343,7031
+linda_sche_ready1(367,7506
+linda_sche_main_init(382,7780
+linda_sche_main_ready0(417,8526
+linda_sche_main_ready1(441,9001
+linda_sche_main(456,9265
+linda_update(502,10408
+linda_jiki_compareLocation(514,10583
+linda_jiki_compare(541,11108
+linda_jiki_update(555,11399
+linda_update(580,11965
+get_id(677,14415
+void linda_env_init(694,14743
+linda_init(706,14862
+
+main.c,39
+FILE *main_fp;main_fp6,79
+main(9,99
+
+mytype.c,139
+static clock_t start;10,137
+static clock_t race_start;11,159
+wait_init(14,192
+wait(24,315
+time_RaceStart(39,480
+time_RaceTime(45,533
+
+ps2util.c,1332
+OBJECT *ps2util_obj_Create_fromXML(ps2util_obj_Create_fromXML15,337
+void ps2util_obj_Set_effect(32,610
+void ps2_vu0_copy_vector(38,732
+void ps2util_obj_Renew_transMatrix(44,854
+TEXTURE* read_png_file(52,952
+int ps2util_tex_Set(63,1118
+int ps2util_sprite_Create(68,1170
+void ps2util_obj_Set_texture(74,1255
+void ps2_vu0_unit_matrix(80,1385
+void ps2_vu0_rot_matrix_y(94,1978
+void ps2_vu0_apply_matrix(118,2612
+void ps2_vu0_scale_vector(127,3010
+void ps2_vu0_add_vector(137,3361
+void ps2_vu0_outer_product(146,3556
+float ps2_vu0_inner_product(155,3793
+void ps2_vu0_mul_matrix(161,3907
+void ps2_vu0_copy_matrix(185,5644
+void ps2util_obj_Free(190,5749
+void ps2_vu0_sub_vector(197,5804
+void ps2_vu0_normalize(207,5991
+void xml_free(218,6241
+void ps2util_obj_Draw(224,6287
+void  ps2util_sprite_Destroy(230,6340
+void ps2util_sprite_Set_basicAttribute(238,6416
+void ps2util_sprite_Request(248,6722
+void ps2util_sprite_Unuse_alpha(254,6783
+void ps2util_graphic_Init(259,6848
+#define SPRITE_HAS_4VERTEXIS 268,6944
+#define PS2_GS_XYZ3 270,6976
+sprite_disappear(273,7068
+void delete_name_dictionary(289,7458
+void free_texture(322,8135
+int malloc_align16(338,8463
+void ps2util_tex_Exclude(362,8991
+void ps2util_sprite_Draw(368,9091
+void ps2util_graphic_Finish(373,9160
+void ps2util_sprite_Use_alpha(380,9262
+
+quotanion.c,69
+quotanion(11,226
+quotanion_rotmatrix(25,529
+degree2radian(47,1167
+
+schedule.c,1007
+#define linda_update(31,521
+#define MAXCAR 34,575
+#define MAXFIELD 35,616
+#define MAXRAP 36,660
+#define SP_SEL_CAR 37,695
+#define SP_SEL_COURSE 38,720
+static int start_time,63,1507
+static int start_time,time_count;63,1507
+static int RUNNIG=64,1541
+char raptime[raptime65,1562
+static int ranking 67,1581
+static LIGHT l;68,1605
+static int i=69,1621
+static int change_state 73,1723
+set_schedule_assumption(79,1827
+unset_schedule(86,1933
+set_schedule(92,1987
+graphic_init(99,2085
+play_init(106,2228
+void linda_env_init(114,2382
+static void game_env_init 119,2445
+sche_game_init(136,2678
+sche_game_opening(191,3735
+sche_game_select_car(224,4256
+sche_game_select_course(255,4895
+sche_game_ready(286,5566
+sche_game_main_init(313,6182
+sche_game_main_ready(323,6333
+sche_game_main(330,6470
+sche_game_main_pause(396,7996
+sche_game_main_goal(430,8696
+sche_game_main_finish(460,9374
+sche_game_main_finish2(470,9533
+void wait_sync(482,9723
+void swap_dbuff(488,9793
+schedule(494,9849
+
+sjoy.c,431
+#define N_JOY 14,195
+static char *g_devName[g_devName16,214
+static int g_fd[g_fd21,280
+int sjoy_open(29,521
+int sjoy_close(52,1095
+struct js_event68,1343
+int g_button[g_button75,1404
+int g_axis[g_axis76,1422
+#define JS_EVENT_INIT 78,1443
+#define JS_EVENT_BUTTON 79,1467
+#define JS_EVENT_AXIS 80,1493
+void sjoy_poll(85,1631
+int sjoy_get_button(119,2308
+int sjoy_get_axis(125,2439
+int sjoy_get_ps2_button(131,2582
+
+test_vector.c,157
+int main(16,358
+void init_FVECTOR(134,2888
+void init_FMATRIX(143,3070
+void output_FVECTOR(154,3298
+void output_FMATRIX(164,3461
+void all_init(179,3692
+
+title_scene.c,319
+    TITLE_INIT,10,123
+    TITLE_MAIN,11,139
+    TITLE_FINISH12,155
+} TITLE_STATE;13,172
+static ps2utilSprite title_sprite;15,188
+static TEXTURE *title_img;title_img17,224
+#define TITLE_IMG_FILE 19,252
+title_init(23,305
+title_init_call(44,735
+title_finish(50,786
+title_finish_call(58,919
+title_scene(64,966
 
 title_scene.h,0
 
-light.h,0
-
 game_time.h,0
 
 gFont.h,0
-
-light.c,0
--- a/game.c	Thu Jun 02 16:15:00 2011 +0900
+++ b/game.c	Thu Jun 02 17:26:21 2011 +0900
@@ -22,7 +22,7 @@
 
 void game_main()
 {
-  Game *game;
+  Game game;
   bool flg = true;
 #ifdef LINDA
   game->play_id = linda_init();
@@ -34,7 +34,7 @@
     if (flg == false) {
       break;
     }
-    schedule(game);
+    schedule(&game);
     
 #ifdef LINDA
     psx_sync_n();
--- a/ps2util.c	Thu Jun 02 16:15:00 2011 +0900
+++ b/ps2util.c	Thu Jun 02 17:26:21 2011 +0900
@@ -51,8 +51,10 @@
 */
 TEXTURE* read_png_file(char *texname)
 {
+  printf("trace\n");  
   //とりあえず戻り値を返してエラーをどうにか
   TEXTURE* tex;
+  
   return tex;
 }
 
@@ -137,7 +139,8 @@
   result[0] = v0[0] + v1[0];
   result[1] = v0[1] + v1[1];
   result[2] = v0[2] + v1[2];
-  result[3] = v0[3] + v1[3];
+  //  result[3] = v0[3] + v1[3];
+  result[3] = v0[3];
 }
 
 // 外積
@@ -197,7 +200,7 @@
   result[0] = v0[0] - v1[0];
   result[1] = v0[1] - v1[1];
   result[2] = v0[2] - v1[2];
-  result[3] = v0[3] - v1[3];
+  result[3] = v0[3];// - v1[3];
 }
 
 
@@ -205,7 +208,7 @@
 void ps2_vu0_normalize(FVECTOR result, FVECTOR v)
 {
   // 大きさで割ってるだけって
-  float d;// = fsqrt(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
+  float d = sqrtf(v[0] * v[0] + v[1] * v[1] + v[2] * v[2]);
   result[0] = v[0] / d;
   result[1] = v[1] / d;
   result[2] = v[2] / d;
--- a/schedule.c	Thu Jun 02 16:15:00 2011 +0900
+++ b/schedule.c	Thu Jun 02 17:26:21 2011 +0900
@@ -113,7 +113,7 @@
 // 適当に自作 :miya
 void linda_env_init( void )
 {
-  printf("hogehoge");
+  printf("linda_env_init\n");
 }
 
 static void game_env_init ( Game *game )
--- a/test_vector.c	Thu Jun 02 16:15:00 2011 +0900
+++ b/test_vector.c	Thu Jun 02 17:26:21 2011 +0900
@@ -96,7 +96,7 @@
 
   resultf = ps2_vu0_inner_product(v0, v1);
   printf("ps2_vu0_inner_product(v0, v1)\n");
-  printf("resultf = %10f\n",&resultf);
+  printf("resultf = %10f\n",resultf);
   printf("\n");
   all_init(v0, v1, m0, m1, num);
 
@@ -137,6 +137,7 @@
   for ( i=0; i<lim1; i++ ) {
     v[i] = num + ( (float)i * num * 0.3 ) ;
   }
+  v[3] = 1;
 }
 
 //使用する値の初期化 FMATRIX
@@ -148,6 +149,10 @@
       m[i][j] = ( num * (float)j )  + ( (float)i * num*4.0 ) ;
     }
   }
+  m[0][3] = m[1][3] = m[2][3] = 0;
+
+  m[3][0] = m[3][1] = m[3][2] = 0;
+  m[3][3] = 1;
 }
 
 //--------出力---------