#include<ultra64.h>

extern Vtx SN_firebird_body_v[];

extern unsigned short ZO_firebird_TX_01_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 SN_firebird_body[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,0,G_TX_CLAMP,5,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(ZO_firebird_TX_01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),
	gsSPVertex(&SN_firebird_body_v[0], 15, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSPVertex(&SN_firebird_body_v[15], 5, 0),
	gsSPVertex(&SN_firebird_body_v[22], 10, 5),
	gsSP1Triangle(0, 5, 6, 0),
	gsSP1Triangle(1, 7, 8, 0),
	gsSP1Triangle(2, 9, 10, 0),
	gsSP1Triangle(3, 11, 12, 0),
	gsSP1Triangle(4, 13, 14, 0),
	gsSPVertex(&SN_firebird_body_v[20], 2, 0),
	gsSPVertex(&SN_firebird_body_v[32], 4, 2),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(1, 4, 5, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 36 vertices */
Vtx SN_firebird_body_v[]={
	{ 31,-5,-11,0, 100, 283, 50,-23,105,255 },   /* v0 used p77/V1 2 times */
	{ 90,17,-34,0, 222, 758, 50,-23,105,255 },   /* v1 used p77/V2 2 times */
	{ 19,20,0,0, 946, 374, 10,55,105,255 },   /* v2 used p77/V3 2 times */
	{ 19,20,0,0, -68, -99, 10,55,-106,255 },   /* v3 used p78/V1 2 times */
	{ 60,0,0,0, 532, 721, 29,59,-100,255 },   /* v4 used p78/V2 2 times */
	{ 31,-5,-11,0, 774, 378, -3,-43,-111,255 },   /* v5 used p78/V3 2 times */
	{ -42,0,0,0, 1569, -98, -30,14,-115,255 },   /* v6 used p81/V1 2 times */
	{ 31,-5,-11,0, 724, 577, -3,-43,-111,255 },   /* v7 used p81/V2 2 times */
	{ 2,-20,0,0, 720, 362, 0,-73,-95,255 },   /* v8 used p81/V3 2 times */
	{ 31,-5,-11,0, 42, 408, -3,-43,-111,255 },   /* v9 used p82/V1 2 times */
	{ -42,0,0,0, 571, 192, -30,14,-115,255 },   /* v10 used p82/V2 2 times */
	{ 90,17,-34,0, 257, 822, -32,34,-110,255 },   /* v11 used p82/V3 2 times */
	{ 60,0,0,0, 409, 443, 39,-112,0,255 },   /* v12 used p83/V1 2 times */
	{ 2,-20,0,0, 1278, 206, 0,-73,-95,255 },   /* v13 used p83/V2 2 times */
	{ 31,-5,-11,0, 779, 514, -3,-43,-111,255 },   /* v14 used p83/V3 2 times */
	{ -42,0,0,0, 546, 100, -30,14,-115,255 },   /* v15 used p76/V1 2 times */
	{ 31,-5,11,0, 779, 514, -3,-43,110,255 },   /* v16 used p45/V1 2 times */
	{ 2,-20,0,0, 720, 362, 0,-73,94,255 },   /* v17 used p46/V1 2 times */
	{ 31,-5,11,0, 774, 378, -3,-43,110,255 },   /* v18 used p47/V1 2 times */
	{ 19,20,0,0, 946, 374, 10,55,-106,255 },   /* v19 used p50/V1 2 times */
	{ 90,17,34,0, 786, 945, -32,34,109,255 },   /* v20 used p54/V1 2 times */
	{ 90,17,34,0, 257, 822, -32,34,109,255 },   /* v21 used p55/V1 2 times */
	{ 19,20,0,0, 995, 380, 10,55,-106,255 },   /* v22 used p76/V2 2 times */
	{ 90,17,-34,0, 786, 945, -32,34,-110,255 },   /* v23 used p76/V3 2 times */
	{ 2,-20,0,0, 1278, 206, 0,-73,94,255 },   /* v24 used p45/V2 2 times */
	{ 60,0,0,0, 409, 443, 39,-112,0,255 },   /* v25 used p45/V3 2 times */
	{ 31,-5,11,0, 724, 577, -3,-43,110,255 },   /* v26 used p46/V2 2 times */
	{ -42,0,0,0, 1569, -98, -30,14,114,255 },   /* v27 used p46/V3 2 times */
	{ 60,0,0,0, 532, 721, 29,59,99,255 },   /* v28 used p47/V2 2 times */
	{ 19,20,0,0, -68, -99, 10,55,105,255 },   /* v29 used p47/V3 2 times */
	{ 90,17,34,0, 222, 758, 50,-23,-106,255 },   /* v30 used p50/V2 2 times */
	{ 31,-5,11,0, 100, 283, 50,-23,-106,255 },   /* v31 used p50/V3 2 times */
	{ 19,20,0,0, 995, 380, 10,55,105,255 },   /* v32 used p54/V2 2 times */
	{ -42,0,0,0, 546, 100, -30,14,114,255 },   /* v33 used p54/V3 2 times */
	{ -42,0,0,0, 571, 192, -30,14,114,255 },   /* v34 used p55/V2 2 times */
	{ 31,-5,11,0, 42, 408, -3,-43,110,255 },   /* v35 used p55/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
