#include<ultra64.h>

extern Vtx ZO_Boss_Ironball02_v[];
extern Vtx ZO_Boss_Ironball02_vmcur[];
extern Tri ZO_Boss_Ironball02_tri[];
extern Mtx ZO_Boss_Ironball02_matrix[];

extern unsigned short ZO_BossTEX01_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 */


/* ======== DXFdata ======== */

Gfx ZO_Boss_Ironball02[]={

	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_BossTEX01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&ZO_Boss_Ironball02_v[0],32,0),
	gsSP2Triangles(0, 1, 2, 0, 1, 0, 3, 0),
	gsSP2Triangles(0, 4, 3, 0, 4, 0, 2, 0),
	gsSP2Triangles(5, 6, 7, 0, 6, 5, 8, 0),
	gsSP2Triangles(5, 9, 8, 0, 9, 5, 7, 0),
	gsSP2Triangles(10, 11, 12, 0, 11, 10, 13, 0),
	gsSP2Triangles(14, 11, 13, 0, 11, 14, 12, 0),
	gsSP2Triangles(15, 16, 17, 0, 16, 15, 18, 0),
	gsSP2Triangles(15, 19, 18, 0, 19, 15, 17, 0),
	gsSP2Triangles(20, 21, 22, 0, 22, 23, 20, 0),
	gsSP2Triangles(24, 22, 21, 0, 22, 24, 23, 0),
	gsSP2Triangles(21, 25, 24, 0, 23, 26, 20, 0),
	gsSP2Triangles(26, 25, 21, 0, 21, 20, 26, 0),
	gsSP2Triangles(27, 28, 29, 0, 28, 27, 30, 0),
	gsSP2Triangles(31, 28, 30, 0, 28, 31, 29, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 32 vertices */
Vtx ZO_Boss_Ironball02_v[]={
	{     0,   -68,     0,     0,   584,   751,   -65,   -74,   -66,   255},	/* 0 */
	{   -18,   -49,     0,     0,   462,   865,   -78,   -89,     0,   255},	/* 1 */
	{     0,   -49,   -18,     0,   698,   897,     0,   -89,   -79,   255},	/* 2 */
	{     0,   -49,    18,     0,   470,   605,     0,   -89,    78,   255},	/* 3 */
	{    18,   -49,     0,     0,   706,   637,    79,   -89,     0,   255},	/* 4 */
	{   -68,     0,     0,     0,   584,   751,  -110,    32,    31,   255},	/* 5 */
	{   -49,     0,    18,     0,   706,   637,   -89,     0,    78,   255},	/* 6 */
	{   -49,    18,     0,     0,   470,   605,   -89,    79,     0,   255},	/* 7 */
	{   -49,   -18,     0,     0,   698,   897,   -89,   -78,     0,   255},	/* 8 */
	{   -49,     0,   -18,     0,   462,   865,   -89,     0,   -79,   255},	/* 9 */
	{    49,     0,   -18,     0,   706,   637,    90,     0,   -79,   255},	/* 10 */
	{    68,     0,     0,     0,   584,   751,   111,    32,   -32,   255},	/* 11 */
	{    49,   -18,     0,     0,   698,   897,    90,   -78,     0,   255},	/* 12 */
	{    49,    18,     0,     0,   470,   605,    90,    79,     0,   255},	/* 13 */
	{    49,     0,    18,     0,   462,   865,    90,     0,    78,   255},	/* 14 */
	{     0,    68,     0,     0,   584,   751,    32,   111,   -32,   255},	/* 15 */
	{    18,    49,     0,     0,   706,   637,    79,    90,     0,   255},	/* 16 */
	{     0,    49,   -18,     0,   470,   605,     0,    90,   -79,   255},	/* 17 */
	{     0,    49,    18,     0,   698,   897,     0,    90,    78,   255},	/* 18 */
	{   -18,    49,     0,     0,   462,   865,   -78,    90,     0,   255},	/* 19 */
	{    -8,   -10,   -82,     0,   590,   878,   -87,   -61,   -53,   255},	/* 20 */
	{     0,     9,   -82,     0,   527,   678,   -39,    96,   -60,   255},	/* 21 */
	{     8,   -10,   -82,     0,   698,   778,    88,   -61,   -53,   255},	/* 22 */
	{     0,   -18,   -49,     0,   698,   897,     0,  -118,   -11,   255},	/* 23 */
	{    18,     0,   -49,     0,   706,   637,   115,    17,   -29,   255},	/* 24 */
	{     0,    18,   -49,     0,   470,   605,     0,   116,   -33,   255},	/* 25 */
	{   -18,     0,   -49,     0,   462,   865,  -114,    17,   -29,   255},	/* 26 */
	{    18,     0,    49,     0,   706,   637,    79,     0,    89,   255},	/* 27 */
	{     0,     0,    65,     0,   584,   751,   -65,   -65,    74,   255},	/* 28 */
	{     0,   -18,    49,     0,   698,   897,     0,   -78,    89,   255},	/* 29 */
	{     0,    18,    49,     0,   470,   605,     0,    79,    89,   255},	/* 30 */
	{   -18,     0,    49,     0,   462,   865,   -78,     0,    89,   255},	/* 31 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
