#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],31,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(5, 6, 3, 0, 7, 8, 9, 0),
	gsSP2Triangles(10, 11, 12, 0, 13, 14, 15, 0),
	gsSP2Triangles(15, 16, 13, 0, 17, 18, 19, 0),
	gsSP2Triangles(20, 21, 22, 0, 23, 24, 25, 0),
	gsSP2Triangles(25, 26, 23, 0, 27, 28, 29, 0),
	gsSP1Triangle(29, 30, 27, 0),
	gsSPVertex(&AC_sango_3_v[31],30,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
	gsSP2Triangles(11, 12, 9, 0, 13, 14, 15, 0),
	gsSP2Triangles(15, 14, 16, 0, 17, 18, 19, 0),
	gsSP2Triangles(20, 21, 22, 0, 23, 24, 25, 0),
	gsSP2Triangles(26, 27, 28, 0, 28, 29, 26, 0),
	gsSPVertex(&AC_sango_3_v[61],9,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 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},	/* 0 */
	{   -95,    62,    22,     0,     0,  1023,    40,    93,   -65,   255},	/* 1 */
	{  -101,    84,    60,     0,   124,  1636,    46,   110,   -13,   255},	/* 2 */
	{  -133,    73,    21,     0,  1023,  1604,    22,    26,   114,   255},	/* 3 */
	{  -141,    59,     3,     0,  1147,  1226,   -83,   -52,    67,   255},	/* 4 */
	{   -93,    27,    27,     0,   246,  1122,   -64,   -91,    40,   255},	/* 5 */
	{   -95,    62,    22,     0,   387,  1504,    21,    78,    88,   255},	/* 6 */
	{  -142,   114,     8,     0,   448,   436,   -45,    59,   -94,   255},	/* 7 */
	{  -158,   102,     9,     0,   169,   408,   -92,     6,   -76,   255},	/* 8 */
	{  -150,   107,    28,     0,   259,   701,   -99,   -27,    59,   255},	/* 9 */
	{   -82,    58,    33,     0,  -401,  1121,    48,   -14,   108,   255},	/* 10 */
	{   -98,    70,    78,     0,  -425,  1725,   109,     5,    49,   255},	/* 11 */
	{   -93,    27,    27,     0,     0,  1023,   101,   -43,    47,   255},	/* 12 */
	{  -124,    73,    -5,     0,   543,   500,     0,    19,  -119,   255},	/* 13 */
	{  -141,    59,     3,     0,   569,   213,   -37,   -60,   -96,   255},	/* 14 */
	{  -158,   102,     9,     0,   160,   173,   -92,     6,   -76,   255},	/* 15 */
	{  -142,   114,     8,     0,   132,   432,   -45,    59,   -94,   255},	/* 16 */
	{   -93,    27,    27,     0,   321,   156,   -64,   -91,    40,   255},	/* 17 */
	{   -91,    41,     1,     0,   -73,   165,   -49,   -93,   -55,   255},	/* 18 */
	{     0,    -8,   -11,     0,     0,  1024,   -50,  -103,   -30,   255},	/* 19 */
	{  -114,    77,    74,     0,   -43,  1829,  -109,   -46,     0,   255},	/* 20 */
	{   -95,    62,    22,     0,  -261,  1074,  -112,   -12,   -38,   255},	/* 21 */
	{   -93,    27,    27,     0,  -743,  1146,   -64,   -91,    40,   255},	/* 22 */
	{  -133,    73,    21,     0,   417,   207,    22,    26,   114,   255},	/* 23 */
	{  -124,    73,    -5,     0,   255,   573,    83,    82,    25,   255},	/* 24 */
	{  -142,   114,     8,     0,   880,   566,   106,    37,    42,   255},	/* 25 */
	{  -150,   107,    28,     0,   934,   237,   100,    39,    53,   255},	/* 26 */
	{   -91,    41,     1,     0,   595,   198,    33,    75,   -87,   255},	/* 27 */
	{   -82,    58,    33,     0,    57,   166,    54,    96,   -48,   255},	/* 28 */
	{     7,    14,     3,     0,   147,   976,    55,    97,   -44,   255},	/* 29 */
	{     0,    -8,   -11,     0,   476,  1006,    37,    53,  -101,   255},	/* 30 */
	{   -82,    58,    33,     0,   900,   184,    48,   -14,   108,   255},	/* 31 */
	{   -93,    27,    27,     0,   424,   212,   -64,   -91,    40,   255},	/* 32 */
	{     3,    -8,    10,     0,   388,  1030,    -9,   -74,    92,   255},	/* 33 */
	{     0,    -8,   -11,     0,   266,   990,   -50,  -103,   -30,   255},	/* 34 */
	{     3,    -8,    10,     0,   620,  1009,    -9,   -74,    92,   255},	/* 35 */
	{   -93,    27,    27,     0,   559,    29,   -64,   -91,    40,   255},	/* 36 */
	{   -95,    62,    22,     0,   375,    72,    40,    93,   -65,   255},	/* 37 */
	{  -114,    77,    74,     0,   157,   902,   -72,    94,   -18,   255},	/* 38 */
	{  -101,    84,    60,     0,   419,   737,    46,   110,   -13,   255},	/* 39 */
	{   -91,    41,     1,     0,   540,   449,    33,    75,   -87,   255},	/* 40 */
	{   -93,    27,    27,     0,   618,    53,   -64,   -91,    40,   255},	/* 41 */
	{  -141,    59,     3,     0,    35,   294,   -37,   -60,   -96,   255},	/* 42 */
	{  -124,    73,    -5,     0,   111,   534,     0,    19,  -119,   255},	/* 43 */
	{   -91,    41,     1,     0,   686,   298,    33,    75,   -87,   255},	/* 44 */
	{  -124,    73,    -5,     0,   102,   540,     0,    19,  -119,   255},	/* 45 */
	{   -95,    62,    22,     0,   460,    84,    40,    93,   -65,   255},	/* 46 */
	{  -133,    73,    21,     0,  -133,   229,    22,    26,   114,   255},	/* 47 */
	{  -101,    84,    60,     0,   459,   556,    46,   110,   -13,   255},	/* 48 */
	{  -114,    77,    74,     0,   190,   628,   -72,    94,   -18,   255},	/* 49 */
	{   -98,    70,    78,     0,   307,   834,   109,     5,    49,   255},	/* 50 */
	{   -93,    27,    27,     0,   363,     3,   -64,   -91,    40,   255},	/* 51 */
	{   -98,    70,    78,     0,   212,   758,   -54,   -83,    64,   255},	/* 52 */
	{  -114,    77,    74,     0,   403,   818,  -109,   -46,     0,   255},	/* 53 */
	{     3,    -8,    10,     0,   455,  1010,    68,    20,    96,   255},	/* 54 */
	{     7,    14,     3,     0,   734,   982,    55,    97,   -44,   255},	/* 55 */
	{   -82,    58,    33,     0,   967,   165,    48,   -14,   108,   255},	/* 56 */
	{  -150,   107,    28,     0,   945,   574,   -99,   -27,    59,   255},	/* 57 */
	{  -158,   102,     9,     0,   922,   303,   -92,     6,   -76,   255},	/* 58 */
	{  -141,    59,     3,     0,   338,   250,   -83,   -52,    67,   255},	/* 59 */
	{  -133,    73,    21,     0,   471,   525,    22,    26,   114,   255},	/* 60 */
	{  -101,    84,    60,     0,   -92,   520,    46,   110,   -13,   255},	/* 61 */
	{   -98,    70,    78,     0,   182,   689,   109,     5,    49,   255},	/* 62 */
	{   -82,    58,    33,     0,   159,     9,    54,    96,   -48,   255},	/* 63 */
	{   -91,    41,     1,     0,   660,   478,    33,    75,   -87,   255},	/* 64 */
	{   -95,    62,    22,     0,   850,   246,    40,    93,   -65,   255},	/* 65 */
	{   -82,    58,    33,     0,   797,    69,    54,    96,   -48,   255},	/* 66 */
	{     7,    14,     3,     0,  -303,  1372,    55,    97,   -44,   255},	/* 67 */
	{     3,    -8,    10,     0,  -664,  1830,    68,    20,    96,   255},	/* 68 */
	{     0,    -8,   -11,     0,  -160,  2034,    37,    53,  -101,   255},	/* 69 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
