#include<ultra64.h>

extern Vtx MC_BossHARDLE_Bar_v[];

extern unsigned char MC_FrashTX01_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,MC_Jaberinx1/MC_Jaberin.c MC_BossHARDLE_Barx1/MC_BossHARDLE_Bar.c
0,SHADE,0,0,0,0,SHADE

/* main display list */


/* ======== o3 ======== */

Gfx MC_BossHARDLE_Bar[]={

	gsDPLoadTextureBlock(MC_FrashTX01_CI8_txt,G_IM_FMT_IA,G_IM_SIZ_8b,16,8,0,G_TX_MIRROR,G_TX_MIRROR,4,3,0,0),

	gsSPVertex(&MC_BossHARDLE_Bar_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* o3 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 4 vertices */
Vtx MC_BossHARDLE_Bar_v[]={
	{ -30,25,0,0, 16, 23, 0,0,119,255 },   /* v0 used p25/V1 4 times */
	{ -30,5,0,0, 16, 488, 0,0,119,255 },   /* v1 used p25/V2 2 times */
	{ 30,5,0,0, 1007, 488, 0,0,119,255 },   /* v2 used p25/V3 4 times */
	{ 30,25,0,0, 1007, 23, 0,0,119,255 },   /* v3 used p26/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 16 x 8  G_IM_SIZ_8b  G_IM_FMT_IA    */
unsigned char MC_FrashTX01_CI8_txt[] = {
	0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 
	0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf0, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 0xf1, 
	0xf0, 0xf0, 0xf0, 0xf1, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 0xf2, 
	0xf0, 0xf0, 0xf1, 0xe3, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 0xd4, 
	0xf0, 0xf0, 0xd3, 0xc5, 0xb7, 0xa7, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 0xa8, 
	0xf0, 0xd1, 0xb5, 0x87, 0x7a, 0x6a, 0x6b, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 0x5c, 
	0xf0, 0xd2, 0x96, 0x5a, 0x3d, 0x2e, 0x2f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 
	0xf0, 0xd2, 0x67, 0x2b, 0xe, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 0xf, 
};

