#include<ultra64.h>

extern Vtx AC_sango_2_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_2[]={

	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_2_v[0], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(2, 1, 3, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(7, 8, 9, 0),
	gsSP1Triangle(10, 11, 12, 0),
	gsSP1Triangle(13, 10, 12, 0),
	gsSPVertex(&AC_sango_2_v[14], 6, 0),
	gsSPVertex(&AC_sango_2_v[34], 9, 6),
	gsSP1Triangle(0, 6, 1, 0),
	gsSP1Triangle(1, 7, 0, 0),
	gsSP1Triangle(2, 8, 3, 0),
	gsSP1Triangle(3, 9, 2, 0),
	gsSP1Triangle(4, 10, 11, 0),
	gsSP1Triangle(5, 12, 13, 0),
	gsSP1Triangle(5, 13, 14, 0),
	gsSPVertex(&AC_sango_2_v[20], 5, 0),
	gsSPVertex(&AC_sango_2_v[43], 9, 5),
	gsSP1Triangle(0, 5, 1, 0),
	gsSP1Triangle(1, 6, 0, 0),
	gsSP1Triangle(2, 7, 8, 0),
	gsSP1Triangle(3, 9, 10, 0),
	gsSP1Triangle(3, 10, 11, 0),
	gsSP1Triangle(4, 12, 13, 0),
	gsSPVertex(&AC_sango_2_v[25], 7, 0),
	gsSPVertex(&AC_sango_2_v[52], 9, 7),
	gsSP1Triangle(0, 7, 8, 0),
	gsSP1Triangle(1, 9, 2, 0),
	gsSP1Triangle(2, 10, 1, 0),
	gsSP1Triangle(3, 11, 12, 0),
	gsSP1Triangle(4, 13, 14, 0),
	gsSP1Triangle(5, 6, 15, 0),
	gsSPVertex(&AC_sango_2_v[31], 3, 0),
	gsSPVertex(&AC_sango_2_v[60], 6, 3),
	gsSP1Triangle(0, 4, 3, 0),
	gsSP1Triangle(1, 5, 6, 0),
	gsSP1Triangle(2, 7, 8, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 66 vertices */
Vtx AC_sango_2_v[]={
	{ 23,101,-37,0, 854, 378, -44,77,80,255 },   /* v0 used p109/V1 2 times */
	{ 9,103,-61,0, 880, 3, -99,63,18,255 },   /* v1 used p109/V2 2 times */
	{ -4,88,-30,0, 525, 658, -48,87,-66,255 },   /* v2 used p109/V3 2 times */
	{ -19,58,-30,0, 116, 812, -91,-6,-77,255 },   /* v3 used p92/V3 2 times */
	{ -19,58,-30,0, 180, 335, -91,-6,-77,255 },   /* v4 used p108/V1 2 times */
	{ -8,0,-8,0, 882, 431, -99,-34,55,255 },   /* v5 used p108/V2 2 times */
	{ 0,9,11,0, 992, -3, -99,-2,65,255 },   /* v6 used p108/V3 2 times */
	{ 23,101,-37,0, 230, 1665, -44,77,80,255 },   /* v7 used p107½
`ÅÂxÅ¾;p109/V1 2 times */
	{ -4,88,-30,0, 341, 1205, -28,93,69,255 },   /* v8 used p107½
`ÅÂxÅ¾;p109/V2 2 times */
	{ 0,74,-10,0, 0, 1024, -64,-2,100,255 },   /* v9 used p107½
`ÅÂxÅ¾;p109/V3 2 times */
	{ 6,55,-38,0, -53, 895, -18,-50,-107,255 },   /* v10 used p106/V1 2 times */
	{ 17,-4,-6,0, 398, 228, 0,-56,-106,255 },   /* v11 used p106/V2 2 times */
	{ -8,0,-8,0, 128, 150, -20,-51,-106,255 },   /* v12 used p106/V3 2 times */
	{ -19,58,-30,0, -326, 745, -91,-6,-77,255 },   /* v13 used p103/V1 2 times */
	{ 23,101,-37,0, -205, 1284, -44,77,80,255 },   /* v14 used p105/V3 2 times */
	{ 39,132,-55,0, 174, 1459, 88,6,81,255 },   /* v15 used p105/V1 2 times */
	{ -19,58,-30,0, 847, 70, -91,-6,-77,255 },   /* v16 used p104/V3 2 times */
	{ -24,130,-12,0, 115, 604, -81,28,-83,255 },   /* v17 used p104/V1 2 times */
	{ 9,103,-61,0, 354, 30, -4,-44,-111,255 },   /* v18 used p110/V1 2 times */
	{ 25,137,-46,0, 733, 425, -103,55,24,255 },   /* v19 used p116/V1 2 times */
	{ 0,74,-10,0, 273, -15, 113,7,40,255 },   /* v20 used p115/V3 2 times */
	{ 33,88,-51,0, 628, 747, 97,-8,70,255 },   /* v21 used p115/V1 2 times */
	{ 0,74,-10,0, 78, 1449, -64,-2,100,255 },   /* v22 used p114/V1 2 times */
	{ 24,130,-64,0, -207, 1499, 7,14,-119,255 },   /* v23 used p113/V1 2 times */
	{ -15,125,3,0, 0, 1024, 109,47,-15,255 },   /* v24 used p112/V1 2 times */
	{ 9,103,-61,0, 373, 1068, -4,-44,-111,255 },   /* v25 used p94/V1 2 times */
	{ -33,119,0,0, 865, 1173, -84,-33,77,255 },   /* v26 used p93/V3 2 times */
	{ 0,74,-10,0, 178, 1354, -64,-2,100,255 },   /* v27 used p93/V1 2 times */
	{ 39,132,-55,0, 274, 1341, 59,21,-102,255 },   /* v28 used p91/V1 2 times */
	{ -15,125,3,0, -98, 1225, -18,-3,117,255 },   /* v29 used p89/V1 2 times */
	{ 6,55,-38,0, 954, 302, 116,-6,27,255 },   /* v30 used p99/V1 2 times */
	{ 0,74,-10,0, 596, 102, 113,7,40,255 },   /* v31 used p100/V1 2 times */
	{ -4,88,-30,0, 604, 333, -48,87,-66,255 },   /* v32 used p97/V1 2 times */
	{ 0,9,11,0, 197, 1371, -99,-2,65,255 },   /* v33 used p96/V1 2 times */
	{ 33,88,-51,0, -385, 1583, 97,-8,70,255 },   /* v34 used p95/V2 2 times */
	{ 25,137,-46,0, 271, 1187, 71,22,93,255 },   /* v35 used p105/V2 2 times */
	{ -33,119,0,0, 202, 274, -84,-33,77,255 },   /* v36 used p98/V2 2 times */
	{ -4,88,-30,0, 558, 526, -48,87,-66,255 },   /* v37 used p104/V2 2 times */
	{ 6,55,-38,0, 410, 701, -18,-50,-107,255 },   /* v38 used p110/V2 2 times */
	{ -19,58,-30,0, 665, 719, -91,-6,-77,255 },   /* v39 used p110/V3 2 times */
	{ 24,130,-64,0, 723, 98, 7,14,-119,255 },   /* v40 used p111/V2 2 times */
	{ 9,103,-61,0, 313, 140, -99,63,18,255 },   /* v41 used p116/V2 2 times */
	{ 23,101,-37,0, 298, 522, -44,77,80,255 },   /* v42 used p116/V3 2 times */
	{ 6,55,-38,0, 202, 499, 116,-6,27,255 },   /* v43 used p102/V2 2 times */
	{ 23,101,-37,0, 654, 425, 97,-8,70,255 },   /* v44 used p115/V2 2 times */
	{ -19,58,-30,0, 0, 1024, -79,-14,87,255 },   /* v45 used p114/V2 2 times */
	{ 0,9,11,0, -894, 1382, -99,-2,65,255 },   /* v46 used p114/V3 2 times */
	{ 39,132,-55,0, -14, 1535, 59,21,-102,255 },   /* v47 used p101/V2 2 times */
	{ 33,88,-51,0, -2, 1028, 71,-59,-76,255 },   /* v48 used p113/V2 2 times */
	{ 9,103,-61,0, -303, 1159, -4,-44,-111,255 },   /* v49 used p113/V3 2 times */
	{ 0,74,-10,0, 288, 1492, 113,7,40,255 },   /* v50 used p112/V2 2 times */
	{ -4,88,-30,0, 438, 1290, 115,35,0,255 },   /* v51 used p112/V3 2 times */
	{ 33,88,-51,0, 4, 1045, 71,-59,-76,255 },   /* v52 used p94/V2 2 times */
	{ 6,55,-38,0, -9, 1601, -18,-50,-107,255 },   /* v53 used p94/V3 2 times */
	{ -19,58,-30,0, 0, 1024, -79,-14,87,255 },   /* v54 used p90/V2 2 times */
	{ -15,125,3,0, 867, 1416, -18,-3,117,255 },   /* v55 used p93/V2 2 times */
	{ 24,130,-64,0, 354, 1214, 7,14,-119,255 },   /* v56 used p91/V2 2 times */
	{ 25,137,-46,0, 184, 1215, -103,55,24,255 },   /* v57 used p91/V3 2 times */
	{ -24,130,-12,0, 110, 1211, -81,28,-83,255 },   /* v58 used p89/V2 2 times */
	{ -33,119,0,0, 0, 1024, -84,-33,77,255 },   /* v59 used p89/V3 2 times */
	{ 17,-4,-6,0, 753, 955, 111,25,36,255 },   /* v60 used p100/V3 2 times */
	{ 0,9,11,0, 420, 779, 93,23,71,255 },   /* v61 used p100/V2 2 times */
	{ -24,130,-12,0, 1004, 208, 96,62,-37,255 },   /* v62 used p97/V2 2 times */
	{ -15,125,3,0, 938, 17, 109,47,-15,255 },   /* v63 used p97/V3 2 times */
	{ -8,0,-8,0, 0, 1024, -99,-34,55,255 },   /* v64 used p96/V2 2 times */
	{ 17,-4,-6,0, -282, 1351, -21,-102,57,255 },   /* v65 used p96/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
