#include<ultra64.h>

extern Vtx AC_sango_4_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_4[]={

	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_4_v[0], 15, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(6, 7, 4, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSP1Triangle(11, 14, 12, 0),
	gsSPVertex(&AC_sango_4_v[15], 5, 0),
	gsSPVertex(&AC_sango_4_v[35], 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_sango_4_v[20], 6, 0),
	gsSPVertex(&AC_sango_4_v[45], 10, 6),
	gsSP1Triangle(0, 6, 7, 0),
	gsSP1Triangle(1, 8, 9, 0),
	gsSP1Triangle(2, 10, 11, 0),
	gsSP1Triangle(3, 12, 13, 0),
	gsSP1Triangle(3, 14, 12, 0),
	gsSP1Triangle(4, 5, 15, 0),
	gsSPVertex(&AC_sango_4_v[25], 7, 0),
	gsSPVertex(&AC_sango_4_v[54], 9, 7),
	gsSP1Triangle(0, 8, 7, 0),
	gsSP1Triangle(1, 9, 10, 0),
	gsSP1Triangle(2, 1, 10, 0),
	gsSP1Triangle(3, 11, 12, 0),
	gsSP1Triangle(4, 13, 14, 0),
	gsSP1Triangle(5, 6, 15, 0),
	gsSPVertex(&AC_sango_4_v[31], 4, 0),
	gsSPVertex(&AC_sango_4_v[62], 8, 4),
	gsSP1Triangle(0, 5, 4, 0),
	gsSP1Triangle(1, 6, 7, 0),
	gsSP1Triangle(2, 8, 9, 0),
	gsSP1Triangle(3, 10, 11, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 70 vertices */
Vtx AC_sango_4_v[]={
	{ -52,55,-125,0, 463, 132, -52,-41,-99,255 },   /* v0 used p43/V1 2 times */
	{ -34,51,-134,0, 348, 419, -51,-58,-91,255 },   /* v1 used p53/V1 2 times */
	{ -44,15,-94,0, 1048, 166, -34,-101,-52,255 },   /* v2 used p53/V3 2 times */
	{ -25,14,-105,0, 893, 471, -25,-110,-37,255 },   /* v3 used p53/V2 2 times */
	{ 15,26,-56,0, 110, 962, 91,-33,-71,255 },   /* v4 used p52/V1 4 times */
	{ -9,43,-65,0, 620, 804, -12,4,-119,255 },   /* v5 used p52/V2 2 times */
	{ -1,92,-84,0, 771, 29, -13,-28,-116,255 },   /* v6 used p52/V3 4 times */
	{ 14,87,-77,0, 463, 45, 119,6,-15,255 },   /* v7 used p60/V2 2 times */
	{ -5,15,-45,0, -832, 684, -10,-117,-19,255 },   /* v8 used p51/V1 2 times */
	{ 15,-5,0,0, 16, 902, 23,-102,-58,255 },   /* v9 used p51/V2 2 times */
	{ -7,-8,-3,0, -53, 538, -40,-97,-57,255 },   /* v10 used p51/V3 2 times */
	{ -30,37,-97,0, 409, 1024, -79,74,50,255 },   /* v11 used p50/V1 2 times */
	{ -52,55,-125,0, -6, 1250, -63,55,85,255 },   /* v12 used p50/V3 2 times */
	{ -44,15,-94,0, 594, 1279, -98,19,64,255 },   /* v13 used p39/V3 2 times */
	{ -37,63,-119,0, 0, 1024, -62,56,85,255 },   /* v14 used p50/V2 2 times */
	{ -19,33,-41,0, 202, 850, -108,34,37,255 },   /* v15 used p49/V1 2 times */
	{ -19,33,-41,0, 849, 744, -108,34,37,255 },   /* v16 used p48/V1 2 times */
	{ 9,105,-72,0, 457, 74, 101,44,47,255 },   /* v17 used p54/V1 2 times */
	{ -19,33,-41,0, 0, 1024, -108,34,37,255 },   /* v18 used p59/V1 2 times */
	{ -19,33,-41,0, 659, 899, -108,34,37,255 },   /* v19 used p58/V1 2 times */
	{ -25,14,-105,0, 310, 216, 112,-14,-40,255 },   /* v20 used p57/V1 2 times */
	{ 15,26,-56,0, 778, 505, 91,-33,-71,255 },   /* v21 used p56/V1 2 times */
	{ 1,15,2,0, -223, 1427, -86,45,69,255 },   /* v22 used p55/V1 2 times */
	{ -19,33,-41,0, 297, 895, -108,34,37,255 },   /* v23 used p47/V1 2 times */
	{ -9,43,-65,0, 312, 316, -12,4,-119,255 },   /* v24 used p38/V1 2 times */
	{ 15,26,-56,0, 77, 753, 91,-33,-71,255 },   /* v25 used p38/V2 4 times */
	{ 9,105,-72,0, 226, 3, 101,44,47,255 },   /* v26 used p37/V1 4 times */
	{ 14,87,-77,0, 519, 32, 119,6,-15,255 },   /* v27 used p45/V1 2 times */
	{ -52,55,-125,0, 78, 1021, -52,-41,-99,255 },   /* v28 used p36/V1 2 times */
	{ 15,-5,0,0, 0, 1024, 109,25,42,255 },   /* v29 used p35/V1 2 times */
	{ -30,37,-97,0, 366, 309, 91,52,-58,255 },   /* v30 used p33/V1 2 times */
	{ -25,14,-105,0, 469, 671, 112,-14,-40,255 },   /* v31 used p33/V2 4 times */
	{ -1,92,-84,0, 893, -6, -13,-28,-116,255 },   /* v32 used p44/V1 2 times */
	{ 1,15,2,0, 0, 1024, -86,45,69,255 },   /* v33 used p41/V1 2 times */
	{ -44,15,-94,0, 462, 119, -34,-101,-52,255 },   /* v34 used p40/V1 2 times */
	{ 9,105,-72,0, 425, 1, -90,57,52,255 },   /* v35 used p49/V2 2 times */
	{ -1,92,-84,0, 152, 76, -104,51,25,255 },   /* v36 used p49/V3 2 times */
	{ 1,15,2,0, 138, 1013, -86,45,69,255 },   /* v37 used p48/V2 2 times */
	{ 9,105,-72,0, 950, -52, -90,57,52,255 },   /* v38 used p48/V3 2 times */
	{ 14,87,-77,0, 574, 195, 119,6,-15,255 },   /* v39 used p54/V2 2 times */
	{ -1,92,-84,0, 644, 69, -13,-28,-116,255 },   /* v40 used p54/V3 2 times */
	{ -5,15,-45,0, 226, 862, -10,-117,-19,255 },   /* v41 used p59/V2 2 times */
	{ -7,-8,-3,0, -6, 311, -40,-97,-57,255 },   /* v42 used p59/V3 2 times */
	{ -44,15,-94,0, 433, 11, -98,19,64,255 },   /* v43 used p58/V2 2 times */
	{ -5,15,-45,0, 351, 957, -10,-117,-19,255 },   /* v44 used p58/V3 2 times */
	{ 15,26,-56,0, 175, 977, 91,-33,-71,255 },   /* v45 used p57/V2 2 times */
	{ -5,15,-45,0, 495, 978, -10,-117,-19,255 },   /* v46 used p57/V3 2 times */
	{ 15,-5,0,0, 0, 1024, 23,-102,-58,255 },   /* v47 used p56/V2 2 times */
	{ -5,15,-45,0, 761, 875, -10,-117,-19,255 },   /* v48 used p56/V3 2 times */
	{ -19,33,-41,0, -22, 1978, -108,34,37,255 },   /* v49 used p55/V2 2 times */
	{ -7,-8,-3,0, 46, 1316, -86,11,81,255 },   /* v50 used p55/V3 2 times */
	{ -30,37,-97,0, 649, 251, -79,74,50,255 },   /* v51 used p47/V3 2 times */
	{ -44,15,-94,0, 400, 73, -98,19,64,255 },   /* v52 used p34/V3 2 times */
	{ -9,43,-65,0, 573, 761, -61,101,20,255 },   /* v53 used p47/V2 2 times */
	{ -30,37,-97,0, 914, 215, 91,52,-58,255 },   /* v54 used p38/V3 4 times */
	{ -25,14,-105,0, 1060, 556, 112,-14,-40,255 },   /* v55 used p42/V2 2 times */
	{ 1,15,2,0, 395, 889, 84,51,69,255 },   /* v56 used p37/V2 2 times */
	{ 15,-5,0,0, 828, 921, 109,25,42,255 },   /* v57 used p37/V3 4 times */
	{ -37,63,-119,0, 59, 1190, 110,46,-16,255 },   /* v58 used p36/V2 2 times */
	{ -34,51,-134,0, 221, 1140, -51,-58,-91,255 },   /* v59 used p36/V3 2 times */
	{ 15,26,-56,0, 739, 626, 91,-33,-71,255 },   /* v60 used p35/V2 2 times */
	{ 14,87,-77,0, 796, -12, 119,6,-15,255 },   /* v61 used p35/V3 2 times */
	{ -37,63,-119,0, 643, -15, 110,46,-16,255 },   /* v62 used p33/V3 4 times */
	{ -34,51,-134,0, 834, 197, 117,28,0,255 },   /* v63 used p46/V2 2 times */
	{ -9,43,-65,0, 798, 652, -12,4,-119,255 },   /* v64 used p44/V2 2 times */
	{ -19,33,-41,0, 504, 867, -108,34,37,255 },   /* v65 used p44/V3 2 times */
	{ -7,-8,-3,0, 567, 948, -86,11,81,255 },   /* v66 used p41/V2 2 times */
	{ 15,-5,0,0, 281, 527, 109,25,42,255 },   /* v67 used p41/V3 2 times */
	{ -25,14,-105,0, 238, 421, -25,-110,-37,255 },   /* v68 used p40/V2 2 times */
	{ -5,15,-45,0, 1054, 784, -10,-117,-19,255 },   /* v69 used p40/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
