#include<ultra64.h>

extern Vtx AS_Rock_dummy_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_dummy[]={

	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_dummy_v[0],31,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 5, 0, 8, 9, 10, 0),
	gsSP2Triangles(11, 5, 12, 0, 13, 14, 15, 0),
	gsSP2Triangles(16, 17, 18, 0, 19, 20, 21, 0),
	gsSP2Triangles(22, 23, 24, 0, 25, 26, 27, 0),
	gsSP1Triangle(28, 29, 30, 0),
	gsSPVertex(&AS_Rock_dummy_v[31],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, 16, 17, 0),
	gsSP2Triangles(18, 19, 9, 0, 20, 21, 22, 0),
	gsSP2Triangles(23, 24, 25, 0, 26, 27, 28, 0),
	gsSP1Triangle(9, 29, 30, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 66 vertices */
Vtx AS_Rock_dummy_v[]={
	{   -66,   -15,   -90,     0,  -245,  1003,   -69,    17,   -96,   255},	/* 0 */
	{    65,    -9,   -97,     0,    92,  1944,    73,    13,   -95,   255},	/* 1 */
	{    24,  -105,   -69,     0,   669,  1358,    15,   -77,   -90,   255},	/* 2 */
	{   -71,  -100,   -19,     0,  -329,  1809,   -89,   -76,   -16,   255},	/* 3 */
	{    -1,  -139,     0,     0,   297,  1704,    11,  -116,    23,   255},	/* 4 */
	{   -16,   -79,    74,     0,     0,  1024,   -26,   -74,    89,   255},	/* 5 */
	{  -107,    -4,    32,     0,   756,  1066,  -112,     7,    40,   255},	/* 6 */
	{   -71,  -100,   -19,     0,   389,   478,   -89,   -76,   -16,   255},	/* 7 */
	{    65,    -9,   -97,     0,     0,  1024,    73,    13,   -95,   255},	/* 8 */
	{   104,     0,    33,     0,  1252,   757,   117,    21,    18,   255},	/* 9 */
	{    79,   -81,     6,     0,   738,    94,    93,   -68,    29,   255},	/* 10 */
	{    79,   -81,     6,     0,   636,   358,    93,   -68,    29,   255},	/* 11 */
	{    -1,  -139,     0,     0,   747,  1127,    11,  -116,    23,   255},	/* 12 */
	{    79,   -81,     6,     0,   743,  1548,    93,   -68,    29,   255},	/* 13 */
	{    24,  -105,   -69,     0,     0,  1024,    15,   -77,   -90,   255},	/* 14 */
	{    65,    -9,   -97,     0,  -363,  1975,    73,    13,   -95,   255},	/* 15 */
	{     0,    -8,   110,     0,  -355,   475,     3,    11,   118,   255},	/* 16 */
	{   -16,   -79,    74,     0,    21,  1023,   -26,   -74,    89,   255},	/* 17 */
	{    79,   -81,     6,     0,   864,   567,    93,   -68,    29,   255},	/* 18 */
	{   -71,  -100,   -19,     0,   -13,  1015,   -89,   -76,   -16,   255},	/* 19 */
	{    24,  -105,   -69,     0,   685,  1119,    15,   -77,   -90,   255},	/* 20 */
	{    -1,  -139,     0,     0,   403,   667,    11,  -116,    23,   255},	/* 21 */
	{    -1,  -139,     0,     0, -1056,  1050,    11,  -116,    23,   255},	/* 22 */
	{    24,  -105,   -69,     0,   -32,  1050,    15,   -77,   -90,   255},	/* 23 */
	{    79,   -81,     6,     0,  -501,   -76,    93,   -68,    29,   255},	/* 24 */
	{     0,    -8,   110,     0,     0,  1024,     3,    11,   118,   255},	/* 25 */
	{  -107,    -4,    32,     0,   707,  1120,  -112,     7,    40,   255},	/* 26 */
	{   -16,   -79,    74,     0,   226,   644,   -26,   -74,    89,   255},	/* 27 */
	{   -66,   -15,   -90,     0,   438,  2136,   -69,    17,   -96,   255},	/* 28 */
	{    24,  -105,   -69,     0,   569,  1011,    15,   -77,   -90,   255},	/* 29 */
	{   -71,  -100,   -19,     0,  -260,  1461,   -89,   -76,   -16,   255},	/* 30 */
	{    52,   105,    46,     0, -1024,  1024,    86,    69,    46,   255},	/* 31 */
	{   104,     0,    33,     0,     0,  1024,   117,    21,    18,   255},	/* 32 */
	{    16,   125,   -39,     0, -1233,   236,    42,    82,   -77,   255},	/* 33 */
	{    16,   125,   -39,     0,   530,   397,    42,    82,   -77,   255},	/* 34 */
	{    65,    -9,   -97,     0,   554,  1284,    73,    13,   -95,   255},	/* 35 */
	{   -66,   -15,   -90,     0,  1513,  1005,   -69,    17,   -96,   255},	/* 36 */
	{   -43,   120,    13,     0, -1024,  1024,   -80,    84,    29,   255},	/* 37 */
	{  -107,    -4,    32,     0,     0,  1024,  -112,     7,    40,   255},	/* 38 */
	{     0,    -8,   110,     0,  -250,    95,     3,    11,   118,   255},	/* 39 */
	{   -66,   -15,   -90,     0,     0,  1024,   -69,    17,   -96,   255},	/* 40 */
	{   -43,   120,    13,     0,  1024,  1024,   -80,    84,    29,   255},	/* 41 */
	{    16,   125,   -39,     0,   907,   569,    42,    82,   -77,   255},	/* 42 */
	{    52,   105,    46,     0,    -2,  1024,    86,    69,    46,   255},	/* 43 */
	{     0,    -8,   110,     0,  1021,  1024,     3,    11,   118,   255},	/* 44 */
	{   104,     0,    33,     0,   432,   278,   117,    21,    18,   255},	/* 45 */
	{    52,   105,    46,     0,   324,   632,   -22,    66,    96,   255},	/* 46 */
	{   -43,   120,    13,     0,     0,  1024,   -80,    84,    29,   255},	/* 47 */
	{     0,    -8,   110,     0,   825,  1122,     3,    11,   118,   255},	/* 48 */
	{   -71,  -100,   -19,     0,  -339,  1954,   -89,   -76,   -16,   255},	/* 49 */
	{  -107,    -4,    32,     0,   684,  1954,  -112,     7,    40,   255},	/* 50 */
	{   104,     0,    33,     0,   629,   577,   117,    21,    18,   255},	/* 51 */
	{     0,    -8,   110,     0,     0,  1024,     3,    11,   118,   255},	/* 52 */
	{    79,   -81,     6,     0,   893,  1035,    93,   -68,    29,   255},	/* 53 */
	{   -43,   120,    13,     0,  -549,  1301,   -80,    84,    29,   255},	/* 54 */
	{    52,   105,    46,     0, -1395,  2439,    86,    69,    46,   255},	/* 55 */
	{    16,   125,   -39,     0,  -345,  2143,    42,    82,   -77,   255},	/* 56 */
	{   104,     0,    33,     0,   667,   225,   117,    21,    18,   255},	/* 57 */
	{    65,    -9,   -97,     0,     0,  1024,    73,    13,   -95,   255},	/* 58 */
	{    16,   125,   -39,     0,  1105,  1440,    42,    82,   -77,   255},	/* 59 */
	{  -107,    -4,    32,     0,  1147,  1013,  -112,     7,    40,   255},	/* 60 */
	{   -43,   120,    13,     0,   894,  -210,   -80,    84,    29,   255},	/* 61 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
