#include<ultra64.h>

extern Vtx ManLhand_3b_v[];
extern Vtx ManLhand_3b_vmcur[];
extern Tri ManLhand_3b_tri[];
extern Lights1 ManLhand_3b_material[];
extern Mtx ManLhand_3b_matrix[];

extern unsigned short Sshoes_bottom_txt[];
extern unsigned short St3_hand_txt[];
extern unsigned short St3best_b_txt[];
extern unsigned short St3best_f_txt[];
extern unsigned short St3best_s_txt[];
extern unsigned short St3best_t_txt[];
extern unsigned short St3farm_txt[];
extern unsigned short St3hara_txt[];
extern unsigned short St3met_b_txt[];
extern unsigned short St3met_f_txt[];
extern unsigned short St3met_gl_txt[];
extern unsigned short St3met_s_txt[];
extern unsigned short St3neck_txt[];
extern unsigned short St3shin_txt[];
extern unsigned short St3shoe_txt[];
extern unsigned short St3shoe_b_txt[];
extern unsigned short St3thigh_b_txt[];
extern unsigned short St3thigh_f_txt[];
extern unsigned short St3uarm_b_txt[];
extern unsigned short St3uarm_f_txt[];
extern unsigned short St3waist_b_txt[];
extern unsigned short St3waist_f_txt[];
extern unsigned short St3waist_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 */


/* ======== g2 ======== */


/* ======== g1 ======== */


/* ======== db ======== */

Gfx ManLhand_3b_model[]={

	gsSPTexture(65535, 65535,0, 0, 1),
	gsDPPipeSync(),
	gsDPSetCombineMode(G_CC_MODULATERGBDECALA,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(St3_hand_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ManLhand_3b_v[0], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(2, 3, 0, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(6, 7, 4, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx ManLhand_3b_modelT[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 14 vertices */
Vtx ManLhand_3b_v[]={
	{ 25,7,-11,0, -7, 256,  81,0,-88,255 },   /* v0 p18/V3 used 2 times */ 
	{ 32,6,50,0, 15, 0,  91,1,79,255 },   /* v1 p13/V2 used 1 times */ 
	{ -26,-23,58,0, 265, 0,  -27,-112,28,255 },   /* v2 p18/V1 used 2 times */ 
	{ -22,7,-9,0, 150, 275,  -91,1,-76,255 },   /* v3 p18/V2 used 1 times */ 
	{ -26,35,57,0, 0, 292,  -26,113,30,255 },   /* v4 p17/V3 used 2 times */ 
	{ 32,6,50,0, 249, 292,  91,1,79,255 },   /* v5 p14/V2 used 1 times */ 
	{ 25,7,-11,0, 249, 590,  81,0,-88,255 },   /* v6 p17/V1 used 2 times */ 
	{ -22,7,-9,0, 90, 606,  -91,1,-76,255 },   /* v7 p17/V2 used 1 times */ 
	{ -22,7,-9,0, 401, 628,  -91,1,-76,255 },   /* v8 p16/V1 used 1 times */ 
	{ -26,-23,58,0, 255, 269,  -27,-112,28,255 },   /* v9 p16/V2 used 1 times */ 
	{ -26,35,57,0, 527, 269,  -26,113,30,255 },   /* v10 p16/V3 used 1 times */ 
	{ -26,-23,58,0, 270, 59,  -27,-112,28,255 },   /* v11 p15/V1 used 1 times */ 
	{ 32,6,50,0, 535, 160,  91,1,79,255 },   /* v12 p15/V2 used 1 times */ 
	{ -26,35,57,0, 276, 263,  -26,113,30,255 },   /* v13 p15/V3 used 1 times */ 
};


/*   0 vertices */
/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short St3_hand_txt[] = {
	0x5b49, 0x6493, 0x7b8b, 0x6495, 0x83c7, 0x8ccf, 0x5b07, 0x4459, 0x530b, 0x5c51, 0x5307, 0x4c51, 0x5307, 0x5411, 0x5ac7, 0x549d, 
	0x5307, 0x6495, 0x6b89, 0x6497, 0xb483, 0xfecf, 0xad13, 0x1b91, 0x3247, 0x3b0d, 0x3a07, 0x434f, 0x3a05, 0x4b11, 0x31c5, 0x22d1, 
	0x3a87, 0x5413, 0x5307, 0x5413, 0x72c1, 0xe583, 0xfe91, 0x844d, 0x29c5, 0x2a8b, 0x31c7, 0x328b, 0x2985, 0x2a09, 0x2985, 0x1a4f, 
	0x2103, 0x1945, 0x2103, 0x21c9, 0x1041, 0x6281, 0xf645, 0xedcd, 0x3a05, 0x32cb, 0x3205, 0x3acd, 0x31c5, 0x2249, 0x2983, 0x12cf, 
	0x3313, 0x989, 0x41, 0x1881, 0x7b05, 0xc505, 0xfe01, 0xed81, 0x3a45, 0x4391, 0x3a45, 0x3b8d, 0x52c9, 0x4bd1, 0x4ac5, 0x2c57, 
	0x5c9f, 0x1b95, 0x2a89, 0xcd49, 0xfecb, 0xedc5, 0xd543, 0xc4c1, 0x5b09, 0x6cd5, 0x4b07, 0x3c4f, 0x6349, 0x5c93, 0x6347, 0x4cdd, 
	0x3c5b, 0x2bd5, 0xcd8b, 0xfec9, 0xdd43, 0xb441, 0xac01, 0xbc41, 0x6349, 0x5c93, 0x5307, 0x5c93, 0x6347, 0x6493, 0x5b05, 0x3499, 
	0x2c19, 0x540f, 0xf645, 0xe585, 0xbcc5, 0xb483, 0xbcc5, 0xbc83, 0x5b47, 0x5453, 0x6349, 0x5c93, 0x5b49, 0x6c95, 0x6b8b, 0x449b, 
	0x2457, 0x6347, 0x648f, 0x6b87, 0x6491, 0x4ac7, 0x5c91, 0x2ac9, 0x3351, 0x445b, 0x2bd5, 0x441b, 0x449b, 0x3c9b, 0x3417, 0x3c59, 
	0x2c59, 0x6347, 0x43cf, 0x63c7, 0x5451, 0x5307, 0x3c51, 0x32cd, 0x1a8f, 0x441b, 0x3459, 0x1311, 0x33d7, 0xb51, 0x34f, 0x3c19, 
	0x549f, 0x3bd3, 0x2bd5, 0x5c99, 0x4459, 0x4415, 0x3c5b, 0x7459, 0x8c05, 0x3353, 0x2419, 0x147, 0xc3, 0x12cf, 0x3c19, 0x64e1, 
	0x445d, 0x445b, 0x445d, 0x6ce3, 0x7d25, 0x549f, 0x2c17, 0x4c5b, 0xee05, 0xcd89, 0x224b, 0x1, 0x947, 0x3417, 0x2c17, 0x341b, 
	0x341b, 0x4c5f, 0x3c5b, 0x6ce3, 0x6ce3, 0x5c9f, 0x549f, 0x2bd7, 0xb4c1, 0xfec7, 0xb443, 0x1, 0x105, 0x2b99, 0x3c5f, 0x5bcd, 
	0xa507, 0x748f, 0x4417, 0x341b, 0x2c1b, 0x2c19, 0x549f, 0x33d9, 0x8b81, 0xfe01, 0xfe45, 0x93c3, 0x5a01, 0x73c9, 0x8c89, 0xedc1, 
	0xfe41, 0xfe41, 0xddc1, 0xad47, 0x748d, 0x238f, 0x2c17, 0x33d9, 0x6281, 0xdd41, 0xfe43, 0xfe85, 0xf605, 0xfe41, 0xfe41, 0xfe43, 
	0xfe41, 0xfe41, 0xfe41, 0xfe81, 0xfe41, 0xe5c1, 0x23d3, 0x23d7, 0x3181, 0xa3c1, 0xedc1, 0xfe41, 0xfe41, 0xfe41, 0xfe41, 0xfe41, 
};

