/* 
 * 変換日付 Thu Dec 14 11:51:59 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 clk_win_maru1_tex[512];
static unsigned char clk_win_toki2_tex[512];

/* ビュア─設定のパレット */
/* ビュア─設定のテキスチャ─ */
/* vretex = 12 */
static Vtx clk_win_v[] = {
/* 0番目 */ {  73,  -77,    0,    0,    0,    0,  176,  176,  176,  176},
/* 1番目 */ {  73,  -95,    0,    0,    0,  512,  176,  176,  176,  176},
/* 2番目 */ { 145,  -77,    0,    0, 2048,    0,  176,  176,  176,  176},
/* 3番目 */ { 145,  -95,    0,    0, 2048,  512,  176,  176,  176,  176},
/* 4番目 */ {  56,  -50,    0,    0,    0,    0,  186,  186,  186,  186},
/* 5番目 */ {  56,  -83,    0,    0,    0, 1024,  186,  186,  186,  186},
/* 6番目 */ { 122,  -50,    0,    0, 2048,    0,  186,  186,  186,  186},
/* 7番目 */ { 122,  -83,    0,    0, 2048, 1024,  186,  186,  186,  186},
/* 8番目 */ { 101,  -59,    0,    0,    0,    0,  176,  176,  176,  176},
/* 9番目 */ { 101,  -79,    0,    0,    0, 1024,  176,  176,  176,  176},
/* 10番目 */ { 141,  -59,    0,    0, 2048,    0,  176,  176,  176,  176},
/* 11番目 */ { 141,  -79,    0,    0, 2048, 1024,  176,  176,  176,  176},

};

Gfx g150T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT,
		TEXEL0, 0, PRIM_LOD_FRAC, 0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
/*	gsDPSetPrimColor(0, 255, 130, 160, 255, 255),*/
/*	gsDPSetEnvColor(40, 40, 145, 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(
			clk_win_toki2_tex,
			G_IM_FMT_IA,G_IM_SIZ_8b,
			32, 16, 0,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			5, 4, 0, 0),
/* g150T_1 */
/*	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),*/
	gsSPVertex(&clk_win_v[0],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx g149T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT,
		TEXEL0, 0, PRIM_LOD_FRAC, 0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
/*	gsDPSetPrimColor(0, 255, 235, 80, 80, 255),*/
/*	gsDPSetEnvColor(255, 255, 190, 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(
			clk_win_maru1_tex,
			G_IM_FMT_IA,G_IM_SIZ_8b,
			32, 16, 0,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			5, 4, 0, 0),
/* g149T_1 */
/*	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),*/
	gsSPVertex(&clk_win_v[4],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx clk_win_youbiT_waku_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		PRIMITIVE, ENVIRONMENT, TEXEL0, ENVIRONMENT,
		TEXEL0, 0, PRIM_LOD_FRAC, 0,
		0, 0, 0, COMBINED,
		0, 0, 0, COMBINED
	),
/*	gsDPSetPrimColor(0, 255, 255, 70, 70, 255),*/
/*	gsDPSetEnvColor(255, 50, 50, 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(
			clk_win_maru1_tex,
			G_IM_FMT_IA,G_IM_SIZ_8b,
			32, 16, 0,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_WRAP,
			5, 4, 0, 0),
/* clk_win_youbiT_1 */
/*	gsSPLoadGeometryMode(G_CULL_BACK | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),*/
	gsSPVertex(&clk_win_v[8],4,0),
	gsSP2Triangles( 0, 1, 2, 0, 1, 3, 2, 0 ),
	gsSPEndDisplayList(),
};

Gfx clk_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_TEX_EDGE |          /* gDPSetRenderMode */
                       G_RM_TEX_EDGE2
        ),
    gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
    gsSPEndDisplayList(),
};

static unsigned char clk_win_maru1_tex[] = {
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf3,0xf4,0xf5,0xf8,0xfa,0xfa,0xfa,0xfa,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
0xf0,0xf0,0xf0,0xf0,0xf3,0xf7,0xfa,0xfd,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,
0xf0,0xf2,0xf7,0xfb,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0xf0,0x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00,0x33,0xff,0xff,0x6f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x11,0xdd,0xff,0xef,0x5f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x00,0x55,0xff,0xff,0xff,0xbf,0x5f,0x2f,0x0f,0x0f,0x0f,0x0f,
0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x00,0x00,0x55,0xee,0xff,0xff,0xff,0xef,0xbf,0xaf,0x6f,0x4f,
0x4f,0x3f,0x1f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,0x0f,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x22,0x77,0xdd,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xef,0xdf,0xcf,0xcf,0xbf,0xaf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,0xbf,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x11,0x44,0x77,0xaa,0xbb,0xee,0xff,
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,0x11,0x33,
0x33,0x44,0x55,0x66,0x77,0x99,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,0xaa,
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,
}; /* clk_win_toki2_tex */


