Mercurial > hg > old > magoroku_racing
diff ps2util.h @ 96:0b65ca27f113
compile on Mac OS X 2
author | Atuto SHIROMA <e095729@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 02 Jun 2011 14:56:11 +0900 |
parents | b0249b856488 |
children | afddacdf30dd |
line wrap: on
line diff
--- a/ps2util.h Thu May 26 18:13:40 2011 +0900 +++ b/ps2util.h Thu Jun 02 14:56:11 2011 +0900 @@ -1,3 +1,9 @@ +/* ps2util.h */ + +// 適当に数値当て:miya +#define JOYPAD_1 1 + + #ifndef PS2UTIL_H #define PS2UTIL_H @@ -7,7 +13,7 @@ */ #define ALIGN_16BYTE 64 -#include "field.h" +//#include "field.h" #include "libps2.h" #include "col.h" @@ -32,26 +38,32 @@ */ void ps2util_obj_Set_effect(OBJECT*, int); -void ps2_vu0_copy_vector(FVECTOR , FVECTOR); +void ps2_vu0_copy_vector( FVECTOR a, FVECTOR b); void ps2util_obj_Renew_transMatrix(OBJECT*); TEXTURE* read_png_file(char *texname); int ps2util_tex_Set(TEXTURE*); void ps2util_obj_Set_texture(OBJECT*, TEXTURE*); -void ps2_vu0_unit_matrix(FMATRIX); -void ps2_vu0_rot_matrix_y(FMATRIX , FMATRIX , float); +void ps2_vu0_unit_matrix( FMATRIX ); +void ps2_vu0_rot_matrix_y( FMATRIX , FMATRIX , float); + +// マトリックス m0 にベクトル v1 を右から乗算して v0 に与える +//void ps2_vu0_apply_matrix(ps2_vu0_fvector v0, ps2_vu0_fmatrix m0, ps2_vu0_fvector v1) void ps2_vu0_apply_matrix(FVECTOR , FMATRIX , FVECTOR ); -void ps2_vu0_scale_vector(FVECTOR , FVECTOR , float ); +void ps2_vu0_scale_vector( FVECTOR , FVECTOR , float ); void ps2_vu0_add_vector(FVECTOR , FVECTOR , FVECTOR ); void ps2_vu0_outer_product(FVECTOR rotaxis, FVECTOR car_vertical, FVECTOR yd); float ps2_vu0_inner_product(FVECTOR yd, FVECTOR car_vertical); void ps2_vu0_mul_matrix(FMATRIX pose1, FMATRIX yrot, FMATRIX pose2); -void ps2_vu0_copy_matrix(FMATRIX car_body_transfer, FMATRIX pose); -void ps2util_tex_Exclude(TEXTURE* t); +//void ps2_vu0_copy_matrix(FMATRIX *car_body_transfer, FMATRIX pose); +void ps2_vu0_copy_matrix(FMATRIX transfer, FMATRIX pose); // 一個目の引数がポインタだとコンパイル通らなかった。なんで? + + +void ps2util_tex_Exclude( TEXTURE* t ); void free_texture(TEXTURE *tex); @@ -66,8 +78,6 @@ void ps2util_obj_Draw(OBJECT *object); -void gSprite_Init(); - void delete_name_dictionary(const char *string); void ps2util_sprite_Destroy(ps2utilSprite *title_sprite); @@ -79,17 +89,21 @@ unsigned short sptable_tx, unsigned short sptable_ty, unsigned short sptable_tw2, unsigned short sptable_th2, int sprite_prio_foreground); + void ps2util_sprite_Request(ps2utilSprite *p); - int ps2util_sprite_Create(ps2utilSprite *sp, TEXTURE *sprite_tex); void ps2util_sprite_Unuse_alpha(ps2utilSprite *sp); void ps2util_graphic_Init(); +void ps2util_sprite_Draw(); + //ps2 依存関係の sprite.c より inline void sprite_disappear( SPRITE *sprite ); - +void ps2util_graphic_Finish( void ); - +// title.cに書いてた +void ps2util_sprite_Use_alpha( ps2utilSprite *title ); #endif +