#include<ultra64.h>

extern Vtx AC_Entasis02_Broken_v[];

extern unsigned char AC_EntasisTX03_CI8_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 */


/* ======== g8 ======== */

Gfx AC_Entasis02_Broken[]={

	gsDPLoadTLUT_pal256(&AC_EntasisTX03_CI8_txt[512]),
	gsDPLoadTextureBlock(AC_EntasisTX03_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,16,32,0,G_TX_WRAP,G_TX_WRAP,4,5,0,0),
	gsDPSetTextureLUT(G_TT_RGBA16),

	gsSPVertex(&AC_Entasis02_Broken_v[0], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 0, 2, 0),
	gsSP1Triangle(4, 3, 2, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSP1Triangle(5, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(9, 11, 12, 0),
	gsSP1Triangle(11, 13, 12, 0),
	gsDPPipeSync(),
        gsDPSetTextureLUT(G_TT_NONE),
	gsSPEndDisplayList(),
}; /* g8 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 14 vertices */
Vtx AC_Entasis02_Broken_v[]={
	{ -36,170,62,0, 526, 49, -80,-2,88,255 },   /* v0 used p236/V1 2 times */
	{ -72,213,0,0, 0, -64, -105,-9,53,255 },   /* v1 used p236/V2 2 times */
	{ -52,10,0,0, 0, 479, -110,0,45,255 },   /* v2 used p236/V3 3 times */
	{ -36,-201,62,0, 526, 1044, -55,2,105,255 },   /* v3 used p237/V1 2 times */
	{ -72,-194,0,0, 0, 1024, -102,10,60,255 },   /* v4 used p235/V1 2 times */
	{ -36,-201,62,0, 0, 1027, -55,2,105,255 },   /* v5 used p227/V1 2 times */
	{ 36,-187,62,0, 526, 991, 80,3,88,255 },   /* v6 used p226/V2 2 times */
	{ 36,194,62,0, 526, 16, 57,-1,105,255 },   /* v7 used p227/V2 2 times */
	{ -36,170,62,0, 0, 76, -80,-2,88,255 },   /* v8 used p227/V3 2 times */
	{ 36,-187,62,0, 0, 1025, 80,3,88,255 },   /* v9 used p232/V1 4 times */
	{ 72,-205,0,0, 526, 1074, 105,10,56,255 },   /* v10 used p234/V2 2 times */
	{ 52,-6,0,0, 526, 536, 111,0,45,255 },   /* v11 used p232/V2 6 times */
	{ 36,194,62,0, 0, 0, 57,-1,105,255 },   /* v12 used p232/V3 4 times */
	{ 72,194,0,0, 526, -1, 104,-9,59,255 },   /* v13 used p233/V2 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
