/* 
 * 変換日付 Thu Aug 31 12:43:26 2000
 * 2000/6/28 var2.04
 * パレット有効
 * XXコードの頂点破棄
 * 使用テキスチャ─チェック
 * 頂点カラーを評価しない
 * ビュア─の設定対応
 */
#include <mbi.h>
#include <u64macro.h>

extern unsigned char hi_light_txt[];
extern Mtx	softsprite_mtx;

extern u64	act_m_minmin_start = 0;

/* ビュア─設定のパレット */
/* ビュア─設定のテキスチャ─ */
/* vretex = 22 */
static Vtx act_m_minmin_v[] = {
/* 0番目 */ {-750,    0,  750,    0, 1024,    0,  -72,   96,    0,  102},
/* 1番目 */ {   0,  563,  750,    0,  512,    0,    0,  120,    0,  214},
/* 2番目 */ {   0,  563, -750,    0,  512, 1024,    0,  120,    0,  214},
/* 3番目 */ {-750,    0, -750,    0, 1024, 1024,  -72,   96,    0,  102},
/* 4番目 */ { 750,    0,  750,    0,    0,    0,   72,   96,    0,  255},
/* 5番目 */ { 750,    0, -750,    0,    0, 1024,   72,   96,    0,  255},
/* 6番目 */ { 656,  281,  188,    0,    0, 1024,   53,  107,    0,  255},
/* 7番目 */ { 656,  281, -1313,    0,    0, 2048,   53,  107,    0,  255},
/* 8番目 */ { -94,  656, -1313,    0,  572, 2048,   53,  107,    0,  255},
/* 9番目 */ { -94,  656,  188,    0,  572, 1024,   53,  107,    0,  255},
/* 10番目 */ {  94,  656, -1313,    0,  512, 2048,  -53,  107,    0,  138},
/* 11番目 */ {-656,  281, -1313,    0,  -60, 2048,  -53,  107,    0,  138},
/* 12番目 */ {-656,  281,  188,    0,  -60, 1024,  -53,  107,    0,  138},
/* 13番目 */ {  94,  656,  188,    0,  512, 1024,  -53,  107,    0,  138},
/* 14番目 */ {1688,  375,  563,    0,    0, 2048,    0,  120,    0,  214},
/* 15番目 */ {1688,  375, -188,    0,  512, 2048,    0,  120,    0,  214},
/* 16番目 */ { 188,  375, -188,    0,  512, 1024,    0,  120,    0,  214},
/* 17番目 */ { 188,  375,  563,    0,    0, 1024,    0,  120,    0,  214},
/* 18番目 */ {-188,  375, -188,    0,  512, 1024,    0,  120,    0,  214},
/* 19番目 */ {-1688,  375, -188,    0,  512, 2048,    0,  120,    0,  214},
/* 20番目 */ {-1688,  375,  563,    0,    0, 2048,    0,  120,    0,  214},
/* 21番目 */ {-188,  375,  563,    0,    0, 1024,    0,  120,    0,  214},

};

static unsigned short act_m_minmin_pal[] = {
0x298a,0x3c4b,0x6555,0x6e97,0x298b,0x5cd9,0x3409,0xa49b,
0xbde1,0xdef7,0x3245,0xb44d,0x834d,0x8cdf,0xbe69,0x42d3,
};
static unsigned char act_m_minmin[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x01,0x00,0x09,0xb0,0x1f,0x00,0x00,0x00,0x20,0x00,0x0c,0xc4,0xff,
0x00,0x00,0x01,0x30,0x00,0x04,0x41,0x4f,0x00,0x00,0x0f,0x20,0x00,0x42,0xa3,0x66,
0x00,0x00,0x0f,0x1f,0x00,0x4a,0x43,0x2f,0x00,0x00,0x00,0xf1,0x04,0xa4,0x32,0xf4,
0x00,0x00,0x00,0x0f,0xfa,0xf4,0x4a,0xaa,0x00,0x00,0x00,0x00,0x04,0xff,0x23,0x33,
0x00,0x00,0x00,0x00,0x0f,0x62,0xf4,0x44,0x00,0x00,0x00,0x00,0x0a,0xa4,0x4a,0x34,
0x00,0x00,0x00,0x0f,0xf4,0x6e,0xd4,0xaa,0x00,0x00,0x00,0xf2,0x00,0x4e,0x2a,0x41,
0x00,0x00,0x00,0x21,0x0a,0x45,0xd2,0xae,0x00,0x00,0x0f,0x10,0x04,0xa4,0xe4,0xe9,
0x00,0x00,0x02,0x00,0x0a,0x2a,0x4e,0x99,0x00,0x00,0x01,0x00,0x04,0xa2,0x5a,0x4c,
0x00,0x00,0x10,0x00,0x00,0x45,0xe9,0xed,0x00,0x02,0x00,0x00,0xff,0x6d,0x9e,0xd5,
0x00,0x00,0x00,0x0f,0x10,0xa9,0xed,0xaa,0x00,0x00,0x00,0x02,0x00,0xa5,0x12,0x22,
0x00,0x00,0x00,0xf1,0x00,0x44,0xac,0xcc,0x00,0x00,0x00,0x21,0x00,0x4f,0xf1,0x22,
0x00,0x00,0x00,0x10,0x00,0x44,0xaa,0xcc,0x00,0x00,0x00,0x10,0x00,0x04,0xff,0x12,
0x00,0x00,0x01,0x00,0x00,0x04,0x4a,0xcc,0x00,0x00,0x20,0x00,0x00,0x00,0x44,0xf6,
0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x4f,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x04,
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,0xc0,0x00,0x00,0x00,
0x00,0x00,0x00,0x0c,0x7c,0x00,0x00,0x00,0x00,0x00,0x00,0xc7,0x9c,0x00,0x00,0x00,
0x00,0x00,0x00,0xc9,0xc7,0xc0,0x00,0x00,0x00,0x00,0x0c,0x79,0xc9,0xc0,0x00,0x00,
0x00,0x00,0x0c,0x99,0xc9,0x7c,0x00,0x00,0x00,0x00,0x0c,0x9c,0x99,0xcc,0x00,0x00,
0x00,0x00,0xc7,0x9c,0x9c,0x9c,0x00,0x00,0x00,0x00,0xc9,0xc9,0x9c,0x97,0xc0,0x00,
0x00,0x00,0xc9,0xc9,0x9c,0x99,0xc0,0x00,0x00,0x0c,0x79,0xc9,0x7c,0x99,0xc0,0x00,
0x00,0x0c,0xc9,0xcc,0xc9,0xc9,0xc0,0x00,0x00,0x0c,0x9c,0x79,0xc9,0x9c,0x7c,0x00,
0x00,0x0c,0x9c,0x99,0xc9,0x9c,0x9c,0x00,0x00,0x0c,0x9c,0x99,0xc7,0x9c,0x9c,0x00,
0x00,0x0c,0x9c,0x97,0x9c,0x9c,0x9c,0x00,0x00,0x0c,0x9c,0x9c,0x99,0xc9,0x9c,0x00,
0x00,0x0c,0x9c,0x7c,0x99,0xc9,0x9c,0x00,0x00,0x0c,0x7c,0x9c,0x99,0xc9,0x7c,0x00,
0x00,0x0c,0x9c,0x9c,0x79,0x79,0xc0,0x00,0x00,0x0c,0x9c,0x99,0xc9,0x97,0xc0,0x00,
0x00,0x0c,0x99,0xc9,0xc7,0x9c,0x00,0x00,0x00,0x0c,0x79,0xc9,0x9c,0x9c,0x00,0x00,
0x00,0x00,0xc9,0xc9,0x99,0xcc,0x00,0x00,0x00,0x00,0xc9,0x9c,0x99,0xc0,0x00,0x00,
0x00,0x00,0xc7,0x9c,0x99,0xc0,0x00,0x00,0x00,0x00,0x0c,0x99,0xc9,0xc0,0x00,0x00,
0x00,0x00,0x0c,0x79,0x9c,0x00,0x00,0x00,0x00,0x00,0x00,0xcc,0xc0,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
}; /* act_m_minmin */

extern Gfx act_m_minmin1_1T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		TEXEL0, 0, PRIMITIVE, 0,
		TEXEL0, 0, ENVIRONMENT, 0,
		COMBINED, 0, SHADE, 0,
		0, 0, 0, COMBINED
	),
	gsDPSetPrimColor(0, 255, 255, 255, 255, 255),
//	gsDPSetEnvColor(255, 255, 255, 255),
	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),
/* repeat = (1,1)  mirror = (1,1) clamp = (0,1) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_RGBA16),
	gsDPLoadTLUT_pal16(15,act_m_minmin_pal),
	gsDPLoadTextureBlock_4b(
			act_m_minmin,
			G_IM_FMT_CI,
			16, 64, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_CLAMP,
			4, 6, 0, 0),
/* act_m_minmin1_1T_1 */
	gsSPLoadGeometryMode(G_LIGHTING | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&act_m_minmin_v[0],6,0),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSP2Triangles( 1, 4, 5, 0, 1, 5, 2, 0 ),
	gsSPEndDisplayList(),
};

extern Gfx act_m_minmin1_2T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		TEXEL0, 0, PRIMITIVE, 0,
		TEXEL0, 0, PRIMITIVE, 0,
		COMBINED, 0, SHADE, 0,
		COMBINED, 0, ENVIRONMENT, 0
	),
	gsDPSetPrimColor(0, 255, 255, 255, 255, 160),
//	gsDPSetEnvColor(255, 255, 255, 255),
	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),
/* repeat = (1,1)  mirror = (1,1) clamp = (0,1) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_RGBA16),
	gsDPLoadTLUT_pal16(15,act_m_minmin_pal),
	gsDPLoadTextureBlock_4b(
			act_m_minmin,
			G_IM_FMT_CI,
			16, 64, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_CLAMP,
			4, 6, 0, 0),
/* act_m_minmin1_2T_1 */
	gsSPLoadGeometryMode(G_LIGHTING | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&act_m_minmin_v[6],8,0),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSP2Triangles( 4, 5, 6, 0, 4, 6, 7, 0 ),
	gsSPEndDisplayList(),
};

extern Gfx act_m_minmin2_2T_model[] = {
	gsSPTexture( 0xffff, 0xffff, 0, 0, G_ON),
	gsDPPipeSync(),
	gsDPSetCombineLERP(
		TEXEL0, 0, PRIMITIVE, 0,
		TEXEL0, 0, PRIMITIVE, 0,
		COMBINED, 0, SHADE, 0,
		COMBINED, 0, ENVIRONMENT, 0
	),
	gsDPSetPrimColor(0, 255, 255, 255, 255, 160),
//	gsDPSetEnvColor(255, 255, 255, 255),
	gsDPSetRenderMode(G_RM_FOG_SHADE_A,G_RM_ZB_XLU_SURF2),
/* repeat = (1,1)  mirror = (1,1) clamp = (0,1) */
	gsDPPipeSync(),
	gsDPSetTextureLUT(G_TT_RGBA16),
	gsDPLoadTLUT_pal16(15,act_m_minmin_pal),
	gsDPLoadTextureBlock_4b(
			act_m_minmin,
			G_IM_FMT_CI,
			16, 64, 15,
			G_TX_MIRROR | G_TX_WRAP, G_TX_MIRROR | G_TX_CLAMP,
			4, 6, 0, 0),
/* act_m_minmin2_2T_1 */
	gsSPLoadGeometryMode(G_LIGHTING | G_FOG | G_SHADE | G_SHADING_SMOOTH | G_ZBUFFER),
	gsSPVertex(&act_m_minmin_v[14],8,0),
	gsSP2Triangles( 0, 1, 2, 0, 0, 2, 3, 0 ),
	gsSP2Triangles( 4, 5, 6, 0, 4, 6, 7, 0 ),
	gsSPEndDisplayList(),
};


extern u64	act_m_minmin_end = 0;
