#include<ultra64.h>

extern Vtx ManLthigh_1b_v[];
extern Vtx ManLthigh_1b_vmcur[];
extern Tri ManLthigh_1b_tri[];
extern Lights1 ManLthigh_1b_material[];
extern Mtx ManLthigh_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 ManLthigh_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,16,0,0,G_TX_CLAMP,4,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(St1shin_f_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLthigh_1b_v[0], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),

	gs_Nin_LoadTextureImage(St1thigh_b_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLthigh_1b_v[3], 5, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSP1Triangle(2, 4, 0, 0),

	gs_Nin_LoadTextureImage(St1thigh_f_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLthigh_1b_v[8], 8, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(2, 3, 0, 0),
	gsSP1Triangle(3, 4, 0, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSPEndDisplayList(),
};

Gfx *ManLthigh_1b_modelT = NULL;

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 16 vertices */

/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/


/******************************************************************************
	vertex & texture
******************************************************************************/

Vtx ManLthigh_1b_v[]={
	{ 18,18,184,0, 488, 511, 94, 44, 60, 0 },   /* v0 p9/V1 used 1 times */ 
	{ -18,18,185,0, 53, 511, -92, 46, 60, 0 },   /* v1 p9/V2 used 1 times */ 
	{ -2,-26,181,0, 248, 258, -1, -91, 76, 0 },   /* v2 p9/V3 used 1 times */ 
	{ -30,-47,4,0, 389, 547, -93, -61, -40, 0 },   /* v3 p13/V3 used 2 times */ 
	{ 28,-47,18,0, 95, 506, 100, -54, -35, 0 },   /* v4 p11/V1 used 2 times */ 
	{ -2,-26,181,0, 265, 56, -1, -91, 76, 0 },   /* v5 p11/V3 used 3 times */ 
	{ 18,18,184,0, 163, 0, 94, 44, 60, 0 },   /* v6 p11/V2 used 1 times */ 
	{ -18,18,185,0, 348, 0, -92, 46, 60, 0 },   /* v7 p13/V2 used 1 times */ 
	{ -3,28,5,0, 252, 511, 14, 100, -64, 0 },   /* v8 p10/V3 used 3 times */ 
	{ -30,-47,4,0, -73, 504, -93, -61, -40, 0 },   /* v9 p14/V2 used 1 times */ 
	{ -18,18,185,0, 23, 0, -92, 46, 60, 0 },   /* v10 p10/V1 used 2 times */ 
	{ 18,18,184,0, 458, 0, 94, 44, 60, 0 },   /* v11 p10/V2 used 2 times */ 
	{ 28,-47,18,0, 618, 460, 100, -54, -35, 0 },   /* v12 p16/V2 used 1 times */ 
	{ 28,-47,18,0, 61, 168, 100, -54, -35, 0 },   /* v13 p12/V1 used 1 times */ 
	{ -30,-47,4,0, 429, 162, -93, -61, -40, 0 },   /* v14 p12/V2 used 1 times */ 
	{ -3,28,5,0, 256, 512, 14, 100, -64, 0 },   /* v15 p12/V3 used 1 times */ 
};


/*   0 vertices */
/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1shin_f_txt[] = {
	0x1085, 0x1085, 0x1085, 0x1085, 0x1085, 0x1087, 0x18c7, 0x2949, 0x294b, 0x294b, 0x2109, 0x18c7, 0x1085, 0x1085, 0x1085, 0x1085, 
	0x1085, 0x1085, 0x1085, 0x1085, 0x18c7, 0x18c7, 0x294b, 0x318b, 0x318d, 0x294b, 0x2109, 0x18c7, 0x18c7, 0x1085, 0x1085, 0x1085, 
	0x1107, 0x1107, 0x1107, 0x1107, 0x1909, 0x214b, 0x29cd, 0x31cf, 0x31cf, 0x31cd, 0x298b, 0x214b, 0x1909, 0x1107, 0x1107, 0x1107, 
	0x90d3, 0x98d3, 0x98d3, 0x98d3, 0x9915, 0xa197, 0xa219, 0xa25b, 0xa25b, 0xa21b, 0xa1d9, 0xa157, 0xa115, 0x98d3, 0x98d3, 0x98d3, 
	0xf819, 0xf817, 0xf819, 0xf819, 0xf89b, 0xf91d, 0xf9e1, 0xfa65, 0xfaa5, 0xfa23, 0xf9a1, 0xf91d, 0xf89b, 0xf859, 0xf859, 0xf859, 
	0xf815, 0xf815, 0xf815, 0xf815, 0xf859, 0xf91b, 0xf9e1, 0xfaa3, 0xfaa3, 0xfa63, 0xf9df, 0xf95d, 0xf899, 0xf857, 0xf817, 0xf817, 
	0xf815, 0xf815, 0xf815, 0xf817, 0xf899, 0xf99f, 0xfa61, 0xfaa3, 0xfaa5, 0xfaa3, 0xfa21, 0xf99f, 0xf8db, 0xf859, 0xf817, 0xf817, 
	0xf815, 0xf815, 0xf817, 0xf859, 0xf91d, 0xf9e1, 0xfa61, 0xfa63, 0xfaa5, 0xfaa5, 0xfa63, 0xf9df, 0xf91b, 0xf899, 0xf817, 0xf817, 
	0xf815, 0xf817, 0xf857, 0xf8db, 0xf99f, 0xf9e1, 0xfa21, 0xfa63, 0xfaa3, 0xfaa5, 0xfa63, 0xf9e1, 0xf95d, 0xf8db, 0xf859, 0xf817, 
	0xf817, 0xf859, 0xf8db, 0xf95d, 0xf9df, 0xfa21, 0xfa21, 0xfa63, 0xfaa3, 0xfaa3, 0xfaa3, 0xfa63, 0xf9df, 0xf95d, 0xf8db, 0xf859, 
	0xf8db, 0xf91d, 0xf99f, 0xf9df, 0xf9e1, 0xfa21, 0xfa21, 0xfa63, 0xfaa5, 0xfae5, 0xfaa5, 0xfa63, 0xfa21, 0xf9e1, 0xf99f, 0xf91d, 
	0xf9df, 0xf9df, 0xf9e1, 0xfa21, 0xfa21, 0xfa21, 0xfa63, 0xfaa5, 0xfae5, 0xfae5, 0xfae5, 0xfaa3, 0xfa61, 0xfa21, 0xf9e1, 0xf99f, 
	0xfa21, 0xfa21, 0xfa21, 0xfa21, 0xfa21, 0xfa63, 0xfa65, 0xfae5, 0xfb27, 0xfb29, 0xfb27, 0xfae5, 0xfa63, 0xfa21, 0xfa21, 0xfa21, 
	0xfa21, 0xfa21, 0xfa21, 0xfa63, 0xf221, 0xc199, 0x9955, 0x8995, 0x8193, 0x8995, 0xa1d9, 0xda5f, 0xfa63, 0xfa63, 0xfa21, 0xfa21, 
	0xfa21, 0xfa23, 0xfa21, 0xa155, 0x2847, 0x41, 0x1909, 0x52d7, 0x5b59, 0x3a11, 0x1107, 0x843, 0x58cd, 0xd21d, 0xfa63, 0xfa21, 
	0xfa63, 0xfaa5, 0xc1db, 0x3045, 0x41, 0x318d, 0x6319, 0x9ce7, 0xa529, 0x739d, 0x4211, 0x10c5, 0x1, 0x58cd, 0xfaa5, 0xfaa3, 
};

/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1thigh_b_txt[] = {
	0xf859, 0xf15d, 0xf1df, 0xf99f, 0xf99d, 0xf99f, 0xf99f, 0xf95d, 0xf95d, 0xf99f, 0xf99f, 0xf99f, 0xf99d, 0xf95d, 0xf91d, 0xf89b, 
	0xf095, 0xe9db, 0xe2e1, 0xe363, 0xdba3, 0xdbe3, 0xdba3, 0xe3a5, 0xe3a5, 0xe3a5, 0xe3e5, 0xe3e7, 0xe3a5, 0xe2e1, 0xea1d, 0xf0d7, 
	0xace7, 0xc4eb, 0xc5af, 0xc631, 0xc673, 0xc6b3, 0xc673, 0xc673, 0xc6b3, 0xc6b3, 0xc6b3, 0xc6b3, 0xc6b3, 0xc631, 0xbd2b, 0xb529, 
	0xa529, 0xbdad, 0xbdef, 0xc631, 0xc631, 0xc631, 0xc631, 0xc631, 0xc631, 0xce73, 0xce73, 0xce73, 0xc631, 0xc631, 0xbdef, 0xb5ad, 
	0xa529, 0xb5ad, 0xc631, 0xc631, 0xce73, 0xce73, 0xce73, 0xd673, 0xce73, 0xce73, 0xce73, 0xce73, 0xc631, 0xc631, 0xbe2f, 0xb5ef, 
	0xb5ad, 0xbdef, 0xc631, 0xce73, 0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xd6b5, 0xd675, 0xce73, 0xce73, 0xce73, 0xc671, 0xc631, 0xbdef, 
	0xc631, 0xce71, 0xc671, 0xce73, 0xdef7, 0xe739, 0xe739, 0xe739, 0xdef7, 0xdef5, 0xd6b5, 0xce73, 0xce73, 0xc673, 0xc633, 0xc631, 
	0xd6b5, 0xce73, 0xce73, 0xd6b5, 0xe739, 0xef7b, 0xef7b, 0xef3b, 0xe739, 0xdef7, 0xd6b5, 0xce73, 0xce73, 0xc631, 0xce71, 0xce73, 
	0xdef7, 0xd6b5, 0xd6b5, 0xdef7, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xd6b5, 0xce73, 0xc631, 0xc631, 0xce73, 0xce73, 
	0xe739, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xce73, 0xc631, 0xce73, 0xce73, 0xd6b5, 
	0xef7b, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xce73, 0xce73, 0xce73, 0xd6b5, 
	0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xd6b7, 0xd6b5, 0xd6b5, 0xd6b5, 
	0xef7b, 0xe779, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xe739, 0xdef7, 0xd6b7, 0xdef7, 0xdef7, 
	0xef7b, 0xe73b, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xdef7, 0xdef7, 0xdef7, 0xdf39, 
	0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xdef7, 0xdef7, 0xdef7, 0xe739, 
	0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xdef7, 0xdef7, 0xd6b5, 0xdef7, 
};

/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1thigh_f_txt[] = {
	0xf8db, 0xf8db, 0x5809, 0x1, 0x1107, 0x4a95, 0x8421, 0xad6b, 0x8c63, 0x5ad7, 0x294b, 0x41, 0x3005, 0xc095, 0xf89d, 0xf899, 
	0xf857, 0xf857, 0xd013, 0x6009, 0x803, 0x8c5, 0x3a11, 0x635b, 0x4a93, 0x298d, 0x885, 0x2805, 0xa04f, 0xf857, 0xf055, 0xe895, 
	0xac23, 0xb3e1, 0xd361, 0xe9db, 0xd893, 0xa891, 0x9113, 0x8153, 0x8993, 0x9995, 0xc157, 0xe99b, 0xeaa1, 0xc3a1, 0xa423, 0xa4a5, 
	0xa56b, 0xaded, 0xc6b3, 0xd673, 0xeceb, 0xfb63, 0xfb23, 0xfb67, 0xfb65, 0xfbe7, 0xf4eb, 0xe633, 0xcef5, 0xbe71, 0xadad, 0xa56b, 
	0xad6b, 0xc631, 0xd6b5, 0xdf39, 0xdf79, 0xdf79, 0xe779, 0xefbd, 0xf7fd, 0xf7ff, 0xeffd, 0xe77b, 0xdef7, 0xd6b5, 0xc631, 0xb5ad, 
	0xbdef, 0xce73, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe77b, 0xf7bd, 0xf7ff, 0xf7ff, 0xf7bd, 0xef7b, 0xe739, 0xe739, 0xdef7, 0xce73, 
	0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xdef7, 
	0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xdef7, 
	0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xe739, 0xe739, 
	0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 
	0xdef7, 0xdef7, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xffff, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 
	0xdef7, 0xdef7, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xffff, 0xffff, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 
	0xe739, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 
	0xe739, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 
	0xef7b, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 
	0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 0xef7b, 
};

