#include<ultra64.h>

extern Vtx AC_ankou_obire_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_obire[]={

	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_obire_v[0], 9, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),

	gs_Nin_LoadTextureImage(AC_ankou_TX_002_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AC_ankou_obire_v[9], 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_obire_v[24], 6, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSP1Triangle(1, 4, 5, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 30 vertices */
Vtx AC_ankou_obire_v[]={
	{ -36,-7,0,0, 512, 120, -69,-96,0,255 },   /* v0 used p151/V1 2 times */
	{ 0,-34,-26,0, 0, 1023, -41,-111,0,255 },   /* v1 used p151/V2 2 times */
	{ 0,-34,26,0, 1024, 1024, -7,-20,117,255 },   /* v2 used p151/V3 2 times */
	{ 0,-34,26,0, 0, 1024, -7,-20,117,255 },   /* v3 used p152/V1 2 times */
	{ 0,25,0,0, 1023, 1024, -18,47,108,255 },   /* v4 used p152/V2 2 times */
	{ -36,-7,0,0, 552, 401, -39,45,103,255 },   /* v5 used p152/V3 2 times */
	{ -36,-7,0,0, 471, 401, -39,45,-104,255 },   /* v6 used p153/V1 2 times */
	{ 0,25,0,0, 0, 1023, -18,47,-109,255 },   /* v7 used p153/V2 2 times */
	{ 0,-34,-26,0, 1023, 1023, 8,21,-118,255 },   /* v8 used p153/V3 2 times */
	{ 0,-34,-26,0, 7983, 8318, 8,21,-118,255 },   /* v9 used p257/V1 2 times */
	{ 0,25,0,0, 7503, 9926, -18,47,-109,255 },   /* v10 used p257/V2 2 times */
	{ 78,38,0,0, 9372, 10818, 10,31,-116,255 },   /* v11 used p257/V3 2 times */
	{ 0,-34,26,0, 7376, 8318, -7,-20,117,255 },   /* v12 used p266/V1 2 times */
	{ 78,-50,0,0, 8607, 10130, 23,-117,0,255 },   /* v13 used p266/V2 2 times */
	{ 116,-11,0,0, 10028, 10035, 26,0,116,255 },   /* v14 used p266/V3 2 times */
	{ 0,-34,26,0, 7376, 8318, -7,-20,117,255 },   /* v15 used p267/V1 2 times */
	{ 116,-11,0,0, 8218, 11363, 26,0,116,255 },   /* v16 used p267/V2 2 times */
	{ 78,38,0,0, 9440, 10298, 10,31,115,255 },   /* v17 used p267/V3 2 times */
	{ 78,38,0,0, 7679, 6704, 10,31,115,255 },   /* v18 used p268/V1 2 times */
	{ 0,25,0,0, 7680, 8775, -18,47,108,255 },   /* v19 used p268/V2 2 times */
	{ 0,-34,26,0, 9338, 9034, -7,-20,117,255 },   /* v20 used p268/V3 2 times */
	{ 78,38,0,0, 7679, 6704, 10,31,-116,255 },   /* v21 used p256/V1 2 times */
	{ 116,-11,0,0, 7679, 8325, 26,0,-117,255 },   /* v22 used p256/V2 2 times */
	{ 0,-34,-26,0, 10528, 6959, 8,21,-118,255 },   /* v23 used p256/V3 2 times */
	{ 116,-11,0,0, 7679, 7219, 26,0,-117,255 },   /* v24 used p255/V1 2 times */
	{ 0,-34,-26,0, 7983, 8318, -41,-111,0,255 },   /* v25 used p149/V1 2 times */
	{ 78,-50,0,0, 7680, 8643, 23,-117,0,255 },   /* v26 used p255/V2 2 times */
	{ 0,-34,-26,0, 9570, 9751, 8,21,-118,255 },   /* v27 used p255/V3 2 times */
	{ 78,-50,0,0, 6752, 10130, 23,-117,0,255 },   /* v28 used p149/V2 2 times */
	{ 0,-34,26,0, 8810, 9379, -7,-20,117,255 },   /* v29 used p149/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
