#include<ultra64.h>

extern Vtx AC_ankou_mouth_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_mouth[]={

	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_mouth_v[0], 10, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 0, 2, 0),
	gsSP1Triangle(2, 4, 3, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSP1Triangle(8, 6, 5, 0),
	gsSP1Triangle(6, 9, 7, 0),

	gs_Nin_LoadTextureImage(AC_ankou_TX_002_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AC_ankou_mouth_v[10], 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(&AC_ankou_mouth_v[25], 5, 0),
	gsSPVertex(&AC_ankou_mouth_v[32], 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(&AC_ankou_mouth_v[30], 2, 0),
	gsSPVertex(&AC_ankou_mouth_v[42], 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

/* 46 vertices */
Vtx AC_ankou_mouth_v[]={
	{ 26,41,58,0, 0, 1023, -29,105,49,255 },   /* v0 used p154/V1 4 times */
	{ 47,59,1,0, 506, 2025, 46,111,0,255 },   /* v1 used p154/V2 2 times */
	{ 26,41,-57,0, 1024, 1023, 19,99,-65,255 },   /* v2 used p154/V3 6 times */
	{ -3,-4,101,0, -387, -759, -100,65,0,255 },   /* v3 used p171/V1 2 times */
	{ -3,-4,-101,0, 1416, -759, -100,65,0,255 },   /* v4 used p170/V2 2 times */
	{ 73,-21,-46,0, 744, -1088, -8,-113,-37,255 },   /* v5 used p159/V1 4 times */
	{ 73,-21,46,0, 279, -1088, -18,-116,15,255 },   /* v6 used p159/V2 6 times */
	{ -3,-4,-101,0, 1024, 1023, -17,-117,-13,255 },   /* v7 used p159/V3 4 times */
	{ 95,-45,0,0, 512, -2139, -86,-82,0,255 },   /* v8 used p164/V1 2 times */
	{ -3,-4,101,0, 0, 1024, -13,-117,17,255 },   /* v9 used p163/V2 2 times */
	{ 117,8,0,0, 2559, 7327, 109,50,0,255 },   /* v10 used p166/V1 2 times */
	{ 91,8,49,0, 3969, 7719, 78,42,80,255 },   /* v11 used p166/V2 2 times */
	{ 95,-45,0,0, 3220, 5978, 107,-54,0,255 },   /* v12 used p166/V3 2 times */
	{ 26,41,-57,0, 1997, 8243, 19,99,-65,255 },   /* v13 used p168/V1 2 times */
	{ 47,59,1,0, 3672, 8544, 46,111,0,255 },   /* v14 used p168/V2 2 times */
	{ 91,8,-49,0, 2851, 6525, 78,43,-80,255 },   /* v15 used p168/V3 2 times */
	{ 26,41,58,0, 3122, 8243, -29,105,49,255 },   /* v16 used p169/V1 2 times */
	{ -3,-4,101,0, 4294, 9600, 43,63,92,255 },   /* v17 used p169/V2 2 times */
	{ 91,8,49,0, 4359, 6777, 78,42,80,255 },   /* v18 used p169/V3 2 times */
	{ 95,-45,0,0, 2559, 6744, 107,-54,0,255 },   /* v19 used p243/V1 2 times */
	{ 73,-21,-46,0, 1560, 7821, -8,-113,-37,255 },   /* v20 used p243/V2 2 times */
	{ 91,8,-49,0, 2071, 8576, 78,43,-80,255 },   /* v21 used p243/V3 2 times */
	{ 95,-45,0,0, 2559, 6744, 107,-54,0,255 },   /* v22 used p244/V1 2 times */
	{ 91,8,-49,0, 1691, 8429, 78,43,-80,255 },   /* v23 used p244/V2 2 times */
	{ 117,8,0,0, 3125, 8136, 109,50,0,255 },   /* v24 used p244/V3 2 times */
	{ -3,-4,-101,0, 1494, 7660, -17,-117,-13,255 },   /* v25 used p258/V1 2 times */
	{ 91,8,-49,0, 2209, 7424, 78,43,-80,255 },   /* v26 used p273/V1 2 times */
	{ 47,59,1,0, 2567, 8345, 46,111,0,255 },   /* v27 used p167/V1 2 times */
	{ 91,8,49,0, 2910, 7424, 78,42,80,255 },   /* v28 used p157/V1 2 times */
	{ 73,-21,46,0, 2915, 7127, -18,-116,15,255 },   /* v29 used p156/V1 2 times */
	{ 91,8,49,0, 2910, 7424, 78,42,80,255 },   /* v30 used p161/V1 2 times */
	{ 117,8,0,0, 2560, 7327, 109,50,0,255 },   /* v31 used p165/V1 2 times */
	{ 91,8,-49,0, 4175, 8543, 78,43,-80,255 },   /* v32 used p258/V2 2 times */
	{ 73,-21,-46,0, 3987, 7651, -8,-113,-37,255 },   /* v33 used p258/V3 2 times */
	{ -3,-4,-101,0, -472, 8307, 43,64,-92,255 },   /* v34 used p273/V2 2 times */
	{ 26,41,-57,0, 1167, 9034, 19,99,-65,255 },   /* v35 used p273/V3 2 times */
	{ 91,8,49,0, 3318, 10362, 78,42,80,255 },   /* v36 used p167/V2 2 times */
	{ 117,8,0,0, 4501, 9501, 109,50,0,255 },   /* v37 used p167/V3 2 times */
	{ 47,59,1,0, 2159, 9441, 46,111,0,255 },   /* v38 used p157/V2 2 times */
	{ 26,41,58,0, 3790, 9128, -29,105,49,255 },   /* v39 used p157/V3 2 times */
	{ 91,8,49,0, 2900, 8038, 78,42,80,255 },   /* v40 used p156/V2 2 times */
	{ -3,-4,101,0, 5363, 6658, -13,-117,17,255 },   /* v41 used p156/V3 2 times */
	{ 73,-21,46,0, 2924, 8335, -18,-116,15,255 },   /* v42 used p161/V2 2 times */
	{ 95,-45,0,0, 4360, 8645, 107,-54,0,255 },   /* v43 used p161/V3 2 times */
	{ 91,8,-49,0, 1150, 7719, 78,43,-80,255 },   /* v44 used p165/V2 2 times */
	{ 47,59,1,0, 2308, 9565, 46,111,0,255 },   /* v45 used p165/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
