#include<ultra64.h>

extern Vtx ManLthigh_1c_v[];
extern Vtx ManLthigh_1c_vmcur[];
extern Tri ManLthigh_1c_tri[];
extern Lights1 ManLthigh_1c_material[];
extern Mtx ManLthigh_1c_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_1c_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(St1thigh_b_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLthigh_1c_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),

	gs_Nin_LoadTextureImage(St1thigh_f_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLthigh_1c_v[4], 8, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(5, 6, 3, 0),
	gsSP1Triangle(6, 7, 3, 0),
	gsSPEndDisplayList(),
};

Gfx *ManLthigh_1c_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 ManLthigh_1c_v[]={
	{ -30,-37,4,0, 452, 569, -47, -102, -37, 0 },   /* v0 p4/V1 used 2 times */ 
	{ 28,-1,184,0, 138, 0, 87, -61, 54, 0 },   /* v1 p4/V2 used 2 times */ 
	{ -28,-1,185,0, 424, 0, -105, 41, 38, 0 },   /* v2 p4/V3 used 1 times */ 
	{ 28,-39,18,0, 155, 525, 85, -52, -65, 0 },   /* v3 p3/V2 used 1 times */ 
	{ 28,-39,18,0, 120, 205, 85, -52, -65, 0 },   /* v4 p2/V1 used 1 times */ 
	{ -30,-37,4,0, 468, 216, -47, -102, -37, 0 },   /* v5 p2/V2 used 1 times */ 
	{ -3,34,5,0, 305, 518, 15, 104, -57, 0 },   /* v6 p2/V3 used 1 times */ 
	{ -3,34,5,0, 346, 519, 15, 104, -57, 0 },   /* v7 p1/V3 used 3 times */ 
	{ -30,-37,4,0, 247, 483, -47, -102, -37, 0 },   /* v8 p5/V2 used 1 times */ 
	{ -28,-1,185,0, 245, 0, -105, 41, 38, 0 },   /* v9 p1/V1 used 2 times */ 
	{ 28,-1,184,0, 449, 0, 87, -61, 54, 0 },   /* v10 p1/V2 used 2 times */ 
	{ 28,-39,18,0, 457, 440, 85, -52, -65, 0 },   /* v11 p6/V2 used 1 times */ 
};


/*   0 vertices */
/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1thigh_b_txt[] = {
	0xf859, 0xf899, 0xf89b, 0xf99f, 0xf9df, 0xf99d, 0xf99d, 0xf99d, 0xf99d, 0xf99f, 0xf95d, 0xf99f, 0xf99f, 0xf99f, 0xf95f, 0xf91d, 
	0xf817, 0xf815, 0xf097, 0xea9f, 0xdbe3, 0xdbe3, 0xdba3, 0xe3a3, 0xe3a3, 0xdba3, 0xe3a5, 0xe3e5, 0xe3e7, 0xe3e5, 0xe3e5, 0xe3a5, 
	0xd2dd, 0xbb1b, 0xace7, 0xd6b5, 0xdf39, 0xd6f7, 0xc6b3, 0xc6b3, 0xc6b3, 0xc673, 0xc6b3, 0xc6b3, 0xc6b3, 0xc6b3, 0xc6b3, 0xc673, 
	0x9d6b, 0x9d6b, 0xbe31, 0xdf39, 0xe739, 0xdef7, 0xce73, 0xc631, 0xc631, 0xc631, 0xc631, 0xce73, 0xc673, 0xce73, 0xce73, 0xc631, 
	0xa529, 0xad6b, 0xd6b5, 0xef7b, 0xef7b, 0xe739, 0xd6b5, 0xc631, 0xce73, 0xce73, 0xce73, 0xce73, 0xc631, 0xce73, 0xc631, 0xc631, 
	0xa529, 0xc631, 0xe739, 0xef7b, 0xf7bd, 0xef7b, 0xdef7, 0xc631, 0xce73, 0xd6b5, 0xce73, 0xce73, 0xce73, 0xce73, 0xc631, 0xc631, 
	0xad6b, 0xce73, 0xe739, 0xf7bd, 0xf7bd, 0xef7b, 0xdef7, 0xce73, 0xd6b5, 0xe739, 0xd6b5, 0xce73, 0xce73, 0xc631, 0xc631, 0xd6b5, 
	0xbdef, 0xdef7, 0xef7b, 0xf7bd, 0xf7bd, 0xef7b, 0xe739, 0xce73, 0xdef7, 0xef7b, 0xe739, 0xd6b5, 0xce73, 0xc631, 0xc631, 0xd6b5, 
	0xd6b5, 0xe739, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xe739, 0xd6b5, 0xdef7, 0xef7b, 0xe739, 0xd6b5, 0xce73, 0xc631, 0xc631, 0xce73, 
	0xdef7, 0xef7b, 0xf7bd, 0xffff, 0xffff, 0xf7bd, 0xe739, 0xd6b5, 0xdef7, 0xef7b, 0xef7b, 0xdef7, 0xce73, 0xc631, 0xc631, 0xc631, 
	0xef7b, 0xf7bd, 0xf7bd, 0xffff, 0xffff, 0xf7bd, 0xef7b, 0xdef7, 0xe739, 0xef7b, 0xef7b, 0xe739, 0xd6b5, 0xce73, 0xc631, 0xbdef, 
	0xf7bd, 0xf7bd, 0xffff, 0xffff, 0xffff, 0xf7bd, 0xef7b, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xd6b5, 0xce73, 0xc631, 
	0xf7bd, 0xf7bd, 0xffff, 0xffff, 0xffff, 0xf7bd, 0xef7b, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xd6b5, 0xd6b5, 0xce73, 
	0xf7bd, 0xf7bd, 0xffff, 0xffff, 0xf7bd, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xe739, 0xdef7, 0xd6b5, 0xd6b5, 0xce73, 
	0xf7bd, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xdef7, 0xdef7, 0xd6b5, 0xd6b5, 
	0xef7b, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xe739, 0xdef7, 0xd6b5, 0xd6b5, 
};

/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St1thigh_f_txt[] = {
	0xf91b, 0xf95d, 0xf95d, 0xf99d, 0xf95d, 0xf899, 0xf859, 0xf8db, 0x804d, 0x1107, 0x94a5, 0x6b9b, 0x43, 0xb853, 0xf85b, 0xf817, 
	0xe3a5, 0xe3a5, 0xe3e5, 0xe3e5, 0xdba5, 0xdadf, 0xe157, 0xf097, 0xd013, 0x1845, 0x4293, 0x320f, 0x3807, 0xe855, 0xf097, 0xe157, 
	0xc673, 0xc6b3, 0xc6b5, 0xceb5, 0xc6b5, 0xbe71, 0xad6b, 0xa465, 0xd321, 0xd0d5, 0x8911, 0x9155, 0xe1db, 0xc3a1, 0xa4e7, 0xa56b, 
	0xc631, 0xce73, 0xce73, 0xce73, 0xce73, 0xc631, 0xb5ad, 0xa56b, 0xbe73, 0xeceb, 0xfb23, 0xfbe7, 0xe631, 0xbe71, 0xa529, 0xa529, 
	0xc631, 0xc631, 0xc631, 0xc631, 0xce73, 0xce73, 0xbdef, 0xad6b, 0xd6b5, 0xdf79, 0xef7b, 0xf7ff, 0xe77b, 0xd6b5, 0xad6b, 0xa529, 
	0xce73, 0xc631, 0xc631, 0xce73, 0xd6b5, 0xd6b5, 0xc631, 0xb5ad, 0xd6b5, 0xdef7, 0xef7b, 0xffff, 0xef7b, 0xdef7, 0xc631, 0xa529, 
	0xd6b5, 0xc631, 0xc631, 0xce73, 0xd6b5, 0xdef7, 0xce73, 0xc631, 0xdef7, 0xe739, 0xef7b, 0xf7bd, 0xef7b, 0xe739, 0xce73, 0xad6b, 
	0xd6b5, 0xc631, 0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xce73, 0xce73, 0xdef7, 0xe739, 0xef7b, 0xf7bd, 0xef7b, 0xe739, 0xdef7, 0xc631, 
	0xce73, 0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xd6b5, 0xd6b5, 0xdef7, 0xe739, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xe739, 0xd6b5, 
	0xc631, 0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xd6b5, 0xd6b5, 0xdef7, 0xe739, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xe739, 
	0xc631, 0xce73, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xd6b5, 0xd6b5, 0xe739, 0xe739, 0xef7b, 0xffff, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 
	0xce73, 0xd6b5, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xd6b5, 0xdef7, 0xe739, 0xe739, 0xf7bd, 0xffff, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 
	0xd6b5, 0xd6b5, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 
	0xd6b5, 0xd6b5, 0xd6b5, 0xdef7, 0xdef7, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xef7b, 0xf7bd, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 
	0xd6b5, 0xd6b5, 0xd6b5, 0xdef7, 0xd6b5, 0xdef7, 0xe739, 0xe739, 0xef7b, 0xe739, 0xef7b, 0xf7bd, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 
	0xd6b5, 0xd6b5, 0xd6b5, 0xd6b5, 0xd6b5, 0xd6b5, 0xdef7, 0xe739, 0xe739, 0xe739, 0xef7b, 0xef7b, 0xf7bd, 0xef7b, 0xef7b, 0xef7b, 
};

