texture.h 14.1 KB
#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