Mercurial > hg > old > magoroku_racing
diff libps2.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 | 67c843471b77 |
line wrap: on
line diff
--- a/libps2.h Thu May 26 18:13:40 2011 +0900 +++ b/libps2.h Thu Jun 02 14:56:11 2011 +0900 @@ -1,3 +1,4 @@ + #ifndef LIBPS2_H #define LIBPS2_H @@ -42,10 +43,31 @@ SURFACE *surfaces; } OBJECT; +// sprite.hから +typedef struct { + //__u64 rgbaq; + // __u64 rgbaq_addr; + // __u64 st; + // __u64 st_addr; + // __u64 xyz; + // __u64 xyz_addr; + + int xyz_addr; + +} GsPrim; + +typedef struct { + //ps2_giftag giftag; + //__u64 prim; + //__u64 prim_addr; + GsPrim primData[4]; + + int x; +} GsSpritePacket; //ps2 依存関係内の libps2.h からもってきた typedef struct { - //GsSpritePacket* gs_packet; + GsSpritePacket* gs_packet; unsigned char r, g, b, a; unsigned short cx, cy; unsigned short x, y, w, h;