#include<ultra64.h>

extern Vtx AC_ankou_tail_v[];

extern unsigned short AC_ankou_TX_002_txt[];
extern unsigned short AC_ankou_TX_06_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 AC_ankou_tail[]={

	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(AC_ankou_TX_06_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AC_ankou_tail_v[0], 12, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),

	gs_Nin_LoadTextureImage(AC_ankou_TX_002_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AC_ankou_tail_v[12], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 4, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSPVertex(&AC_ankou_tail_v[26], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 29 vertices */
Vtx AC_ankou_tail_v[]={
	{ 71,25,0,0, 511, -41, 72,96,0,255 },   /* v0 used p125/V1 2 times */
	{ 71,-34,26,0, 0, 1024, 88,-32,73,255 },   /* v1 used p125/V2 2 times */
	{ 71,-34,-26,0, 1023, 1024, 49,-109,0,255 },   /* v2 used p125/V3 2 times */
	{ -55,0,0,0, 411, 444, -45,53,-97,255 },   /* v3 used p121/V1 2 times */
	{ 2,50,0,0, 0, 1023, -10,57,-105,255 },   /* v4 used p121/V2 2 times */
	{ 2,-45,-51,0, 1023, 1023, 0,55,-107,255 },   /* v5 used p121/V3 2 times */
	{ -55,0,0,0, 512, 303, -74,-92,0,255 },   /* v6 used p122/V1 2 times */
	{ 2,-45,-51,0, 0, 1024, -30,-115,0,255 },   /* v7 used p122/V2 2 times */
	{ 2,-45,51,0, 1024, 1024, -20,-117,0,255 },   /* v8 used p122/V3 2 times */
	{ 2,-45,51,0, 0, 1024, 0,55,106,255 },   /* v9 used p123/V1 2 times */
	{ 2,50,0,0, 1024, 1024, -10,57,104,255 },   /* v10 used p123/V2 2 times */
	{ -55,0,0,0, 612, 444, -45,53,96,255 },   /* v11 used p123/V3 2 times */
	{ 2,-45,51,0, 6615, 9271, 0,55,106,255 },   /* v12 used p126/V1 2 times */
	{ 71,-34,26,0, 7835, 10801, 88,-32,73,255 },   /* v13 used p126/V2 2 times */
	{ 71,25,0,0, 9386, 10159, 72,96,0,255 },   /* v14 used p126/V3 2 times */
	{ 2,-45,-51,0, 9306, 9271, -30,-115,0,255 },   /* v15 used p119/V2 2 times */
	{ 71,-34,-26,0, 8633, 7434, 49,-109,0,255 },   /* v16 used p119/V3 2 times */
	{ 71,-34,-26,0, 7983, 8318, 49,-109,0,255 },   /* v17 used p127/V1 2 times */
	{ 71,-34,26,0, 6637, 8318, 88,-32,73,255 },   /* v18 used p127/V2 2 times */
	{ 2,-45,51,0, 5964, 10155, -20,-117,0,255 },   /* v19 used p127/V3 2 times */
	{ 71,25,0,0, 7680, 7300, 72,96,0,255 },   /* v20 used p227/V1 2 times */
	{ 71,-34,-26,0, 8159, 8909, 32,46,-106,255 },   /* v21 used p227/V2 2 times */
	{ 2,-45,-51,0, 10116, 8892, 0,55,-107,255 },   /* v22 used p227/V3 2 times */
	{ 2,-45,-51,0, 8744, 9271, 0,55,-107,255 },   /* v23 used p228/V1 2 times */
	{ 2,50,0,0, 7378, 11739, -10,57,-105,255 },   /* v24 used p228/V2 2 times */
	{ 71,25,0,0, 9260, 12136, 72,96,0,255 },   /* v25 used p228/V3 2 times */
	{ 71,25,0,0, 7679, 7300, 72,96,0,255 },   /* v26 used p124/V1 2 times */
	{ 2,50,0,0, 7680, 9224, -10,57,104,255 },   /* v27 used p124/V2 2 times */
	{ 2,-45,51,0, 10376, 8396, 0,55,106,255 },   /* v28 used p124/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
