#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],32,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
	gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
	gsSP2Triangles(18, 19, 12, 0, 20, 21, 22, 0),
	gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
	gsSP1Triangle(29, 30, 31, 0),
	gsSPVertex(&SN_firebird_body_v[32],3,0),
	gsSP1Triangle(0, 1, 2, 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},	/* 0 */
	{    90,    17,   -34,     0,   222,   758,    50,   -23,   105,   255},	/* 1 */
	{    19,    20,     0,     0,   946,   374,    10,    55,   105,   255},	/* 2 */
	{    19,    20,     0,     0,   -68,   -99,    10,    55,  -106,   255},	/* 3 */
	{    60,     0,     0,     0,   532,   721,    29,    59,  -100,   255},	/* 4 */
	{    31,    -5,   -11,     0,   774,   378,    -3,   -43,  -111,   255},	/* 5 */
	{   -42,     0,     0,     0,  1569,   -98,   -30,    14,  -115,   255},	/* 6 */
	{    31,    -5,   -11,     0,   724,   577,    -3,   -43,  -111,   255},	/* 7 */
	{     2,   -20,     0,     0,   720,   362,     0,   -73,   -95,   255},	/* 8 */
	{    31,    -5,   -11,     0,    42,   408,    -3,   -43,  -111,   255},	/* 9 */
	{   -42,     0,     0,     0,   571,   192,   -30,    14,  -115,   255},	/* 10 */
	{    90,    17,   -34,     0,   257,   822,   -32,    34,  -110,   255},	/* 11 */
	{    60,     0,     0,     0,   409,   443,    39,  -112,     0,   255},	/* 12 */
	{     2,   -20,     0,     0,  1278,   206,     0,   -73,   -95,   255},	/* 13 */
	{    31,    -5,   -11,     0,   779,   514,    -3,   -43,  -111,   255},	/* 14 */
	{   -42,     0,     0,     0,   546,   100,   -30,    14,  -115,   255},	/* 15 */
	{    19,    20,     0,     0,   995,   380,    10,    55,  -106,   255},	/* 16 */
	{    90,    17,   -34,     0,   786,   945,   -32,    34,  -110,   255},	/* 17 */
	{    31,    -5,    11,     0,   779,   514,    -3,   -43,   110,   255},	/* 18 */
	{     2,   -20,     0,     0,  1278,   206,     0,   -73,    94,   255},	/* 19 */
	{     2,   -20,     0,     0,   720,   362,     0,   -73,    94,   255},	/* 20 */
	{    31,    -5,    11,     0,   724,   577,    -3,   -43,   110,   255},	/* 21 */
	{   -42,     0,     0,     0,  1569,   -98,   -30,    14,   114,   255},	/* 22 */
	{    31,    -5,    11,     0,   774,   378,    -3,   -43,   110,   255},	/* 23 */
	{    60,     0,     0,     0,   532,   721,    29,    59,    99,   255},	/* 24 */
	{    19,    20,     0,     0,   -68,   -99,    10,    55,   105,   255},	/* 25 */
	{    19,    20,     0,     0,   946,   374,    10,    55,  -106,   255},	/* 26 */
	{    90,    17,    34,     0,   222,   758,    50,   -23,  -106,   255},	/* 27 */
	{    31,    -5,    11,     0,   100,   283,    50,   -23,  -106,   255},	/* 28 */
	{    90,    17,    34,     0,   786,   945,   -32,    34,   109,   255},	/* 29 */
	{    19,    20,     0,     0,   995,   380,    10,    55,   105,   255},	/* 30 */
	{   -42,     0,     0,     0,   546,   100,   -30,    14,   114,   255},	/* 31 */
	{    90,    17,    34,     0,   257,   822,   -32,    34,   109,   255},	/* 32 */
	{   -42,     0,     0,     0,   571,   192,   -30,    14,   114,   255},	/* 33 */
	{    31,    -5,    11,     0,    42,   408,    -3,   -43,   110,   255},	/* 34 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
