#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],30,0),
	gsSP2Triangles(0, 1, 2, 0, 1, 3, 2, 0),
	gsSP2Triangles(4, 5, 6, 0, 6, 7, 4, 0),
	gsSP2Triangles(8, 9, 10, 0, 11, 12, 13, 0),
	gsSP2Triangles(11, 14, 12, 0, 15, 16, 17, 0),
	gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
	gsSP2Triangles(24, 25, 26, 0, 27, 28, 29, 0),
	gsSPVertex(&AC_sango_4_v[30],31,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
	gsSP2Triangles(9, 12, 10, 0, 13, 14, 15, 0),
	gsSP2Triangles(14, 16, 15, 0, 17, 18, 19, 0),
	gsSP2Triangles(20, 17, 19, 0, 21, 22, 23, 0),
	gsSP2Triangles(24, 25, 26, 0, 27, 28, 29, 0),
	gsSP1Triangle(28, 30, 29, 0),
	gsSPVertex(&AC_sango_4_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_4_v[]={
	{   -52,    55,  -125,     0,   463,   132,   -52,   -41,   -99,   255},	/* 0 */
	{   -34,    51,  -134,     0,   348,   419,   -51,   -58,   -91,   255},	/* 1 */
	{   -44,    15,   -94,     0,  1048,   166,   -34,  -101,   -52,   255},	/* 2 */
	{   -25,    14,  -105,     0,   893,   471,   -25,  -110,   -37,   255},	/* 3 */
	{    15,    26,   -56,     0,   110,   962,    91,   -33,   -71,   255},	/* 4 */
	{    -9,    43,   -65,     0,   620,   804,   -12,     4,  -119,   255},	/* 5 */
	{    -1,    92,   -84,     0,   771,    29,   -13,   -28,  -116,   255},	/* 6 */
	{    14,    87,   -77,     0,   463,    45,   119,     6,   -15,   255},	/* 7 */
	{    -5,    15,   -45,     0,  -832,   684,   -10,  -117,   -19,   255},	/* 8 */
	{    15,    -5,     0,     0,    16,   902,    23,  -102,   -58,   255},	/* 9 */
	{    -7,    -8,    -3,     0,   -53,   538,   -40,   -97,   -57,   255},	/* 10 */
	{   -30,    37,   -97,     0,   409,  1024,   -79,    74,    50,   255},	/* 11 */
	{   -52,    55,  -125,     0,    -6,  1250,   -63,    55,    85,   255},	/* 12 */
	{   -44,    15,   -94,     0,   594,  1279,   -98,    19,    64,   255},	/* 13 */
	{   -37,    63,  -119,     0,     0,  1024,   -62,    56,    85,   255},	/* 14 */
	{   -19,    33,   -41,     0,   202,   850,  -108,    34,    37,   255},	/* 15 */
	{     9,   105,   -72,     0,   425,     1,   -90,    57,    52,   255},	/* 16 */
	{    -1,    92,   -84,     0,   152,    76,  -104,    51,    25,   255},	/* 17 */
	{   -19,    33,   -41,     0,   849,   744,  -108,    34,    37,   255},	/* 18 */
	{     1,    15,     2,     0,   138,  1013,   -86,    45,    69,   255},	/* 19 */
	{     9,   105,   -72,     0,   950,   -52,   -90,    57,    52,   255},	/* 20 */
	{     9,   105,   -72,     0,   457,    74,   101,    44,    47,   255},	/* 21 */
	{    14,    87,   -77,     0,   574,   195,   119,     6,   -15,   255},	/* 22 */
	{    -1,    92,   -84,     0,   644,    69,   -13,   -28,  -116,   255},	/* 23 */
	{   -19,    33,   -41,     0,     0,  1024,  -108,    34,    37,   255},	/* 24 */
	{    -5,    15,   -45,     0,   226,   862,   -10,  -117,   -19,   255},	/* 25 */
	{    -7,    -8,    -3,     0,    -6,   311,   -40,   -97,   -57,   255},	/* 26 */
	{   -19,    33,   -41,     0,   659,   899,  -108,    34,    37,   255},	/* 27 */
	{   -44,    15,   -94,     0,   433,    11,   -98,    19,    64,   255},	/* 28 */
	{    -5,    15,   -45,     0,   351,   957,   -10,  -117,   -19,   255},	/* 29 */
	{   -25,    14,  -105,     0,   310,   216,   112,   -14,   -40,   255},	/* 30 */
	{    15,    26,   -56,     0,   175,   977,    91,   -33,   -71,   255},	/* 31 */
	{    -5,    15,   -45,     0,   495,   978,   -10,  -117,   -19,   255},	/* 32 */
	{    15,    26,   -56,     0,   778,   505,    91,   -33,   -71,   255},	/* 33 */
	{    15,    -5,     0,     0,     0,  1024,    23,  -102,   -58,   255},	/* 34 */
	{    -5,    15,   -45,     0,   761,   875,   -10,  -117,   -19,   255},	/* 35 */
	{     1,    15,     2,     0,  -223,  1427,   -86,    45,    69,   255},	/* 36 */
	{   -19,    33,   -41,     0,   -22,  1978,  -108,    34,    37,   255},	/* 37 */
	{    -7,    -8,    -3,     0,    46,  1316,   -86,    11,    81,   255},	/* 38 */
	{   -19,    33,   -41,     0,   297,   895,  -108,    34,    37,   255},	/* 39 */
	{   -30,    37,   -97,     0,   649,   251,   -79,    74,    50,   255},	/* 40 */
	{   -44,    15,   -94,     0,   400,    73,   -98,    19,    64,   255},	/* 41 */
	{    -9,    43,   -65,     0,   573,   761,   -61,   101,    20,   255},	/* 42 */
	{    -9,    43,   -65,     0,   312,   316,   -12,     4,  -119,   255},	/* 43 */
	{    15,    26,   -56,     0,    77,   753,    91,   -33,   -71,   255},	/* 44 */
	{   -30,    37,   -97,     0,   914,   215,    91,    52,   -58,   255},	/* 45 */
	{   -25,    14,  -105,     0,  1060,   556,   112,   -14,   -40,   255},	/* 46 */
	{     9,   105,   -72,     0,   226,     3,   101,    44,    47,   255},	/* 47 */
	{     1,    15,     2,     0,   395,   889,    84,    51,    69,   255},	/* 48 */
	{    15,    -5,     0,     0,   828,   921,   109,    25,    42,   255},	/* 49 */
	{    14,    87,   -77,     0,   519,    32,   119,     6,   -15,   255},	/* 50 */
	{   -52,    55,  -125,     0,    78,  1021,   -52,   -41,   -99,   255},	/* 51 */
	{   -37,    63,  -119,     0,    59,  1190,   110,    46,   -16,   255},	/* 52 */
	{   -34,    51,  -134,     0,   221,  1140,   -51,   -58,   -91,   255},	/* 53 */
	{    15,    -5,     0,     0,     0,  1024,   109,    25,    42,   255},	/* 54 */
	{    15,    26,   -56,     0,   739,   626,    91,   -33,   -71,   255},	/* 55 */
	{    14,    87,   -77,     0,   796,   -12,   119,     6,   -15,   255},	/* 56 */
	{   -30,    37,   -97,     0,   366,   309,    91,    52,   -58,   255},	/* 57 */
	{   -25,    14,  -105,     0,   469,   671,   112,   -14,   -40,   255},	/* 58 */
	{   -37,    63,  -119,     0,   643,   -15,   110,    46,   -16,   255},	/* 59 */
	{   -34,    51,  -134,     0,   834,   197,   117,    28,     0,   255},	/* 60 */
	{    -1,    92,   -84,     0,   893,    -6,   -13,   -28,  -116,   255},	/* 61 */
	{    -9,    43,   -65,     0,   798,   652,   -12,     4,  -119,   255},	/* 62 */
	{   -19,    33,   -41,     0,   504,   867,  -108,    34,    37,   255},	/* 63 */
	{     1,    15,     2,     0,     0,  1024,   -86,    45,    69,   255},	/* 64 */
	{    -7,    -8,    -3,     0,   567,   948,   -86,    11,    81,   255},	/* 65 */
	{    15,    -5,     0,     0,   281,   527,   109,    25,    42,   255},	/* 66 */
	{   -44,    15,   -94,     0,   462,   119,   -34,  -101,   -52,   255},	/* 67 */
	{   -25,    14,  -105,     0,   238,   421,   -25,  -110,   -37,   255},	/* 68 */
	{    -5,    15,   -45,     0,  1054,   784,   -10,  -117,   -19,   255},	/* 69 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
