#include<ultra64.h>

extern Vtx MC_BossTAKO_Head01_v[];

extern unsigned char MC_BossDuct01_CI8_txt[];
extern unsigned char MC_BossFaceTX_CI8_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 */


/* ======== head01 ======== */

Gfx MC_BossTAKO_Head01[]={

	gsDPLoadTLUT_pal256(&MC_BossDuct01_CI8_txt[256]),
	gsDPLoadTextureBlock(MC_BossDuct01_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,16,16,0,G_TX_WRAP,G_TX_CLAMP,4,4,0,0),
	gsDPSetTextureLUT(G_TT_RGBA16),

	gsSPVertex(&MC_BossTAKO_Head01_v[0], 7, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 4, 0),
	gsSP1Triangle(0, 4, 5, 0),
	gsSP1Triangle(0, 2, 6, 0),

	gsDPLoadTLUT_pal256(&MC_BossFaceTX_CI8_txt[1024]),
	gsDPLoadTextureBlock(MC_BossFaceTX_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,32,32,0,G_TX_WRAP,G_TX_WRAP,5,5,0,0),

	gsSPVertex(&MC_BossTAKO_Head01_v[7], 16, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 0, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(3, 5, 4, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(8, 10, 6, 0),
	gsSP1Triangle(6, 11, 7, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(14, 15, 12, 0),
	gsSPVertex(&MC_BossTAKO_Head01_v[19], 12, 0),
	gsSP1Triangle(2, 4, 3, 0),
	gsSP1Triangle(0, 5, 1, 0),
	gsSP1Triangle(6, 10, 8, 0),
	gsSP1Triangle(7, 6, 8, 0),
	gsSP1Triangle(8, 9, 7, 0),
	gsSP1Triangle(9, 11, 7, 0),
	gsDPPipeSync(),
        gsDPSetTextureLUT(G_TT_NONE),
	gsSPEndDisplayList(),
}; /* head01 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 31 vertices */
Vtx MC_BossTAKO_Head01_v[]={
	{ 0,30,0,0, 0, 85, 38,114,0,255 },   /* v0 used p367/V1 4 times */
	{ -35,65,35,0, 716, 483, -87,71,39,255 },   /* v1 used p368/V2 2 times */
	{ 35,65,35,0, -716, 483, 100,66,3,255 },   /* v2 used p368/V3 2 times */
	{ 35,65,-35,0, -716, 483, 3,116,-30,255 },   /* v3 used p367/V2 2 times */
	{ -35,65,-35,0, 716, 483, -3,120,-4,255 },   /* v4 used p367/V3 2 times */
	{ -35,65,35,0, -716, 483, 85,85,0,255 },   /* v5 used p275/V3 2 times */
	{ 35,65,-35,0, 716, 483, 3,116,-30,255 },   /* v6 used p276/V3 2 times */
	{ -45,25,-95,0, 93, -85, -84,72,-45,255 },   /* v7 used p263/V1 6 times */
	{ -35,65,-35,0, 186, -768, -3,120,-4,255 },   /* v8 used p263/V2 2 times */
	{ 35,65,-35,0, 837, -768, 3,116,-30,255 },   /* v9 used p263/V3 4 times */
	{ 45,25,-95,0, 930, -85, 50,32,-104,255 },   /* v10 used p264/V3 6 times */
	{ -35,0,-85,0, 186, 341, -89,-57,-54,255 },   /* v11 used p268/V2 2 times */
	{ 35,0,-85,0, 837, 341, 104,-52,-28,255 },   /* v12 used p267/V2 2 times */
	{ 45,25,50,0, 930, -85, 0,-61,102,255 },   /* v13 used p270/V3 3 times */
	{ -35,65,35,0, 186, -768, -87,71,39,255 },   /* v14 used p260/V2 2 times */
	{ -45,25,50,0, 93, -85, -73,-40,84,255 },   /* v15 used p269/V1 3 times */
	{ -35,0,35,0, 186, 341, -86,-64,50,255 },   /* v16 used p269/V2 2 times */
	{ 35,0,35,0, 837, 341, 58,-69,77,255 },   /* v17 used p269/V3 4 times */
	{ 35,65,35,0, 837, -768, 100,66,3,255 },   /* v18 used p259/V2 2 times */
	{ 45,25,-95,0, 1442, 938, 50,32,-104,255 },   /* v19 used p272/V3 3 times */
	{ 35,65,35,0, 232, 256, 100,66,3,255 },   /* v20 used p261/V3 4 times */
	{ 45,25,50,0, 93, 938, 106,10,54,255 },   /* v21 used p271/V1 3 times */
	{ 35,0,-85,0, 1349, 1365, 104,-52,-28,255 },   /* v22 used p271/V3 4 times */
	{ 35,0,35,0, 232, 1365, 58,-69,77,255 },   /* v23 used p271/V2 2 times */
	{ 35,65,-35,0, 884, 256, 3,116,-30,255 },   /* v24 used p261/V2 2 times */
	{ -35,0,-85,0, 1349, 1365, -89,-57,-54,255 },   /* v25 used p361/V2 4 times */
	{ -45,25,-95,0, 1442, 938, -84,72,-45,255 },   /* v26 used p363/V3 6 times */
	{ -45,25,50,0, 93, 938, -115,29,0,255 },   /* v27 used p363/V1 6 times */
	{ -35,65,35,0, 232, 256, -87,71,39,255 },   /* v28 used p363/V2 4 times */
	{ -35,0,35,0, 232, 1365, -86,-64,50,255 },   /* v29 used p360/V2 2 times */
	{ -35,65,-35,0, 884, 256, -3,120,-4,255 },   /* v30 used p362/V2 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
