#include<ultra64.h>

extern Vtx AC_sango_3_v[];

extern unsigned short AC_sango_TX_01_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_sango_3[]={

	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_sango_TX_01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AC_sango_3_v[0], 16, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(5, 6, 3, 0),
	gsSP1Triangle(7, 8, 9, 0),
	gsSP1Triangle(10, 11, 12, 0),
	gsSP1Triangle(13, 14, 15, 0),
	gsSPVertex(&AC_sango_3_v[13], 1, 0),
	gsSPVertex(&AC_sango_3_v[15], 8, 1),
	gsSPVertex(&AC_sango_3_v[38], 7, 9),
	gsSP1Triangle(1, 2, 0, 0),
	gsSP1Triangle(3, 9, 10, 0),
	gsSP1Triangle(4, 11, 12, 0),
	gsSP1Triangle(5, 13, 6, 0),
	gsSP1Triangle(6, 14, 5, 0),
	gsSP1Triangle(7, 15, 8, 0),
	gsSPVertex(&AC_sango_3_v[21], 7, 0),
	gsSPVertex(&AC_sango_3_v[45], 9, 7),
	gsSP1Triangle(1, 7, 0, 0),
	gsSP1Triangle(2, 8, 9, 0),
	gsSP1Triangle(3, 10, 11, 0),
	gsSP1Triangle(4, 12, 13, 0),
	gsSP1Triangle(5, 14, 6, 0),
	gsSP1Triangle(6, 15, 5, 0),
	gsSPVertex(&AC_sango_3_v[28], 7, 0),
	gsSPVertex(&AC_sango_3_v[54], 9, 7),
	gsSP1Triangle(0, 7, 1, 0),
	gsSP1Triangle(1, 7, 8, 0),
	gsSP1Triangle(2, 9, 10, 0),
	gsSP1Triangle(3, 11, 12, 0),
	gsSP1Triangle(4, 13, 14, 0),
	gsSP1Triangle(5, 15, 6, 0),
	gsSPVertex(&AC_sango_3_v[33], 5, 0),
	gsSPVertex(&AC_sango_3_v[63], 7, 5),
	gsSP1Triangle(1, 5, 0, 0),
	gsSP1Triangle(2, 6, 7, 0),
	gsSP1Triangle(3, 8, 9, 0),
	gsSP1Triangle(4, 10, 11, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 70 vertices */
Vtx AC_sango_3_v[]={
	{ -82,58,33,0, 244, 1065, 54,96,-48,255 },   /* v0 used p81/V1 2 times */
	{ -95,62,22,0, 0, 1023, 40,93,-65,255 },   /* v1 used p81/V2 2 times */
	{ -101,84,60,0, 124, 1636, 46,110,-13,255 },   /* v2 used p81/V3 2 times */
	{ -133,73,21,0, 1023, 1604, 22,26,114,255 },   /* v3 used p80/V3 2 times */
	{ -141,59,3,0, 1147, 1226, -83,-52,67,255 },   /* v4 used p67/V2 2 times */
	{ -93,27,27,0, 246, 1122, -64,-91,40,255 },   /* v5 used p80/V1 2 times */
	{ -95,62,22,0, 387, 1504, 21,78,88,255 },   /* v6 used p80/V2 2 times */
	{ -142,114,8,0, 448, 436, -45,59,-94,255 },   /* v7 used p79/V1 2 times */
	{ -158,102,9,0, 169, 408, -92,6,-76,255 },   /* v8 used p79/V2 2 times */
	{ -150,107,28,0, 259, 701, -99,-27,59,255 },   /* v9 used p79/V3 2 times */
	{ -82,58,33,0, -401, 1121, 48,-14,108,255 },   /* v10 used p78/V1 2 times */
	{ -98,70,78,0, -425, 1725, 109,5,49,255 },   /* v11 used p78/V2 2 times */
	{ -93,27,27,0, 0, 1023, 101,-43,47,255 },   /* v12 used p78/V3 2 times */
	{ -124,73,-5,0, 543, 500, 0,19,-119,255 },   /* v13 used p77/V1 4 times */
	{ -141,59,3,0, 569, 213, -37,-60,-96,255 },   /* v14 used p77/V2 2 times */
	{ -158,102,9,0, 160, 173, -92,6,-76,255 },   /* v15 used p77/V3 4 times */
	{ -142,114,8,0, 132, 432, -45,59,-94,255 },   /* v16 used p84/V2 2 times */
	{ -93,27,27,0, 321, 156, -64,-91,40,255 },   /* v17 used p76/V1 2 times */
	{ -114,77,74,0, -43, 1829, -109,-46,0,255 },   /* v18 used p82/V1 2 times */
	{ -133,73,21,0, 417, 207, 22,26,114,255 },   /* v19 used p88/V3 2 times */
	{ -142,114,8,0, 880, 566, 106,37,42,255 },   /* v20 used p88/V1 2 times */
	{ -91,41,1,0, 595, 198, 33,75,-87,255 },   /* v21 used p87/V3 2 times */
	{ 7,14,3,0, 147, 976, 55,97,-44,255 },   /* v22 used p87/V1 2 times */
	{ -82,58,33,0, 900, 184, 48,-14,108,255 },   /* v23 used p86/V1 2 times */
	{ 0,-8,-11,0, 266, 990, -50,-103,-30,255 },   /* v24 used p85/V1 2 times */
	{ -95,62,22,0, 375, 72, 40,93,-65,255 },   /* v25 used p83/V1 2 times */
	{ -91,41,1,0, 540, 449, 33,75,-87,255 },   /* v26 used p75/V3 2 times */
	{ -141,59,3,0, 35, 294, -37,-60,-96,255 },   /* v27 used p75/V1 2 times */
	{ -91,41,1,0, 686, 298, 33,75,-87,255 },   /* v28 used p66/V1 2 times */
	{ -95,62,22,0, 460, 84, 40,93,-65,255 },   /* v29 used p66/V3 4 times */
	{ -101,84,60,0, 459, 556, 46,110,-13,255 },   /* v30 used p65/V1 2 times */
	{ -93,27,27,0, 363, 3, -64,-91,40,255 },   /* v31 used p64/V1 2 times */
	{ 3,-8,10,0, 455, 1010, 68,20,96,255 },   /* v32 used p63/V1 2 times */
	{ -150,107,28,0, 945, 574, -99,-27,59,255 },   /* v33 used p61/V1 4 times */
	{ -141,59,3,0, 338, 250, -83,-52,67,255 },   /* v34 used p61/V3 4 times */
	{ -101,84,60,0, -92, 520, 46,110,-13,255 },   /* v35 used p74/V1 2 times */
	{ -91,41,1,0, 660, 478, 33,75,-87,255 },   /* v36 used p72/V1 2 times */
	{ 7,14,3,0, -303, 1372, 55,97,-44,255 },   /* v37 used p70/V1 2 times */
	{ -91,41,1,0, -73, 165, -49,-93,-55,255 },   /* v38 used p76/V2 2 times */
	{ 0,-8,-11,0, 0, 1024, -50,-103,-30,255 },   /* v39 used p76/V3 2 times */
	{ -95,62,22,0, -261, 1074, -112,-12,-38,255 },   /* v40 used p82/V2 2 times */
	{ -93,27,27,0, -743, 1146, -64,-91,40,255 },   /* v41 used p82/V3 2 times */
	{ -124,73,-5,0, 255, 573, 83,82,25,255 },   /* v42 used p62/V2 2 times */
	{ -150,107,28,0, 934, 237, 100,39,53,255 },   /* v43 used p88/V2 2 times */
	{ -82,58,33,0, 57, 166, 54,96,-48,255 },   /* v44 used p73/V2 2 times */
	{ 0,-8,-11,0, 476, 1006, 37,53,-101,255 },   /* v45 used p87/V2 2 times */
	{ -93,27,27,0, 424, 212, -64,-91,40,255 },   /* v46 used p86/V2 2 times */
	{ 3,-8,10,0, 388, 1030, -9,-74,92,255 },   /* v47 used p86/V3 2 times */
	{ 3,-8,10,0, 620, 1009, -9,-74,92,255 },   /* v48 used p85/V2 2 times */
	{ -93,27,27,0, 559, 29, -64,-91,40,255 },   /* v49 used p85/V3 2 times */
	{ -114,77,74,0, 157, 902, -72,94,-18,255 },   /* v50 used p83/V2 2 times */
	{ -101,84,60,0, 419, 737, 46,110,-13,255 },   /* v51 used p83/V3 2 times */
	{ -93,27,27,0, 618, 53, -64,-91,40,255 },   /* v52 used p68/V2 2 times */
	{ -124,73,-5,0, 111, 534, 0,19,-119,255 },   /* v53 used p75/V2 2 times */
	{ -124,73,-5,0, 102, 540, 0,19,-119,255 },   /* v54 used p66/V2 4 times */
	{ -133,73,21,0, -133, 229, 22,26,114,255 },   /* v55 used p69/V3 2 times */
	{ -114,77,74,0, 190, 628, -72,94,-18,255 },   /* v56 used p65/V2 2 times */
	{ -98,70,78,0, 307, 834, 109,5,49,255 },   /* v57 used p65/V3 2 times */
	{ -98,70,78,0, 212, 758, -54,-83,64,255 },   /* v58 used p64/V2 2 times */
	{ -114,77,74,0, 403, 818, -109,-46,0,255 },   /* v59 used p64/V3 2 times */
	{ 7,14,3,0, 734, 982, 55,97,-44,255 },   /* v60 used p63/V2 2 times */
	{ -82,58,33,0, 967, 165, 48,-14,108,255 },   /* v61 used p63/V3 2 times */
	{ -158,102,9,0, 922, 303, -92,6,-76,255 },   /* v62 used p61/V2 2 times */
	{ -133,73,21,0, 471, 525, 22,26,114,255 },   /* v63 used p71/V2 2 times */
	{ -98,70,78,0, 182, 689, 109,5,49,255 },   /* v64 used p74/V2 2 times */
	{ -82,58,33,0, 159, 9, 54,96,-48,255 },   /* v65 used p74/V3 2 times */
	{ -95,62,22,0, 850, 246, 40,93,-65,255 },   /* v66 used p72/V2 2 times */
	{ -82,58,33,0, 797, 69, 54,96,-48,255 },   /* v67 used p72/V3 2 times */
	{ 3,-8,10,0, -664, 1830, 68,20,96,255 },   /* v68 used p70/V2 2 times */
	{ 0,-8,-11,0, -160, 2034, 37,53,-101,255 },   /* v69 used p70/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
