Mercurial > hg > old > magoroku_racing
annotate ps2util.h @ 101:67c843471b77
add name_dictionary.cc
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jun 2011 19:50:06 +0900 |
parents | e5f2eb98b575 |
children | 31dd5c07f7c1 |
rev | line source |
---|---|
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
1 /* ps2util.h */ |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
2 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
3 // 適当に数値当て:miya |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
4 #define JOYPAD_1 1 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
5 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
6 |
91 | 7 #ifndef PS2UTIL_H |
8 #define PS2UTIL_H | |
9 | |
10 | |
11 /* | |
12 どう宣言したものか迷う orz | |
13 */ | |
14 #define ALIGN_16BYTE 64 | |
15 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
16 //#include "field.h" |
91 | 17 #include "libps2.h" |
18 #include "col.h" | |
19 | |
100 | 20 OBJECT *ps2util_obj_Create_fromXML(const char *filename); |
91 | 21 |
22 | |
23 /* | |
24 ps2utilSprite... | |
25 必要らしいので制作、あっているかは分からないし | |
26 絶対にあっていない。 | |
27 */ | |
28 typedef struct ps2sprite{ | |
97
afddacdf30dd
compile on Mac OS X -no Warning
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
29 SPRITE attribute; |
91 | 30 } ps2utilSprite; |
31 | |
32 | |
33 /* | |
34 引数の int はあっているかどうか知らないけど、 | |
35 引数として持ってこられるものの宣言があれだったので | |
36 一応。 | |
37 bool もあるかもわからん | |
38 */ | |
39 void ps2util_obj_Set_effect(OBJECT*, int); | |
40 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
41 void ps2_vu0_copy_vector( FVECTOR a, FVECTOR b); |
91 | 42 void ps2util_obj_Renew_transMatrix(OBJECT*); |
43 | |
100 | 44 TEXTURE* read_png_file(const char *texname); |
95 | 45 int ps2util_tex_Set(TEXTURE*); |
91 | 46 void ps2util_obj_Set_texture(OBJECT*, TEXTURE*); |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
47 void ps2_vu0_unit_matrix( FMATRIX ); |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
48 void ps2_vu0_rot_matrix_y( FMATRIX , FMATRIX , float); |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
49 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
50 // マトリックス m0 にベクトル v1 を右から乗算して v0 に与える |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
51 //void ps2_vu0_apply_matrix(ps2_vu0_fvector v0, ps2_vu0_fmatrix m0, ps2_vu0_fvector v1) |
91 | 52 void ps2_vu0_apply_matrix(FVECTOR , FMATRIX , FVECTOR ); |
53 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
54 void ps2_vu0_scale_vector( FVECTOR , FVECTOR , float ); |
91 | 55 void ps2_vu0_add_vector(FVECTOR , FVECTOR , FVECTOR ); |
56 | |
57 void ps2_vu0_outer_product(FVECTOR rotaxis, FVECTOR car_vertical, FVECTOR yd); | |
58 float ps2_vu0_inner_product(FVECTOR yd, FVECTOR car_vertical); | |
59 | |
60 void ps2_vu0_mul_matrix(FMATRIX pose1, FMATRIX yrot, FMATRIX pose2); | |
61 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
62 //void ps2_vu0_copy_matrix(FMATRIX *car_body_transfer, FMATRIX pose); |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
63 void ps2_vu0_copy_matrix(FMATRIX transfer, FMATRIX pose); // 一個目の引数がポインタだとコンパイル通らなかった。なんで? |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
64 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
65 |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
66 void ps2util_tex_Exclude( TEXTURE* t ); |
91 | 67 |
68 | |
69 void free_texture(TEXTURE *tex); | |
70 | |
71 void ps2util_obj_Free(OBJECT* p_body); | |
72 | |
73 | |
74 | |
75 void ps2_vu0_sub_vector(FVECTOR o0, FVECTOR p, FVECTOR p0); | |
76 void ps2_vu0_normalize(FVECTOR colface_normal1, FVECTOR colface_normal2); | |
77 void xml_free(PolygonInfo xml); | |
78 | |
79 void ps2util_obj_Draw(OBJECT *object); | |
80 | |
81 void delete_name_dictionary(const char *string); | |
82 | |
83 void ps2util_sprite_Destroy(ps2utilSprite *title_sprite); | |
84 | |
95 | 85 |
101
67c843471b77
add name_dictionary.cc
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
100
diff
changeset
|
86 |
95 | 87 void ps2util_sprite_Set_basicAttribute(ps2utilSprite *p, |
88 unsigned short x, unsigned short y, | |
89 unsigned short sptable_tw1, unsigned short sptable_th1, | |
90 unsigned short sptable_tx, unsigned short sptable_ty, | |
91 unsigned short sptable_tw2, unsigned short sptable_th2, | |
92 int sprite_prio_foreground); | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
93 |
95 | 94 void ps2util_sprite_Request(ps2utilSprite *p); |
95 int ps2util_sprite_Create(ps2utilSprite *sp, TEXTURE *sprite_tex); | |
96 void ps2util_sprite_Unuse_alpha(ps2utilSprite *sp); | |
97 void ps2util_graphic_Init(); | |
98 | |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
99 void ps2util_sprite_Draw(); |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
100 |
95 | 101 //ps2 依存関係の sprite.c より |
97
afddacdf30dd
compile on Mac OS X -no Warning
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
102 //inline |
afddacdf30dd
compile on Mac OS X -no Warning
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
103 void sprite_disappear( SPRITE *sprite ); |
95 | 104 |
97
afddacdf30dd
compile on Mac OS X -no Warning
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
96
diff
changeset
|
105 void ps2util_graphic_Finish(); |
95 | 106 |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
107 // title.cに書いてた |
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
108 void ps2util_sprite_Use_alpha( ps2utilSprite *title ); |
95 | 109 |
91 | 110 #endif |
96
0b65ca27f113
compile on Mac OS X 2
Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp>
parents:
95
diff
changeset
|
111 |