#include<ultra64.h>

extern Vtx AC_ankou_chochin_v[];

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_chochin[]={

	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_chochin_v[0], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(4, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSPVertex(&AC_ankou_chochin_v[14], 4, 0),
	gsSP1Triangle(0, 2, 1, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 18 vertices */
Vtx AC_ankou_chochin_v[]={
	{ 90,-23,0,0, 1056, 413, 3,-61,102,255 },   /* v0 used p293/V1 2 times */
	{ 82,25,29,0, 1116, 844, -3,-53,106,255 },   /* v1 used p293/V2 2 times */
	{ 6,-27,0,0, 490, 474, -3,-53,106,255 },   /* v2 used p293/V3 2 times */
	{ 16,8,13,0, 632, 738, -59,-19,101,255 },   /* v3 used p292/V2 2 times */
	{ 6,-27,0,0, 490, 474, -59,-19,-102,255 },   /* v4 used p291/V1 2 times */
	{ 16,8,-13,0, 632, 738, -18,-35,-113,255 },   /* v5 used p291/V2 2 times */
	{ 82,25,-29,0, 1116, 844, -3,-53,-107,255 },   /* v6 used p291/V3 2 times */
	{ 90,-23,0,0, 1056, 413, 3,-61,-103,255 },   /* v7 used p290/V3 2 times */
	{ 82,25,-29,0, -284, 692, 118,20,0,255 },   /* v8 used p172/V1 2 times */
	{ 82,25,29,0, 308, 697, 118,20,0,255 },   /* v9 used p172/V2 2 times */
	{ 90,-23,0,0, -93, 412, 118,20,0,255 },   /* v10 used p172/V3 2 times */
	{ 16,8,-13,0, 938, 363, -67,99,0,255 },   /* v11 used p174/V1 2 times */
	{ 6,-27,0,0, 875, 118, -59,-19,-102,255 },   /* v12 used p174/V2 2 times */
	{ 16,8,13,0, 764, 402, -59,-19,101,255 },   /* v13 used p174/V3 2 times */
	{ 16,8,13,0, -394, 720, -29,116,0,255 },   /* v14 used p175/V3 4 times */
	{ 82,25,-29,0, 178, 337, -29,116,0,255 },   /* v15 used p175/V1 4 times */
	{ 82,25,29,0, 183, 847, -29,116,0,255 },   /* v16 used p179/V2 2 times */
	{ 16,8,-13,0, -396, 496, -67,99,0,255 },   /* v17 used p175/V2 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
