/* 
 * 変換日付 Wed Dec  6 17:10:15 2000
 * 2000/9/8 var2.05
 * パレット有効
 * XXコードの頂点破棄
 * 使用テキスチャ─チェック
 * 頂点カラーを評価しない
 * ビュア─の設定対応
 */
#include <mbi.h>
#include <u64macro.h>

extern unsigned char hi_light_txt[];
extern Mtx	softsprite_mtx;
/* texture = 4 */
static unsigned char fki_win_w2_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x22,0x45,0x66,0x78,0x99,0x9b,0xbb,0xcd,0xdd,0xde,0xff,0xff,0xff,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x46,0x89,0xac,0xde,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x58,0xac,0xef,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xee,0xee,0xee,0xee,0xee,0xee,
0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x8b,0xef,0xff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,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x03,0x58,0xac,0xef,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xee,0xee,0xee,0xee,0xee,0xee,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x46,0x89,0xac,0xde,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x22,0x45,0x66,0x78,0x99,0x9b,0xbb,0xcd,0xdd,0xde,0xff,0xff,0xff,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* fki_win_w2_tex */
static unsigned char fki_win_de3_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x8b,0xde,0xff,
0x00,0x00,0x01,0x6b,0xff,0xff,0xff,0xff,0x00,0x00,0x6d,0xff,0xfe,0xdd,0xdd,0xdd,
0x00,0x1a,0xff,0xfd,0xdd,0xcc,0xcc,0xcc,0x00,0xaf,0xfe,0xdd,0xcc,0xcc,0xcc,0xcc,
0x05,0xff,0xed,0xdc,0xcc,0xcc,0xcc,0xcc,0x08,0xff,0xec,0xcc,0xcc,0xcc,0xcc,0xcc,
0x07,0xff,0xec,0xcc,0xcc,0xcc,0xcc,0xcc,0x02,0xef,0xfd,0xdc,0xcc,0xcc,0xcc,0xcc,
0x00,0x5f,0xff,0xed,0xcc,0xcc,0xcc,0xcc,0x00,0x03,0xdf,0xff,0xed,0xcc,0xcc,0xcc,
0x00,0x00,0x06,0xdf,0xff,0xfe,0xed,0xdd,0x00,0x00,0x00,0x04,0x8c,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x14,0x67,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* fki_win_de3_tex */
static unsigned char fki_win_de4_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x25,0x8b,0xde,0xff,
0x00,0x00,0x01,0x6b,0xff,0xff,0xfe,0xee,0x00,0x00,0x6d,0xff,0xfd,0xdc,0xcc,0xcc,
0x00,0x1a,0xff,0xed,0xcc,0xbb,0xbb,0xbb,0x00,0xaf,0xfd,0xcc,0xbb,0xbb,0xbb,0xbb,
0x05,0xff,0xeb,0xbb,0xbb,0xbb,0xbb,0xbb,0x08,0xff,0xdb,0xbb,0xbb,0xbb,0xbb,0xbb,
0x07,0xff,0xdb,0xbb,0xbb,0xbb,0xbb,0xbb,0x02,0xef,0xfc,0xbb,0xbb,0xbb,0xbb,0xbb,
0x00,0x5f,0xff,0xdc,0xbb,0xbb,0xbb,0xbb,0x00,0x03,0xdf,0xfe,0xdc,0xcb,0xbb,0xbb,
0x00,0x00,0x06,0xdf,0xff,0xee,0xdd,0xcc,0x00,0x00,0x00,0x04,0x8c,0xff,0xff,0xff,
0x00,0x00,0x00,0x00,0x00,0x14,0x67,0x88,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* fki_win_de4_tex */
static unsigned char fki_win_wa_tex[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x14,0x44,0x10,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x05,0xcd,0xdd,0xc6,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0xdd,0xdd,0xde,0x40,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x6e,0xdd,0xdd,0xde,0x60,0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x03,0x57,0x76,0x41,0x00,0x03,0x79,0xaa,0x86,0x20,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x3d,0xdd,0xdd,0xde,0x40,0x00,0x02,0x45,0x78,0x89,
0x99,0x87,0x65,0x31,0x04,0xbd,0xee,0xee,0xdc,0x74,0xad,0xee,0xdd,0xee,0xd8,0x10,
0x00,0x03,0x79,0x99,0x86,0x20,0x05,0xcd,0xdd,0xc5,0x02,0x69,0xbd,0xde,0xee,0xee,
0xee,0xee,0xee,0xdc,0xbd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xde,0x90,
0x02,0xad,0xee,0xdd,0xee,0xd8,0x10,0x13,0x43,0x13,0x9d,0xee,0xdd,0xdd,0xdd,0xdd,
0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xd1,
0x1b,0xed,0xdd,0xdd,0xdd,0xde,0x90,0x00,0x00,0x7d,0xed,0xdd,0x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x00,0x00,0x00,0x00,0x00,0x02,0x57,0x9a,0xbc,0xcc,
0xcc,0xcc,0xba,0x86,0x41,0x00,0x00,0x00,0x00,0x36,0x76,0x30,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x11,
0x11,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* fki_win_wa_tex */

/* ビュア─設定のパレット */
/* ビュア─設定のテキスチャ─ */
/* vretex = 16 */
static Vtx fki_win_v[] = {
/* 0番目 */ { -60,   15,    0,    0,    0,    0,  174,  174,  174,  174},
/* 1番目 */ { -60,  -15,    0,    0,    0,  512,  174,  174,  174,  174},
/* 2番目 */ {  60,   15,    0,    0, 2048,    0,  174,  174,  174,  174},
/* 3番目 */ {  60,  -15,    0,    0, 2048,  512,  174,  174,  174,  174},
/* 4番目 */ { -60,   15,    0,    0,    0,    0,  174,  174,  174,  174},
/* 5番目 */ { -60,  -15,    0,    0,    0, 1024,  174,  174,  174,  174},
/* 6番目 */ {  60,   15,    0,    0, 4096,    0,  174,  174,  174,  174},
/* 7番目 */ {  60,  -15,    0,    0, 4096, 1024,  174,  174,  174,  174},
/* 8番目 */ {  -8,    4,    0,    0,    0,    0,  174,  174,  174,  174},
/* 9番目 */ {  -8,   -4,    0,    0,    0,  512,  174,  174,  174,  174},
/* 10番目 */ {   8,    4,    0,    0, 1024,    0,  174,  174,  174,  174},
/* 11番目 */ {   8,   -4,    0,    0, 1024,  512,  174,  174,  174,  174},
/* 12番目 */ { -12,    6,    0,    0,    0,    0,  174,  174,  174,  174},
/* 13番目 */ { -12,   -6,    0,    0,    0,  512,  174,  174,  174,  174},
/* 14番目 */ {  12,    6,    0,    0, 1024,    0,  174,  174,  174,  174},
/* 15番目 */ {  12,   -6,    0,    0, 1024,  512,  174,  174,  174,  174},

};

Gfx fki_win_w4_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		0, 0, 0, PRIMITIVE,
		TEXEL0, 0, PRIM_LOD_FRAC, 0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
/*	gsDPSetPrimColor(0, 255, 255, 255, 215, 255),*/
/*	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),*/
/* repeat = (1,1)  mirror = (1,1) clamp = (0,0) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_NONE),
	gsDPLoadTextureBlock_4b(
			fki_win_wa_tex,
			G_IM_FMT_I,
			64, 16, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			6, 4, 0, 0),
/* fki_win_w4_1 */
	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&fki_win_v[0],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx fki_win_w3T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		0, 0, 0, PRIMITIVE,
		0, 0, 0, TEXEL0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
	gsDPSetPrimColor(0, 255, 255, 255, 215, 255),
/*	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),*/
/* repeat = (1,1)  mirror = (1,1) clamp = (0,0) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_NONE),
	gsDPLoadTextureBlock_4b(
			fki_win_w2_tex,
			G_IM_FMT_I,
			64, 32, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			6, 5, 0, 0),
/* fki_win_w3T_1 */
	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&fki_win_v[4],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx fki_win_w1T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		0, 0, 0, PRIMITIVE,
		0, 0, 0, TEXEL0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
	gsDPSetPrimColor(0, 255, 255, 255, 215, 255),
/*	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),*/
/* repeat = (1,1)  mirror = (1,1) clamp = (0,0) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_NONE),
	gsDPLoadTextureBlock_4b(
			fki_win_de4_tex,
			G_IM_FMT_I,
			16, 16, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			4, 4, 0, 0),
/* fki_win_w1T_1 */
/*	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),*/
	gsSPVertex(&fki_win_v[8],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx fki_win_w2T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		0, 0, 0, PRIMITIVE,
		0, 0, 0, TEXEL0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
	gsDPSetPrimColor(0, 255, 255, 255, 215, 255),
/*	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),*/
/* repeat = (1,1)  mirror = (1,1) clamp = (0,0) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_NONE),
	gsDPLoadTextureBlock_4b(
			fki_win_de3_tex,
			G_IM_FMT_I,
			16, 16, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			4, 4, 0, 0),
/* fki_win_w2T_1 */
/*	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),*/
	gsSPVertex(&fki_win_v[12],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx fki_win_mode[] = {
    gsDPPipeSync(),
    gsSPClearGeometryMode(G_ZBUFFER | G_CULL_BOTH |\
                          G_FOG | G_LIGHTING |\
                          G_TEXTURE_GEN |\
                          G_TEXTURE_GEN_LINEAR | G_LOD),
    gsSPSetGeometryMode(G_SHADE | G_SHADING_SMOOTH),
    /* 各種設定 */
    gsDPSetOtherModeHL(G_PM_NPRIMITIVE |        /* gDPPipelineMode */
                       G_CYC_2CYCLE |           /* gDPSetCycleType */
                       G_TP_PERSP |             /* gDPSetTexturePersp */
                       G_TD_CLAMP |             /* gDPSetTextureDetail */
                       G_TL_TILE |              /* gDPSetTextureLOD */
                       G_TT_NONE |              /* gDPSetTextureLUT */
                       G_TF_BILERP |            /* gDPSetTextureFilter */
                       G_TC_FILT |              /* gDPSetTextureConvert */
                       G_CK_NONE |              /* gDPSetCombineKey */
                       G_CD_DISABLE |           /* gDPSetColorDither */
                       G_AD_DISABLE,            /* gDPSetAlphaDither */
                       G_AC_NONE |              /* gDPSetAlphaCompare */
                       G_ZS_PIXEL |             /* gDPSetDepthSource */
///                       G_RM_XLU_SURF |       /* gDPSetRenderMode */
///                       G_RM_XLU_SURF2
                       G_RM_TEX_EDGE |          /* gDPSetRenderMode */
                       G_RM_TEX_EDGE2
        ),
    gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
    gsSPEndDisplayList(),
};



