#include<ultra64.h>

extern Vtx ZO_Boss_Balcan_v[];

extern unsigned char ZO_BossTX13_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 */


/* ======== Default ======== */

Gfx ZO_Boss_Balcan[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_IA,G_IM_SIZ_8b,16,16,0,0,G_TX_CLAMP,4,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(ZO_BossTX13_txt,G_IM_FMT_IA,G_IM_SIZ_8b,16,16,0,7),

	gsSPVertex(&ZO_Boss_Balcan_v[0], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* Default */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 3 vertices */
Vtx ZO_Boss_Balcan_v[]={
	{ -22,-12,0,0, -146, 472, 0,0,119,255 },   /* v0 used p1797/V1 2 times */
	{ 22,-12,0,0, 658, 472, 0,0,119,255 },   /* v1 used p1797/V2 2 times */
	{ 0,26,0,0, 256, -275, 0,0,119,255 },   /* v2 used p1797/V3 2 times */
};


/*   0 vertices */
/*   1 Materials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