#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),
	gsSP2Triangles(0, 1, 2, 0, 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],20,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(3, 6, 7, 0, 8, 9, 10, 0),
	gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
	gsSP1Triangle(17, 18, 19, 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},	/* 0 */
	{     0,   -34,   -26,     0,     0,  1023,   -41,  -111,     0,   255},	/* 1 */
	{     0,   -34,    26,     0,  1024,  1024,    -7,   -20,   117,   255},	/* 2 */
	{     0,   -34,    26,     0,     0,  1024,    -7,   -20,   117,   255},	/* 3 */
	{     0,    25,     0,     0,  1023,  1024,   -18,    47,   108,   255},	/* 4 */
	{   -36,    -7,     0,     0,   552,   401,   -39,    45,   103,   255},	/* 5 */
	{   -36,    -7,     0,     0,   471,   401,   -39,    45,  -104,   255},	/* 6 */
	{     0,    25,     0,     0,     0,  1023,   -18,    47,  -109,   255},	/* 7 */
	{     0,   -34,   -26,     0,  1023,  1023,     8,    21,  -118,   255},	/* 8 */
	{     0,   -34,   -26,     0,  7983,  8318,     8,    21,  -118,   255},	/* 9 */
	{     0,    25,     0,     0,  7503,  9926,   -18,    47,  -109,   255},	/* 10 */
	{    78,    38,     0,     0,  9372, 10818,    10,    31,  -116,   255},	/* 11 */
	{     0,   -34,    26,     0,  7376,  8318,    -7,   -20,   117,   255},	/* 12 */
	{    78,   -50,     0,     0,  8607, 10130,    23,  -117,     0,   255},	/* 13 */
	{   116,   -11,     0,     0, 10028, 10035,    26,     0,   116,   255},	/* 14 */
	{   116,   -11,     0,     0,  8218, 11363,    26,     0,   116,   255},	/* 15 */
	{    78,    38,     0,     0,  9440, 10298,    10,    31,   115,   255},	/* 16 */
	{    78,    38,     0,     0,  7679,  6704,    10,    31,   115,   255},	/* 17 */
	{     0,    25,     0,     0,  7680,  8775,   -18,    47,   108,   255},	/* 18 */
	{     0,   -34,    26,     0,  9338,  9034,    -7,   -20,   117,   255},	/* 19 */
	{    78,    38,     0,     0,  7679,  6704,    10,    31,  -116,   255},	/* 20 */
	{   116,   -11,     0,     0,  7679,  8325,    26,     0,  -117,   255},	/* 21 */
	{     0,   -34,   -26,     0, 10528,  6959,     8,    21,  -118,   255},	/* 22 */
	{   116,   -11,     0,     0,  7679,  7219,    26,     0,  -117,   255},	/* 23 */
	{    78,   -50,     0,     0,  7680,  8643,    23,  -117,     0,   255},	/* 24 */
	{     0,   -34,   -26,     0,  9570,  9751,     8,    21,  -118,   255},	/* 25 */
	{     0,   -34,   -26,     0,  7983,  8318,   -41,  -111,     0,   255},	/* 26 */
	{    78,   -50,     0,     0,  6752, 10130,    23,  -117,     0,   255},	/* 27 */
	{     0,   -34,    26,     0,  8810,  9379,    -7,   -20,   117,   255},	/* 28 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
