#include<ultra64.h>

extern Vtx ZO_Boss_Fscrew01_v[];
extern Vtx ZO_Boss_Fscrew01_vmcur[];
extern Tri ZO_Boss_Fscrew01_tri[];
extern Mtx ZO_Boss_Fscrew01_matrix[];

extern unsigned short ZO_BossTX02_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_Fscrew01_[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,0,G_TX_WRAP,5,0,G_TX_WRAP,5,0),
	gs_Nin_LoadTextureImage(ZO_BossTX02_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&ZO_Boss_Fscrew01_v[0],12,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 2, 3, 0),
	gsSP2Triangles(4, 5, 6, 0, 4, 7, 5, 0),
	gsSP2Triangles(8, 9, 10, 0, 8, 11, 9, 0),
	gsSPEndDisplayList(),
}; /* Fscrew */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */
Vtx ZO_Boss_Fscrew01_v[]={
	{   155,    34,   -21,     0,   866,   299,    98,     0,    69,   255},	/* 0 */
	{   140,    51,     0,     0,   833,   212,    98,     0,    69,   255},	/* 1 */
	{   126,    34,    21,     0,   758,   262,    98,     0,    69,   255},	/* 2 */
	{   140,     0,     0,     0,   769,   418,   120,     0,     0,   255},	/* 3 */
	{   155,     1,    40,     0,   865,   250,    98,   -59,   -35,   255},	/* 4 */
	{   126,   -35,    19,     0,   758,   317,    98,   -59,   -35,   255},	/* 5 */
	{   140,     0,     0,     0,   838,   410,   120,     0,     0,   255},	/* 6 */
	{   140,   -26,    44,     0,   798,   220,    98,   -59,   -35,   255},	/* 7 */
	{   155,   -35,   -19,     0,   731,   253,    98,    60,   -35,   255},	/* 8 */
	{   126,     1,   -40,     0,   515,   261,    98,    60,   -35,   255},	/* 9 */
	{   140,     0,     0,     0,   641,   490,   120,     0,     0,   255},	/* 10 */
	{   140,   -26,   -44,     0,   614,   140,    98,    60,   -35,   255},	/* 11 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
