#include<ultra64.h>

extern Vtx ZO_Boss_Fscrew02_v[];
extern Vtx ZO_Boss_Fscrew02_vmcur[];
extern Tri ZO_Boss_Fscrew02_tri[];
extern Mtx ZO_Boss_Fscrew02_matrix[];

extern unsigned short ZO_BossTX04_txt[];
extern unsigned short ZO_BossTX07_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 */


/* ======== Fscrew ======== */

Gfx ZO_Boss_Fscrew02_[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,0,G_TX_CLAMP,4,0,G_TX_WRAP,4,0),
	gs_Nin_LoadTextureImage(ZO_BossTX04_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),


	gsSPVertex(&ZO_Boss_Fscrew02_v[0],4,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,0,G_TX_WRAP,4,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(ZO_BossTX07_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&ZO_Boss_Fscrew02_v[4],4,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSPEndDisplayList(),
}; /* Fscrew */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 8 vertices */
Vtx ZO_Boss_Fscrew02_v[]={
	{   155,    11,   -14,     0,   132,   180,     0,   120,     0,   255},	/* 0 */
	{   155,   -14,     0,     0,   132,    71,     0,   -59,  -104,   255},	/* 1 */
	{  -189,     0,     0,     0,  1986,   133,    -3,   120,     0,   255},	/* 2 */
	{   155,    11,    14,     0,   132,   180,     0,   120,     0,   255},	/* 3 */
	{   155,    11,    14,     0,   239,   294,     0,   120,     0,   255},	/* 4 */
	{   155,   -14,     0,     0,   195,   181,     0,   -59,  -104,   255},	/* 5 */
	{   180,     0,     0,     0,   190,   247,    47,   111,     0,   255},	/* 6 */
	{   155,    11,   -14,     0,   133,   298,     0,   120,     0,   255},	/* 7 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
