git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3197 c06c8d41-db1a-0410-9941-cceddc491573
ZWVXM43CBKDWRFNZ432Z6G6J7DBA2GKRRGCSZQCRQS2M4YX53ETQC #if 1 //ISO/*screen grid arrangement. (x,y,kind)(0,0,B) (1,0,A) (2,0,B)(0,0,A) (1,0,B) (2,0,A) ...(0,1,B) (1,1,A) (2,1,B)(0,1,A) (1,1,B) (2,1,A)....*/const int tcache_wx_iso[TCACHE_KIND_ISO] = {TILE_X_EX_ISO/2, TILE_X_EX_ISO/2};const int tcache_wy_iso[TCACHE_KIND_ISO] = {TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4};const int tcache_ox_iso[TCACHE_KIND_ISO] = {0,0};const int tcache_oy_iso[TCACHE_KIND_ISO] = {0,TILE_Y_EX_ISO/4};const int tcache_nlayer_iso[TCACHE_KIND_ISO] = {4,4};#endif
#if 1 //ISO#define TREGION_A_ISO 0#define TREGION_B_ISO 1#define TREGION_C_ISO 2#define TREGION_D_ISO 3#define TREGION_E_ISO 4#define TREGION_F_ISO 5#define TREGION_G_ISO 6#define TREGION_H_ISO 7/*<-64->AAEE |BBFF 64CCGG |DDHH |*/const int region_sx_iso[8]={0, 0, 0, 0,TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2};const int region_sy_iso[8]={0, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/2, (TILE_Y_EX_ISO*3)/4,0, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/2, (TILE_Y_EX_ISO*3)/4};const int region_wx_iso[8]={TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2,TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2, TILE_X_EX_ISO/2};const int region_wy_iso[8]={TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4,TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4, TILE_Y_EX_ISO/4};/* 32x32 �̏ꍇ �^�C����(sx,sy)����wx*wy �̗̈��� ox,oy ���炵�ăR�s�[ */#ifdef ISO48//�傫��BMP��48x48 �̏ꍇconst int region_sx_small_iso[8]={0, 0, 0, 0,TILE_X/2, TILE_X/2, TILE_X/2, TILE_X/2};const int region_sy_small_iso[8]={0, 2, 14, 26, 0, 2, 14, 26};const int region_wx_small_iso[8]={16,16,16,16, 16,16,16,16};const int region_wy_small_iso[8]={2, 12, 12, 6, 2, 12, 12, 6};const int region_ox_small_iso[8]={8,8,8, 8, 0, 0, 0, 0};const int region_oy_small_iso[8]={14,0,0,0, 14,0,0,0};#else//�傫��BMP��64x64 �̏ꍇconst int region_sx_small_iso[8]={0, 0, 0, 0,TILE_X/2, TILE_X/2, TILE_X/2, TILE_X/2};const int region_sy_small_iso[8]={0, 0, 8,24, 0, 0, 8,24};const int region_wx_small_iso[8]={0,16,16,16, 0,16,16,16};const int region_wy_small_iso[8]={0, 8,16, 8, 0, 8,16, 8};const int region_ox_small_iso[8]={16,16,16, 16, 0, 0, 0, 0};const int region_oy_small_iso[8]={0,8,0,0,0,8,0,0};#endif
tcache[k] = (tile_cache *)malloc(sizeof(tile_cache)*max_tcache);for(x=0;x<tile_xmax * tile_ymax;x++)screen_tcach_idx[k][x] = -1;
tcache[k] = (tile_cache *)malloc(sizeof(tile_cache)*max_tcache);for(x=0;x<tile_xmax * tile_ymax;x++)screen_tcach_idx[k][x] = -1;