#include<ultra64.h>

extern Vtx MC_BossTRAIN_Antena_v[];

extern unsigned char MC_BossFaceTX_CI8_txt[];
extern unsigned char MC_BossTX01_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 */


/* ======== o22 ======== */

Gfx MC_BossTRAIN_Antena[]={

	gsDPLoadTLUT_pal256(&MC_BossTX01_CI8_txt[1024]),
	gsDPLoadTextureBlock(MC_BossTX01_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,32,32,0,G_TX_WRAP,G_TX_WRAP,5,5,0,0),
	gsDPSetTextureLUT(G_TT_RGBA16),

	gsSPVertex(&MC_BossTRAIN_Antena_v[0], 9, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(3, 2, 4, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSP1Triangle(4, 8, 5, 0),
	gsSP1Triangle(5, 8, 6, 0),
	gsSP1Triangle(4, 5, 3, 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_BossTRAIN_Antena_v[9], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(4, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 8, 10, 0),
	gsSP1Triangle(9, 12, 10, 0),
	gsSP1Triangle(13, 11, 10, 0),
	gsSP1Triangle(12, 13, 10, 0),
	gsSPVertex(&MC_BossTRAIN_Antena_v[23], 8, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(0, 3, 4, 0),
	gsSP1Triangle(1, 5, 6, 0),
	gsSP1Triangle(1, 6, 7, 0),
	gsDPPipeSync(),
        gsDPSetTextureLUT(G_TT_NONE),
	gsSPEndDisplayList(),
}; /* o22 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 31 vertices */
Vtx MC_BossTRAIN_Antena_v[]={
	{ -20,140,-20,0, 682, 1023, -110,44,-12,255 },   /* v0 used p812/V1 4 times */
	{ -30,110,-50,0, 512, 744, -89,69,-39,255 },   /* v1 used p812/V2 2 times */
	{ -60,110,20,0, 0, 744, -80,87,14,255 },   /* v2 used p812/V3 3 times */
	{ -20,140,20,0, 682, 1023, -19,54,104,255 },   /* v3 used p810/V1 6 times */
	{ 0,110,70,0, 1024, 744, 0,94,74,255 },   /* v4 used p810/V3 6 times */
	{ 20,140,20,0, 1365, 1023, 105,57,9,255 },   /* v5 used p819/V1 4 times */
	{ 30,110,-50,0, 1536, 744, 85,82,-23,255 },   /* v6 used p819/V2 2 times */
	{ 20,140,-20,0, 1365, 1023, 119,13,0,255 },   /* v7 used p819/V3 2 times */
	{ 60,110,20,0, 2048, 744, 71,95,17,255 },   /* v8 used p817/V2 4 times */
	{ -20,140,20,0, 409, 682, -19,54,104,255 },   /* v9 used p823/V1 4 times */
	{ 20,140,20,0, 614, 682, 0,58,104,255 },   /* v10 used p823/V2 2 times */
	{ 20,200,20,0, 614, 390, 0,0,119,255 },   /* v11 used p823/V3 4 times */
	{ -20,200,20,0, 409, 390, 0,0,119,255 },   /* v12 used p824/V3 2 times */
	{ 20,200,20,0, -658, 1706, 0,120,0,255 },   /* v13 used p822/V1 2 times */
	{ 20,200,-20,0, -365, 1706, 0,120,0,255 },   /* v14 used p821/V2 2 times */
	{ -20,200,-20,0, -365, 1365, 0,120,0,255 },   /* v15 used p822/V2 2 times */
	{ -20,200,20,0, -658, 1365, 0,120,0,255 },   /* v16 used p822/V3 2 times */
	{ -60,-20,20,0, 434, 651, -61,-100,15,255 },   /* v17 used p820/V1 2 times */
	{ -30,-20,-50,0, 912, 651, -41,-98,-54,255 },   /* v18 used p820/V2 2 times */
	{ 0,-60,0,0, 546, 1024, 0,-119,0,255 },   /* v19 used p820/V3 5 times */
	{ 0,-20,70,0, 93, 651, 0,-103,59,255 },   /* v20 used p809/V1 4 times */
	{ 30,-20,-50,0, 912, 651, 42,-98,-54,255 },   /* v21 used p814/V1 4 times */
	{ 60,-20,20,0, 434, 651, 62,-100,15,255 },   /* v22 used p814/V2 2 times */
	{ 20,140,20,0, 384, 682, 105,57,9,255 },   /* v23 used p828/V1 2 times */
	{ -20,140,-20,0, 640, 682, -110,44,-12,255 },   /* v24 used p826/V1 2 times */
	{ 20,140,-20,0, 640, 682, 119,13,0,255 },   /* v25 used p827/V2 2 times */
	{ 20,200,-20,0, 640, 390, 120,0,0,255 },   /* v26 used p828/V2 2 times */
	{ 20,200,20,0, 384, 390, 120,0,0,255 },   /* v27 used p828/V3 2 times */
	{ -20,140,20,0, 384, 682, -109,49,0,255 },   /* v28 used p825/V2 2 times */
	{ -20,200,20,0, 384, 390, -119,0,0,255 },   /* v29 used p826/V2 2 times */
	{ -20,200,-20,0, 640, 390, -119,0,0,255 },   /* v30 used p826/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
