#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], 15, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSPVertex(&AS_Rock_shita_v[15], 5, 0),
	gsSPVertex(&AS_Rock_shita_v[26], 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(&AS_Rock_shita_v[20], 5, 0),
	gsSPVertex(&AS_Rock_shita_v[36], 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(&AS_Rock_shita_v[25], 1, 0),
	gsSPVertex(&AS_Rock_shita_v[46], 2, 1),
	gsSP1Triangle(0, 1, 2, 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 },   /* v0 used p19/V1 2 times */
	{ 24,-105,-69,0, -32, 1050, 15,-77,-90,255 },   /* v1 used p19/V2 2 times */
	{ 79,-81,6,0, -501, -76, 93,-68,29,255 },   /* v2 used p19/V3 2 times */
	{ -71,-100,-19,0, -13, 1015, -89,-76,-16,255 },   /* v3 used p20/V1 2 times */
	{ 24,-105,-69,0, 685, 1119, 15,-77,-90,255 },   /* v4 used p20/V2 2 times */
	{ -1,-139,0,0, 403, 667, 11,-116,23,255 },   /* v5 used p20/V3 2 times */
	{ 0,-8,110,0, -355, 475, 26,-53,103,255 },   /* v6 used p21/V1 2 times */
	{ -16,-79,74,0, 21, 1023, -26,-74,89,255 },   /* v7 used p21/V2 2 times */
	{ 79,-81,6,0, 864, 567, 93,-68,29,255 },   /* v8 used p21/V3 2 times */
	{ 79,-81,6,0, 743, 1548, 93,-68,29,255 },   /* v9 used p22/V1 2 times */
	{ 24,-105,-69,0, 0, 1024, 15,-77,-90,255 },   /* v10 used p22/V2 2 times */
	{ 65,-9,-97,0, -363, 1975, 75,-42,-83,255 },   /* v11 used p22/V3 2 times */
	{ -66,-15,-90,0, 0, 1024, 0,120,-4,255 },   /* v12 used p39/V1 2 times */
	{ -107,-4,32,0, 202, 1547, 10,119,-8,255 },   /* v13 used p39/V2 2 times */
	{ 0,-8,110,0, 775, 1513, -2,120,-5,255 },   /* v14 used p39/V3 2 times */
	{ 65,-9,-97,0, 510, 362, -7,120,-3,255 },   /* v15 used p40/V1 2 times */
	{ 0,-8,110,0, 0, 1024, -2,120,-5,255 },   /* v16 used p41/V1 2 times */
	{ 0,-8,110,0, 0, 1024, 26,-53,103,255 },   /* v17 used p18/V1 2 times */
	{ 104,0,33,0, 629, 577, 106,-43,33,255 },   /* v18 used p10/V1 2 times */
	{ -71,-100,-19,0, -339, 1954, -89,-76,-16,255 },   /* v19 used p11/V1 2 times */
	{ -66,-15,-90,0, 438, 2136, -61,-45,-92,255 },   /* v20 used p12/V1 2 times */
	{ 65,-9,-97,0, 0, 1024, 75,-42,-83,255 },   /* v21 used p13/V1 2 times */
	{ 79,-81,6,0, 636, 358, 93,-68,29,255 },   /* v22 used p17/V1 2 times */
	{ -66,-15,-90,0, -245, 1003, -61,-45,-92,255 },   /* v23 used p16/V1 2 times */
	{ -71,-100,-19,0, -329, 1809, -89,-76,-16,255 },   /* v24 used p15/V1 2 times */
	{ -107,-4,32,0, 756, 1066, -102,-44,41,255 },   /* v25 used p14/V1 2 times */
	{ -66,-15,-90,0, 0, 1024, 0,120,-4,255 },   /* v26 used p40/V2 2 times */
	{ 0,-8,110,0, 1241, 1533, -2,120,-5,255 },   /* v27 used p40/V3 2 times */
	{ 104,0,33,0, 836, 517, -11,119,-5,255 },   /* v28 used p41/V2 2 times */
	{ 65,-9,-97,0, 628, -483, -7,120,-3,255 },   /* v29 used p41/V3 2 times */
	{ -107,-4,32,0, 707, 1120, -102,-44,41,255 },   /* v30 used p18/V2 2 times */
	{ -16,-79,74,0, 226, 644, -26,-74,89,255 },   /* v31 used p18/V3 2 times */
	{ 0,-8,110,0, 0, 1024, 26,-53,103,255 },   /* v32 used p10/V2 2 times */
	{ 79,-81,6,0, 893, 1035, 93,-68,29,255 },   /* v33 used p10/V3 2 times */
	{ -107,-4,32,0, 684, 1954, -102,-44,41,255 },   /* v34 used p11/V2 2 times */
	{ -66,-15,-90,0, 0, 1024, -61,-45,-92,255 },   /* v35 used p11/V3 2 times */
	{ 24,-105,-69,0, 569, 1011, 15,-77,-90,255 },   /* v36 used p12/V2 2 times */
	{ -71,-100,-19,0, -260, 1461, -89,-76,-16,255 },   /* v37 used p12/V3 2 times */
	{ 104,0,33,0, 1252, 757, 106,-43,33,255 },   /* v38 used p13/V2 2 times */
	{ 79,-81,6,0, 738, 94, 93,-68,29,255 },   /* v39 used p13/V3 2 times */
	{ -16,-79,74,0, 0, 1024, -26,-74,89,255 },   /* v40 used p17/V2 2 times */
	{ -1,-139,0,0, 747, 1127, 11,-116,23,255 },   /* v41 used p17/V3 2 times */
	{ 65,-9,-97,0, 92, 1944, 75,-42,-83,255 },   /* v42 used p16/V2 2 times */
	{ 24,-105,-69,0, 669, 1358, 15,-77,-90,255 },   /* v43 used p16/V3 2 times */
	{ -1,-139,0,0, 297, 1704, 11,-116,23,255 },   /* v44 used p15/V2 2 times */
	{ -16,-79,74,0, 0, 1024, -26,-74,89,255 },   /* v45 used p15/V3 2 times */
	{ -71,-100,-19,0, 389, 478, -89,-76,-16,255 },   /* v46 used p14/V2 2 times */
	{ -16,-79,74,0, 0, 1024, -26,-74,89,255 },   /* v47 used p14/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
