#include<ultra64.h>

extern Vtx ManLfoot_1b_v[];
extern Vtx ManLfoot_1b_vmcur[];
extern Tri ManLfoot_1b_tri[];
extern Lights1 ManLfoot_1b_material[];
extern Mtx ManLfoot_1b_matrix[];

extern unsigned short Sshoes_bottom_txt[];
extern unsigned short St1best_b_txt[];
extern unsigned short St1best_f_txt[];
extern unsigned short St1best_s_txt[];
extern unsigned short St1best_t_txt[];
extern unsigned short St1farm_b_txt[];
extern unsigned short St1farm_f_txt[];
extern unsigned short St1hand_b_txt[];
extern unsigned short St1hand_f_txt[];
extern unsigned short St1hand_s_txt[];
extern unsigned short St1hand_t_txt[];
extern unsigned short St1hara_txt[];
extern unsigned short St1met_b_txt[];
extern unsigned short St1met_f_txt[];
extern unsigned short St1met_gl_txt[];
extern unsigned short St1met_s_txt[];
extern unsigned short St1met_t_txt[];
extern unsigned short St1neck_txt[];
extern unsigned short St1shin_b_txt[];
extern unsigned short St1shin_f_txt[];
extern unsigned short St1shoe_txt[];
extern unsigned short St1shoe_b_txt[];
extern unsigned short St1thigh_b_txt[];
extern unsigned short St1thigh_f_txt[];
extern unsigned short St1uarm_b_txt[];
extern unsigned short St1uarm_f_txt[];
extern unsigned short St1waist_b_txt[];
extern unsigned short St1waist_f_txt[];
extern unsigned short St1waist_s_txt[];
extern unsigned short black_txt[];



#define gs_Nin_LoadTextureImage(timg,fmt,siz,width,height,tmem,tt)	\
	gsDPSetTextureImage(fmt,siz,1,timg),	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,0,tmem,tt,0,0,0,0,0,0,0),	\
	gsDPLoadSync(),	\
	gsDPLoadBlock(tt,0,0,width*height-1,CALC_DXT(width,siz##_BYTES))

#define gs_Nin_SetUpTileDescrip(fmt,siz,width,height,tmem,tt,cs,ms,ss,ct,mt,st)	\
	gsDPTileSync(),	\
	gsDPSetTile(fmt,siz,((((width)*siz##_LINE_BYTES)+7)>>3),tmem,tt,0,ct,mt,st,cs,ms,ss),	\
	gsDPSetTileSize(tt,0,0,(width-1)<<G_TEXTURE_IMAGE_FRAC,(height-1)<<G_TEXTURE_IMAGE_FRAC)

#define G_CC_PRIMSHADE PRIMITIVE,0,SHADE,0,0,0,0,SHADE

/******************************************************************************
/******************************************************************************
/******************************************************************************
/******************************************************************************
/******************************************************************************
/******************************************************************************
/******************************************************************************
	main display list
******************************************************************************/

Gfx ManLfoot_1b_model[]={

	gsSPTexture(65535, 65535,0, 0, 1),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_MODULATERGBA,G_CC_PASS2),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,0,G_TX_CLAMP,4,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(St1shoe_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,32,0,7),

	gsSPVertex(&ManLfoot_1b_v[0], 5, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 0, 2, 0),
	gsSP1Triangle(2, 4, 3, 0),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,16,0,0,G_TX_MIRROR,3,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(St1shoe_b_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,16,0,7),

	gsSPVertex(&ManLfoot_1b_v[5], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,32,0,0,G_TX_CLAMP,3,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(Sshoes_bottom_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,32,0,7),

	gsSPVertex(&ManLfoot_1b_v[8], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
};

Gfx *ManLfoot_1b_modelT = NULL;

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */

/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/

Vtx ManLfoot_1b_v[]={
	{ 22,-28,85,0, 502, 2, 106, 27, 51, 0 },   /* v0 p9/V1 used 2 times */ 
	{ 21,-27,-22,0, 499, 1097, 56, -86, -60, 0 },   /* v1 p9/V2 used 1 times */ 
	{ 0,26,-10,0, 270, 977, 8, 116, -29, 0 },   /* v2 p7/V1 used 3 times */ 
	{ -25,-27,90,0, -4, -54, -86, -67, 47, 0 },   /* v3 p7/V3 used 2 times */ 
	{ -26,-26,-23,0, -8, 1104, -78, -28, -85, 0 },   /* v4 p7/V2 used 1 times */ 
	{ 21,-27,-22,0, 36, 51, 56, -86, -60, 0 },   /* v5 p10/V1 used 1 times */ 
	{ -26,-26,-23,0, 475, 51, -78, -28, -85, 0 },   /* v6 p10/V2 used 1 times */ 
	{ 0,26,-10,0, 244, 602, 8, 116, -29, 0 },   /* v7 p10/V3 used 1 times */ 
	{ 21,-27,-22,0, 248, 0, 56, -86, -60, 0 },   /* v8 p12/V1 used 2 times */ 
	{ 22,-28,85,0, 257, 995, 106, 27, 51, 0 },   /* v9 p11/V2 used 1 times */ 
	{ -25,-27,90,0, 4, 1053, -86, -67, 47, 0 },   /* v10 p12/V2 used 2 times */ 
	{ -26,-26,-23,0, -5, 0, -78, -28, -85, 0 },   /* v11 p12/V3 used 1 times */ 
};


/*   0 vertices */
/* 8 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short Sshoes_bottom_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x41, 0x3203, 0x2a03, 0x881, 0x1, 0x1, 
	0x1, 0x843, 0x3205, 0x3285, 0x19c3, 0x1101, 0x843, 0x1, 
	0x1, 0x883, 0x3245, 0x5b87, 0x5347, 0x3245, 0x843, 0x1, 
	0x1, 0x1905, 0x4b47, 0x5387, 0x5bc7, 0x3245, 0x843, 0x1, 
	0x1, 0x10c5, 0x42c7, 0x7c89, 0x7449, 0x4b07, 0x18c3, 0x1, 
	0x1, 0x3a07, 0x63c9, 0x6c09, 0x6c09, 0x3285, 0x10c3, 0x1, 
	0x1, 0x1905, 0x3245, 0x63c7, 0x5b87, 0x6c0b, 0x31c7, 0x1, 
	0x1, 0x3a47, 0x744d, 0x42c5, 0x3a85, 0x2a05, 0x2145, 0x1, 
	0x1, 0x1905, 0x4303, 0x4b07, 0x42c7, 0x9d8f, 0x3207, 0x1, 
	0x1, 0x3a47, 0x6c0b, 0x63c9, 0x5347, 0x3a87, 0x3207, 0x1, 
	0x1, 0x881, 0x3a85, 0x3a85, 0x6c49, 0x958f, 0x5309, 0x1, 
	0x1, 0x10c1, 0x5b89, 0x640b, 0x5309, 0x3a87, 0x4287, 0x1, 
	0x1, 0x41, 0x3a85, 0x3a85, 0x7c4d, 0x954f, 0x63cb, 0x1945, 
	0x1, 0x10c1, 0x5b87, 0x63cb, 0x4ac7, 0x3a45, 0x42c7, 0x2949, 
	0x1, 0x881, 0x3a85, 0x3a85, 0x744d, 0x954f, 0x63cb, 0x2149, 
	0x1, 0x31c5, 0x6409, 0x6389, 0x4ac7, 0x3a45, 0x42c7, 0x320b, 
	0x1, 0x1943, 0x3a85, 0x3a85, 0x744d, 0x954f, 0x640b, 0x2989, 
	0x1, 0x6c0b, 0x744b, 0x63c9, 0x4b07, 0x3205, 0x42c7, 0x42cd, 
	0x883, 0x2a05, 0x3a85, 0x5b89, 0x744b, 0x954d, 0x6c0b, 0x324b, 
	0x1905, 0x954d, 0x5bc7, 0x63cb, 0x4b09, 0x3205, 0x42c7, 0x534f, 
	0x10c5, 0x2a45, 0x3a85, 0x4b07, 0x744d, 0x954f, 0x6409, 0x324b, 
	0x3a07, 0x958d, 0x5bc9, 0x4b05, 0x42c5, 0x3a47, 0x42c7, 0x534f, 
	0x1905, 0x3245, 0x3a85, 0x5347, 0x6c09, 0x8d4d, 0x63c9, 0x298b, 
	0x3a47, 0x954d, 0x63c9, 0x3a85, 0x42c7, 0x3245, 0x42c7, 0x298b, 
	0x1905, 0x3245, 0x3a85, 0x5b87, 0x744d, 0x954f, 0x5b49, 0x1143, 
	0x3a47, 0x84cb, 0x63c9, 0x3a85, 0x4ac7, 0x3a85, 0x1943, 0x1, 
	0x881, 0x2185, 0x3a85, 0x5b47, 0x744b, 0x8d4d, 0x2985, 0x1, 
	0x1, 0x52c9, 0x63c9, 0x3a85, 0x4ac7, 0x3a47, 0x841, 0x1, 
	0x1, 0x843, 0x63cb, 0x5b87, 0x7c8b, 0x2985, 0x1, 0x1, 
	0x1, 0x1, 0x883, 0x530b, 0x2987, 0x841, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
};

/* 16 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1shoe_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1003, 0x2047, 0x2887, 0x2047, 0x1845, 0x801, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x803, 0x3089, 0x590f, 0x7955, 0x8197, 0x7153, 0x5911, 0x40cb, 0x2045, 0x803, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x3089, 0x6953, 0x9a1b, 0xb25f, 0xb29f, 0xaa5d, 0x99db, 0x8197, 0x6151, 0x38cb, 0x1003, 0x1, 0x1, 0x1, 
	0x1, 0x803, 0x510f, 0x9a1b, 0xc365, 0xd4ad, 0xd4ed, 0xcc6b, 0xc325, 0xb25f, 0x99db, 0x7995, 0x40cb, 0x801, 0x1, 0x1, 
	0x1, 0x1043, 0x6953, 0xb2a1, 0xd4ad, 0xe635, 0xe635, 0xddb1, 0xd46b, 0xc2a3, 0xb21f, 0xa1db, 0x7995, 0x3089, 0x1, 0x1, 
	0x1, 0x803, 0x48cd, 0x7195, 0x92db, 0xb3e7, 0xd46d, 0xcc29, 0xc325, 0xa21d, 0x8197, 0x7193, 0x6953, 0x40cd, 0x801, 0x1, 
	0x1, 0x1, 0x2903, 0x82cd, 0x9ad1, 0x92cd, 0x698f, 0x6111, 0x58cf, 0x6a09, 0xab8d, 0xb353, 0x8acd, 0x3905, 0x1, 0x1, 
	0x1, 0x28c5, 0xa297, 0xc261, 0x6953, 0xa3df, 0xac9f, 0x731b, 0x6b59, 0xc523, 0xa3a3, 0x89d9, 0xcaa1, 0x8251, 0x20c3, 0x1, 
	0x1, 0x38c9, 0xa1dd, 0xba21, 0x5111, 0xac9f, 0xb565, 0x8c63, 0x94a5, 0xc5e7, 0xa523, 0x6955, 0xba21, 0x7155, 0x2887, 0x1, 
	0x1, 0x2847, 0xa1dd, 0xcadf, 0xab53, 0x9bc5, 0x3141, 0x1805, 0x1807, 0x41c1, 0x8b83, 0xc395, 0xc25f, 0x7155, 0x2047, 0x1, 
	0x1, 0x38cb, 0x9a95, 0x92cf, 0x89d7, 0x8acb, 0x41c1, 0x2007, 0x1805, 0x5241, 0x4983, 0x7a0d, 0xa351, 0x7a0f, 0x2887, 0x1, 
	0x1, 0x28c5, 0x4109, 0xa1dd, 0x6953, 0x945d, 0xad23, 0x94a5, 0x94a5, 0xb5a5, 0xad25, 0x5195, 0x9199, 0x7a0f, 0x3105, 0x1, 
	0x1, 0x801, 0x5911, 0xba1f, 0x7155, 0x93d9, 0x9cdd, 0x739f, 0x8423, 0xad63, 0xad23, 0x6215, 0xb21f, 0x99db, 0x2045, 0x1, 
	0x1, 0x3089, 0x91d9, 0xba61, 0xba23, 0x9acf, 0x4a01, 0x2005, 0x2007, 0x4a01, 0x7247, 0xa9dd, 0xcaa3, 0xaa1d, 0x388b, 0x1, 
	0x1, 0x3089, 0x91d9, 0xc261, 0x99dd, 0x82cd, 0x5a85, 0x308b, 0x2889, 0x5283, 0x728b, 0x8157, 0xca63, 0xaa1d, 0x38cb, 0x1, 
	0x1, 0x803, 0x5911, 0xb21f, 0x5993, 0xada9, 0xd6b1, 0xc631, 0xbe31, 0xd6f1, 0xce6f, 0x5295, 0xa1db, 0x99db, 0x2045, 0x1, 
	0x1, 0x801, 0x5911, 0xba1f, 0x7957, 0x8b51, 0x738d, 0x318f, 0x4191, 0x7b8f, 0x8b95, 0x71d7, 0xba1f, 0x91d9, 0x2047, 0x1, 
	0x1, 0x2887, 0x8997, 0xba61, 0xca23, 0xa30f, 0x5241, 0x3009, 0x484d, 0x5a41, 0x8a8b, 0xc223, 0xcaa3, 0xa21d, 0x3889, 0x1, 
	0x1, 0x2887, 0x8997, 0xba61, 0x9199, 0x8b53, 0x7bcf, 0x4993, 0x51d5, 0x734d, 0x8b4f, 0x7997, 0xc261, 0xa21b, 0x3089, 0x1, 
	0x1, 0x1003, 0x6951, 0xba1f, 0x510f, 0x94e3, 0xe6f3, 0xc633, 0xc633, 0xdef3, 0xd6b3, 0x62d9, 0xa9dd, 0x91d9, 0x1845, 0x1, 
	0x1, 0x801, 0x6111, 0xb21f, 0x8197, 0x9c07, 0x6a89, 0x48d1, 0x50d1, 0x728d, 0x8bcb, 0x6113, 0xba5f, 0x8197, 0x1003, 0x1, 
	0x1, 0x803, 0x7153, 0x99db, 0x8acd, 0x4a41, 0x1883, 0x6a09, 0x82c9, 0x3103, 0x7341, 0x828d, 0xa1dd, 0x8997, 0x1845, 0x1, 
	0x1, 0x1845, 0x7955, 0x8213, 0x4a03, 0x1, 0x1, 0x841, 0x1081, 0x1, 0x41, 0x5281, 0x7155, 0x8999, 0x2887, 0x1, 
	0x1, 0x2887, 0x7115, 0x6209, 0x3181, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x31c1, 0x518b, 0x9199, 0x388b, 0x1, 
	0x1, 0x3089, 0x6913, 0x5205, 0x18c1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2941, 0x4185, 0x7957, 0x38cb, 0x1, 
	0x1, 0x3089, 0x6113, 0x5a43, 0x881, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x841, 0x3143, 0x5911, 0x3089, 0x1, 
	0x1, 0x2047, 0x50cf, 0x5243, 0x841, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x841, 0x3141, 0x40cd, 0x1845, 0x1, 
	0x1, 0x1003, 0x388b, 0x4a03, 0x841, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2101, 0x2847, 0x1, 0x1, 
	0x1, 0x1, 0x1805, 0x3943, 0x841, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x41, 0x20c3, 0x1003, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x2083, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x841, 0x20c3, 0x1, 0x1, 0x1, 
};

/* 8 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1shoe_b_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x801, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x801, 0x2887, 0x510f, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x3089, 0x8195, 0x9a1d, 
	0x1, 0x1, 0x1, 0x841, 0x841, 0x1845, 0x91d9, 0xc2a3, 
	0x1, 0x1, 0x1, 0x841, 0x3201, 0x29c1, 0x30c9, 0x7955, 
	0x1, 0x1, 0x1, 0x1, 0x1081, 0x63c3, 0x8cc9, 0x8c91, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x2103, 0x844b, 0xd6db, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1081, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
};

