Mercurial > hg > Members > kono > tree_dandy2
comparison sgoex.c @ 35:3b92a4b17049 default tip
fix for macosx Yosemite
author | Nozomi |
---|---|
date | Thu, 19 May 2016 18:18:34 +0900 |
parents | 8b80f670cf1c |
children |
comparison
equal
deleted
inserted
replaced
34:b65f6fc9c84f | 35:3b92a4b17049 |
---|---|
28 | 28 |
29 //static int nActiveBuff; /*ばふぁ */ | 29 //static int nActiveBuff; /*ばふぁ */ |
30 // int i; /* Multi-purpose */ | 30 // int i; /* Multi-purpose */ |
31 //static int pageno; | 31 //static int pageno; |
32 | 32 |
33 //static int padd; | 33 |
34 | |
35 static const int sgo_tpx[12] = | |
36 { 0, 64, 128, 192, 256, 320, 0, 64, 128, 192, 256, 320 }; | |
37 static const int sgo_tpy[12] = { 0, 0, 0, 0, 0, 0, 256, 256, 256, 256, 256, 256 }; | |
38 | 34 |
39 /* sgo.h 独自の変数形 */ | 35 /* sgo.h 独自の変数形 */ |
40 SpriteTable sptable[DEFOBJ]; | 36 SpriteTable sptable[DEFOBJ]; |
41 // static SpriteView spview[MAXOBJ]; | 37 // static SpriteView spview[MAXOBJ]; |
42 | 38 |
43 #define IMAGE_ADJUSTMENT (0) | 39 #define IMAGE_ADJUSTMENT (0) |
44 | 40 |
45 /** | |
46 * 一つの画像をpageno(page number)で区切るtexture_page_offsetで | |
47 * pagenoに対応した領域のx,yを用意しておく。PlayStationではpageno | |
48 * で区切る必要があったのだろうが、PS2では全く意味はなさない。 | |
49 */ | |
50 static const struct texture_page_offset { | |
51 int x; | |
52 int y; | |
53 } texpage_offset[] = { | |
54 {0, 0}, {128 + IMAGE_ADJUSTMENT, 0}, {256 + IMAGE_ADJUSTMENT, 0}, {384 + IMAGE_ADJUSTMENT, 0}}; | |
55 | 41 |
56 /*------------------------------------------------------------- | 42 /*------------------------------------------------------------- |
57 関数プロトタイプ | 43 関数プロトタイプ |
58 ---------------------------------------------------------------*/ | 44 ---------------------------------------------------------------*/ |
59 | 45 |