texture.h
14.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
#ifndef __texture_h__
#define __texture_h__
#define TEX_BG_H 348
#define TEX_BG_H2 324
#define TEX_WELCOME_W 344
#define TEX_WELCOME_H 144
#define TOP_BUTTON_W 120
#define TOP_BUTTON_H 40
#define TOP_BUTTON_W2 128
#define TOP_BUTTON_H2 32
#define TOP_BAR_H 56
#define SPACE_BAR_W 368
#define SPACE_BAR1_W 272
#define SPACE_BAR2_W 640
#define SPACE_BAR_H 24
#define BOTTOM_BAR_H 72
#define BUTTON_A_W 32
#define BUTTON_A_H 32
#define BUTTON_Z_W 72
#define TEX_GAME_ROW_H 64
#define TEX_GAME_SIZE_H 16
#define TEX_GAME_SIZE_W 16
#define TEX_GAME_LOC_H 48
#define TEX_GAME_LOC_W 40
#define TEX_LAUNCH_W 160
#define TEX_LAUNCH_H 16
#define TEX_A_TEXT_W 32
#define TEX_A_TEXT_H 16
#define TEX_B_TEXT_W 32
#define TEX_B_TEXT_H 16
#define TEX_Z_TEXT_W 80
#define TEX_Z_TEXT_H 16
#define TEX_BNUM_W 16
#define TEX_BNUM_H 40
#define TEX_CPAK_W 24
#define TEX_CPAK_H 24
#define TEX_PLAYER_W 24
#define TEX_PLAYER_H 24
#define TEX_SAVE_W 72
#define TEX_SAVE_H 24
#define TEX_BIND_W 32
#define TEX_BIND_H 16
#define TEX_UNBIND_W 64
#define TEX_UNBIND_H 16
#define TEX_PAKROW_W 320
#define TEX_PAKROW_H 32
#define TEX_CONTROW_W 88
#define TEX_CONTROW_H 40
#define TEX_LIMIT_W 48
#define TEX_LIMIT_H 24
#define TEX_EXPIRE_W 56
#define TEX_EXPIRE_H 24
#define TEX_GAMEBG_W 272
#define TEX_GAMEBG_H 64
#define TEX_ZH_GLYPH_W 24
#define TEX_ZH_GLYPH_H 24
#define ZH_GLYPH_COUNT 141
#define TEX_LOAD_ICON_W 64
#define TEX_LOAD_ICON_H 64
#define TEX_LOAD_METER_W 216
#define TEX_LOAD_METER_H 8
#define TEX_LOAD_METER_B_W 224
#define TEX_LOAD_METER_B_H 16
#define TEX_ADVICE_W 224
#define TEX_ADVICE_H 16
#define TEX_CPAKBG_H 64
#define TEX_BOARD_W 312
#define TEX_BOARD_H 128
#define TEX_CONFIRM_W 200
#define TEX_CONFIRM_H 56
#define TEX_CYES_H 24
#define TEX_CYES_W 32
#define TEX_CNO_H 24
#define TEX_CNO_W 32
#define TEX_CHAR1_W 360
#define TEX_CHAR1_H 324
#define TEX_CHAR2_W 360
#define TEX_CHAR2_H 324
#define TEX_CHAR3_W 328
#define TEX_CHAR3_H 324
#define TEX_CHAR4_W 256
#define TEX_CHAR4_H 324
#define TEX_LOGO_W 360
#define TEX_LOGO_H 270
#define TEX_IQUEHOMELOGO_W 140
#define TEX_IQUEHOMELOGO_H 32
#define TEX_PC_SET_H 32
#define TEX_PC_SET_W 160
#define TEX_PC_ADMIN_H 48
#define TEX_PC_ADMIN_W 176
#define TEX_PC_BAR_H 48
#define TEX_PC_BAR_W 488
#define TEX_PC_PWDIN_W 120
#define TEX_PC_PWDIN_H 24
#define TEX_PC_CONFIRM_W 168
#define TEX_PC_CONFIRM_H 24
#define TEX_PC_REMAIN_W 96
#define TEX_PC_REMAIN_H 16
#define TEX_CANCEL_H 24
#define TEX_CANCEL_W 48
#define TEX_ARROW_W 16
#define TEX_ARROW_H 8
#define TEX_ISBN_GLYPH_W 16
#define TEX_ISBN_GLYPH_H 624
#define TEX_PUBLISHER_W 160
#define TEX_PUBLISHER_H 16
#define TEX_PRODUCER_W 224
#define TEX_PRODUCER_H 16
#define TEX_PUBINFO1_W 80
#define TEX_PUBINFO2_W 64
#define TEX_PUBINFO3_W 16
#define TEX_PUBINFO_H 16
#ifdef PAK_COPY
#define TEX_GPAK_TITLE_W 184
#define TEX_GPAK_TITLE_H 48
#define TEX_CPAK_TITLE_W 168
#define TEX_CPAK_TITLE_H 48
#define TEX_SCARD_W 72
#define TEX_SCARD_H 32
#define TEX_DCARD_W 96
#define TEX_DCARD_H 32
#endif
#define B1_X 91
#define B1_Y 235
//#define B2_X 91
//#define B2_Y 260
#define B3_X 91
#define B3_Y 285
#define B4_X 96
#define B4_Y 13
#define B5_X 96
#define B5_Y 48
#define B6_X 96
#define B6_Y 82
#define LAUNCH_GAME_X 40
#define LAUNCH_GAME_Y 18
#define ISBN_W 190
#define ISBN_Y1 170
#define ISBN_Y2 130
#define OADID_Y 150
#define OADID_X1 85
#define OADID_X2 140
#define OADID_X3 230
#define CRID_Y 170
#define CRID_X1 65
#define CRID_X2 140
#define HELP_BUTTON_Y FRAME_Y+TOP_BAR_H+TEX_BG_H+2
#define HELP_TEXT_Y FRAME_Y+TOP_BAR_H+TEX_BG_H+10
#define A_X 56
#define B_X 163
#define Z_X 271
#define ATEXT_X 100
#define BTEXT_X 206
#define ZTEXT_X 354
#define SPACE_TEXT_Y FRAME_Y+TOP_BAR_H+TEX_BG_H-SPACE_BAR_H+4
#define SPACE_TEXT1_X 241
#define SPACE_TEXT2_X 516
#define PC_ADMIN_X (SCREEN_WD - TEX_PC_ADMIN_W)/2
#define PC_ADMIN_Y FRAME_Y+TOP_BAR_H+(72-TEX_PC_ADMIN_H)/2
#define PC_TEXT_X 104
#define PC_PWD_Y 135
#define PC_CLOCK_Y 193
#define PC_LIMIT_Y 248
#define PC_EXP_Y 306
#define PC_BAR_X 83
#define PC_BAR_Y 129
#ifdef PAK_COPY
#define GPAK_TEXT_X 45
#define GPAK_TEXT_Y FRAME_Y+TOP_BAR_H+72+6*TEX_PAKROW_H+4
#define CPAK_TEXT_X 45
#define CPAK_TEXT_Y FRAME_Y+TOP_BAR_H+72+6*TEX_PAKROW_H+4
#endif
extern unsigned char texBg[SCREEN_WD*TEX_BG_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texNewyear[SCREEN_WD*TEX_BG_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texWelcome[TEX_WELCOME_W*TEX_WELCOME_H+512] __attribute__ ((aligned(16)));
extern unsigned char texB1[TOP_BUTTON_W*TOP_BUTTON_H*2] __attribute__ ((aligned(16)));
extern unsigned char texB3[TOP_BUTTON_W*TOP_BUTTON_H*2] __attribute__ ((aligned(16)));
extern unsigned char texB4[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texB5[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texB6[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texHB1[TOP_BUTTON_W*TOP_BUTTON_H*2] __attribute__ ((aligned(16)));
extern unsigned char texHB3[TOP_BUTTON_W*TOP_BUTTON_H*2] __attribute__ ((aligned(16)));
extern unsigned char texHB4[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texHB5[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texHB6[TOP_BUTTON_W2*TOP_BUTTON_H2*2] __attribute__ ((aligned(16)));
extern unsigned char texTopBar[SCREEN_WD*TOP_BAR_H+512] __attribute__ ((aligned(16)));
extern unsigned char texSpaceBar[SPACE_BAR_W*SPACE_BAR_H*2] __attribute__ ((aligned(16)));
extern unsigned char texSpaceBar1[SPACE_BAR1_W*SPACE_BAR_H*2] __attribute__ ((aligned(16)));
extern unsigned char texSpaceBar2[SPACE_BAR2_W*SPACE_BAR_H*2] __attribute__ ((aligned(16)));
extern unsigned char texBottomBar[SCREEN_WD*BOTTOM_BAR_H+512] __attribute__ ((aligned(16)));
extern unsigned char texA[BUTTON_A_W*BUTTON_A_H*2] __attribute__ ((aligned(16)));
extern unsigned char texB[BUTTON_A_W*BUTTON_A_H*2] __attribute__ ((aligned(16)));
extern unsigned char texZ[BUTTON_Z_W*BUTTON_A_H*2] __attribute__ ((aligned(16)));
extern unsigned char texSnum[16*16*11*2] __attribute__ ((aligned(16)));
extern unsigned char texGameRow[SCREEN_WD*TEX_GAME_ROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texGameRowH[SCREEN_WD*TEX_GAME_ROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCard[TEX_GAME_LOC_W*TEX_GAME_LOC_H*2] __attribute__ ((aligned(16)));
extern unsigned char texDepot[TEX_GAME_LOC_W*TEX_GAME_LOC_H*2] __attribute__ ((aligned(16)));
extern unsigned char texRed[TEX_GAME_SIZE_W*TEX_GAME_SIZE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texYellow[TEX_GAME_SIZE_W*TEX_GAME_SIZE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texLoad[TEX_LAUNCH_W*TEX_LAUNCH_H*2] __attribute__ ((aligned(16)));
extern unsigned char texRecrypt[TEX_LAUNCH_W*TEX_LAUNCH_H*2] __attribute__ ((aligned(16)));
extern unsigned char texLaunch[TEX_LAUNCH_W*TEX_LAUNCH_H*2] __attribute__ ((aligned(16)));
extern unsigned char texAtext[TEX_A_TEXT_W*TEX_A_TEXT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texBtext[TEX_B_TEXT_W*TEX_B_TEXT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texZtext[TEX_Z_TEXT_W*TEX_Z_TEXT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texDelete[TEX_B_TEXT_W*TEX_B_TEXT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCopy[TEX_A_TEXT_W*TEX_A_TEXT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texBnum[TEX_BNUM_W*TEX_BNUM_H*20] __attribute__ ((aligned(16)));
extern unsigned char texCpak[TEX_CPAK_W*TEX_CPAK_H*13*2] __attribute__ ((aligned(16)));
extern unsigned char texPlayer[TEX_PLAYER_W*TEX_PLAYER_H*2] __attribute__ ((aligned(16)));
extern unsigned char texSave[TEX_SAVE_W*TEX_SAVE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texBind[TEX_BIND_W*TEX_BIND_H*2] __attribute__ ((aligned(16)));
extern unsigned char texUnbind[TEX_UNBIND_W*TEX_UNBIND_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCpakrow[TEX_PAKROW_W*TEX_PAKROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCpakrowh[TEX_PAKROW_W*TEX_PAKROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texControw[TEX_CONTROW_W*TEX_CONTROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texControwh[TEX_CONTROW_W*TEX_CONTROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texTlimit[TEX_LIMIT_W*TEX_LIMIT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPlimit[TEX_LIMIT_W*TEX_LIMIT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texRemain[TEX_LIMIT_W*TEX_LIMIT_H*2] __attribute__ ((aligned(16)));
extern unsigned char texExpire[TEX_EXPIRE_W*TEX_EXPIRE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texGamebg[TEX_GAMEBG_W*TEX_GAMEBG_H*2] __attribute__ ((aligned(16)));
extern unsigned char texZhglyph[TEX_ZH_GLYPH_W*TEX_ZH_GLYPH_H*ZH_GLYPH_COUNT*2] __attribute__ ((aligned(16)));
extern unsigned char texGamebg2[SCREEN_WD*TEX_GAMEBG_H*2] __attribute__ ((aligned(16)));
extern unsigned char texLoadIcon[TEX_LOAD_ICON_W*TEX_LOAD_ICON_H*2] __attribute__ ((aligned(16)));
extern unsigned char texLoadMeter[TEX_LOAD_METER_W*TEX_LOAD_METER_H*2] __attribute__ ((aligned(16)));
extern unsigned char texLoadMeterb[TEX_LOAD_METER_B_W*TEX_LOAD_METER_B_H*2] __attribute__ ((aligned(16)));
extern unsigned char texAdvice[TEX_ADVICE_W*TEX_ADVICE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCpakbg[SCREEN_WD*TEX_CPAKBG_H*2] __attribute__ ((aligned(16)));
extern unsigned char texBoard[TEX_BOARD_W*TEX_BOARD_H+512] __attribute__ ((aligned(16)));
extern unsigned char texConfirm[TEX_CONFIRM_W*TEX_CONFIRM_H*2] __attribute__ ((aligned(16)));
extern unsigned char texConfirmYes[TEX_CYES_W*TEX_CYES_H*2] __attribute__ ((aligned(16)));
extern unsigned char texConfirmYesH[TEX_CYES_W*TEX_CYES_H*2] __attribute__ ((aligned(16)));
extern unsigned char texConfirmNo[TEX_CNO_W*TEX_CNO_H*2] __attribute__ ((aligned(16)));
extern unsigned char texConfirmNoH[TEX_CNO_W*TEX_CNO_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCancel[TEX_CANCEL_W*TEX_CANCEL_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCancelH[TEX_CANCEL_W*TEX_CANCEL_H*2] __attribute__ ((aligned(16)));
extern unsigned char texChar1[TEX_CHAR1_W*TEX_CHAR1_H+512] __attribute__ ((aligned(16)));
extern unsigned char texChar2[TEX_CHAR2_W*TEX_CHAR2_H+512] __attribute__ ((aligned(16)));
extern unsigned char texChar3[TEX_CHAR3_W*TEX_CHAR3_H+512] __attribute__ ((aligned(16)));
extern unsigned char texChar4[TEX_CHAR4_W*TEX_CHAR4_H+512] __attribute__ ((aligned(16)));
extern unsigned char texLogo[TEX_LOGO_W*TEX_LOGO_H + 1024] __attribute__ ((aligned(16)));
extern unsigned char texIQueHomeLogo[TEX_IQUEHOMELOGO_W*TEX_IQUEHOMELOGO_H * 2] __attribute__ ((aligned(16)));
#define HEALTHAD_SIZE (45*24*24/2 + 16*4) /* 45 unique 24x24 char + pal */
extern unsigned char texHealthad4[HEALTHAD_SIZE] __attribute__ ((aligned(16)));
extern unsigned char texPcPwd[TEX_PC_SET_W*TEX_PC_SET_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcClock[TEX_PC_SET_W*TEX_PC_SET_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcLimit[TEX_PC_SET_W*TEX_PC_SET_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcExp[TEX_PC_SET_W*TEX_PC_SET_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcBar[TEX_PC_BAR_W*TEX_PC_BAR_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcBarH[TEX_PC_BAR_W*TEX_PC_BAR_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcAdmin[TEX_PC_ADMIN_W*TEX_PC_ADMIN_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcPwdIn[TEX_PC_PWDIN_W*TEX_PC_PWDIN_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcConfirm[TEX_PC_CONFIRM_W*TEX_PC_CONFIRM_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPcRemain[TEX_PC_REMAIN_W*TEX_PC_REMAIN_H*2] __attribute__ ((aligned(16)));
extern unsigned char texUpArrow[TEX_ARROW_W*TEX_ARROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texDownArrow[TEX_ARROW_W*TEX_ARROW_H*2] __attribute__ ((aligned(16)));
extern unsigned char texIsbnGlyph[TEX_ISBN_GLYPH_W*TEX_ISBN_GLYPH_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPublisher[TEX_PUBLISHER_W*TEX_PUBLISHER_H*2] __attribute__ ((aligned(16)));
extern unsigned char texProducer[TEX_PRODUCER_W*TEX_PRODUCER_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPubInfo1[TEX_PUBINFO1_W*TEX_PUBINFO_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPubInfo2[TEX_PUBINFO2_W*TEX_PUBINFO_H*2] __attribute__ ((aligned(16)));
extern unsigned char texPubInfo3[TEX_PUBINFO3_W*TEX_PUBINFO_H*2] __attribute__ ((aligned(16)));
#ifdef PAK_COPY
extern unsigned char texGpakTitle[TEX_GPAK_TITLE_W*TEX_GPAK_TITLE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texCpakTitle[TEX_CPAK_TITLE_W*TEX_CPAK_TITLE_H*2] __attribute__ ((aligned(16)));
extern unsigned char texScard[TEX_SCARD_W*TEX_SCARD_H*2] __attribute__ ((aligned(16)));
extern unsigned char texDcard[TEX_DCARD_W*TEX_DCARD_H*2] __attribute__ ((aligned(16)));
#endif
extern unsigned char texDstar[16*16*2] __attribute__ ((aligned(16)));
#endif