#include<ultra64.h>

extern Vtx AS_Rock_shita_v[];

extern unsigned short AS_Rock_TX_07_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 AS_Rock_shita[]={

	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(AS_Rock_TX_07_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AS_Rock_shita_v[0],31,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
	gsSP2Triangles(12, 13, 14, 0, 15, 12, 16, 0),
	gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
	gsSP2Triangles(23, 20, 24, 0, 25, 26, 27, 0),
	gsSP1Triangle(28, 29, 30, 0),
	gsSPVertex(&AS_Rock_shita_v[31],13,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 4, 0),
	gsSP1Triangle(11, 12, 4, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 48 vertices */
Vtx AS_Rock_shita_v[]={
	{    -1,  -139,     0,     0, -1056,  1050,    11,  -116,    23,   255},	/* 0 */
	{    24,  -105,   -69,     0,   -32,  1050,    15,   -77,   -90,   255},	/* 1 */
	{    79,   -81,     6,     0,  -501,   -76,    93,   -68,    29,   255},	/* 2 */
	{   -71,  -100,   -19,     0,   -13,  1015,   -89,   -76,   -16,   255},	/* 3 */
	{    24,  -105,   -69,     0,   685,  1119,    15,   -77,   -90,   255},	/* 4 */
	{    -1,  -139,     0,     0,   403,   667,    11,  -116,    23,   255},	/* 5 */
	{     0,    -8,   110,     0,  -355,   475,    26,   -53,   103,   255},	/* 6 */
	{   -16,   -79,    74,     0,    21,  1023,   -26,   -74,    89,   255},	/* 7 */
	{    79,   -81,     6,     0,   864,   567,    93,   -68,    29,   255},	/* 8 */
	{    79,   -81,     6,     0,   743,  1548,    93,   -68,    29,   255},	/* 9 */
	{    24,  -105,   -69,     0,     0,  1024,    15,   -77,   -90,   255},	/* 10 */
	{    65,    -9,   -97,     0,  -363,  1975,    75,   -42,   -83,   255},	/* 11 */
	{   -66,   -15,   -90,     0,     0,  1024,     0,   120,    -4,   255},	/* 12 */
	{  -107,    -4,    32,     0,   202,  1547,    10,   119,    -8,   255},	/* 13 */
	{     0,    -8,   110,     0,   775,  1513,    -2,   120,    -5,   255},	/* 14 */
	{    65,    -9,   -97,     0,   510,   362,    -7,   120,    -3,   255},	/* 15 */
	{     0,    -8,   110,     0,  1241,  1533,    -2,   120,    -5,   255},	/* 16 */
	{     0,    -8,   110,     0,     0,  1024,    -2,   120,    -5,   255},	/* 17 */
	{   104,     0,    33,     0,   836,   517,   -11,   119,    -5,   255},	/* 18 */
	{    65,    -9,   -97,     0,   628,  -483,    -7,   120,    -3,   255},	/* 19 */
	{     0,    -8,   110,     0,     0,  1024,    26,   -53,   103,   255},	/* 20 */
	{  -107,    -4,    32,     0,   707,  1120,  -102,   -44,    41,   255},	/* 21 */
	{   -16,   -79,    74,     0,   226,   644,   -26,   -74,    89,   255},	/* 22 */
	{   104,     0,    33,     0,   629,   577,   106,   -43,    33,   255},	/* 23 */
	{    79,   -81,     6,     0,   893,  1035,    93,   -68,    29,   255},	/* 24 */
	{   -71,  -100,   -19,     0,  -339,  1954,   -89,   -76,   -16,   255},	/* 25 */
	{  -107,    -4,    32,     0,   684,  1954,  -102,   -44,    41,   255},	/* 26 */
	{   -66,   -15,   -90,     0,     0,  1024,   -61,   -45,   -92,   255},	/* 27 */
	{   -66,   -15,   -90,     0,   438,  2136,   -61,   -45,   -92,   255},	/* 28 */
	{    24,  -105,   -69,     0,   569,  1011,    15,   -77,   -90,   255},	/* 29 */
	{   -71,  -100,   -19,     0,  -260,  1461,   -89,   -76,   -16,   255},	/* 30 */
	{    65,    -9,   -97,     0,     0,  1024,    75,   -42,   -83,   255},	/* 31 */
	{   104,     0,    33,     0,  1252,   757,   106,   -43,    33,   255},	/* 32 */
	{    79,   -81,     6,     0,   738,    94,    93,   -68,    29,   255},	/* 33 */
	{    79,   -81,     6,     0,   636,   358,    93,   -68,    29,   255},	/* 34 */
	{   -16,   -79,    74,     0,     0,  1024,   -26,   -74,    89,   255},	/* 35 */
	{    -1,  -139,     0,     0,   747,  1127,    11,  -116,    23,   255},	/* 36 */
	{   -66,   -15,   -90,     0,  -245,  1003,   -61,   -45,   -92,   255},	/* 37 */
	{    65,    -9,   -97,     0,    92,  1944,    75,   -42,   -83,   255},	/* 38 */
	{    24,  -105,   -69,     0,   669,  1358,    15,   -77,   -90,   255},	/* 39 */
	{   -71,  -100,   -19,     0,  -329,  1809,   -89,   -76,   -16,   255},	/* 40 */
	{    -1,  -139,     0,     0,   297,  1704,    11,  -116,    23,   255},	/* 41 */
	{  -107,    -4,    32,     0,   756,  1066,  -102,   -44,    41,   255},	/* 42 */
	{   -71,  -100,   -19,     0,   389,   478,   -89,   -76,   -16,   255},	/* 43 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
