#include<ultra64.h>

extern Vtx AC_Entasis02_Bottom_v[];
extern Lights1 AC_Entasis02_Bottom_material[];

extern unsigned char AC_EntasisTX01_CI8_txt[];
extern unsigned char AC_EntasisTX02_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_Bottom[]={

	gsDPLoadTLUT_pal256(&AC_EntasisTX01_CI8_txt[1024]),
	gsDPLoadTextureBlock(AC_EntasisTX01_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,16,64,0,G_TX_CLAMP,G_TX_WRAP,4,6,0,0),
	gsDPSetTextureLUT(G_TT_RGBA16),

	gsSPVertex(&AC_Entasis02_Bottom_v[0], 16, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(5, 7, 6, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(9, 11, 10, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(12, 14, 15, 0),
	gsSPVertex(&AC_Entasis02_Bottom_v[16], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),

	gsDPLoadTLUT_pal256(&AC_EntasisTX02_CI8_txt[256]),
	gsDPLoadTextureBlock(AC_EntasisTX02_CI8_txt,G_IM_FMT_CI,G_IM_SIZ_8b,16,16,0,G_TX_WRAP,G_TX_WRAP,4,4,0,0),

	gsSPVertex(&AC_Entasis02_Bottom_v[20], 14, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),
	gsSP1Triangle(4, 5, 6, 0),
	gsSP1Triangle(6, 5, 7, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(8, 9, 6, 0),
	gsSP1Triangle(10, 11, 12, 0),
	gsSP1Triangle(10, 13, 11, 0),
	gsSPVertex(&AC_Entasis02_Bottom_v[34], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 3, 1, 0),
	gsDPPipeSync(),
        gsDPSetTextureLUT(G_TT_NONE),
	gsSPEndDisplayList(),
}; /* g8 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 38 vertices */
Vtx AC_Entasis02_Bottom_v[]={
	{ 36,85,62,0, 0, 2206, 40,0,112,255 },   /* v0 used p218/V1 2 times */
	{ 72,85,0,0, 526, 2206, 118,0,22,255 },   /* v1 used p218/V2 4 times */
	{ 36,563,62,0, 0, 614, 78,0,90,255 },   /* v2 used p218/V3 4 times */
	{ 72,545,0,0, 526, 675, 115,24,-25,255 },   /* v3 used p219/V2 2 times */
	{ 36,549,-62,0, 526, 684, 99,44,-51,255 },   /* v4 used p238/V1 2 times */
	{ 72,545,0,0, 0, 697, 115,24,-25,255 },   /* v5 used p238/V2 4 times */
	{ 36,85,-62,0, 526, 2203, 104,0,-60,255 },   /* v6 used p238/V3 4 times */
	{ 72,85,0,0, 0, 2203, 118,0,22,255 },   /* v7 used p241/V2 2 times */
	{ -72,85,0,0, 518, 2203, -119,0,0,255 },   /* v8 used p239/V1 2 times */
	{ -72,556,0,0, 502, 659, -95,45,-57,255 },   /* v9 used p239/V2 4 times */
	{ -36,87,-62,0, 26, 2203, -103,0,-60,255 },   /* v10 used p239/V3 4 times */
	{ -36,563,-62,0, 10, 645, -103,0,-60,255 },   /* v11 used p240/V2 2 times */
	{ -36,549,62,0, 0, 661, -38,6,112,255 },   /* v12 used p186/V1 4 times */
	{ -36,85,62,0, 0, 2206, -78,0,90,255 },   /* v13 used p186/V2 2 times */
	{ 36,85,62,0, 526, 2206, 40,0,112,255 },   /* v14 used p186/V3 4 times */
	{ 36,563,62,0, 526, 614, 78,0,90,255 },   /* v15 used p187/V3 2 times */
	{ -72,556,0,0, 0, 636, -103,0,59,255 },   /* v16 used p189/V1 4 times */
	{ -36,85,62,0, 526, 2206, -78,0,90,255 },   /* v17 used p189/V3 4 times */
	{ -36,549,62,0, 526, 661, -38,6,112,255 },   /* v18 used p190/V3 2 times */
	{ -72,85,0,0, 0, 2206, -119,0,0,255 },   /* v19 used p189/V2 2 times */
	{ 0,85,136,0, 718, 215, -84,0,84,255 },   /* v20 used p191/V1 4 times */
	{ -136,0,0,0, 93, 444, -84,0,84,255 },   /* v21 used p191/V3 4 times */
	{ 0,0,136,0, 748, 444, -84,0,84,255 },   /* v22 used p192/V3 2 times */
	{ -136,85,0,0, 62, 215, -17,117,17,255 },   /* v23 used p191/V2 2 times */
	{ -36,549,62,0, -164, 501, -38,6,112,255 },   /* v24 used p195/V1 2 times */
	{ 36,563,62,0, 118, 701, 0,120,-10,255 },   /* v25 used p194/V2 4 times */
	{ -72,556,0,0, -36, 109, -95,45,-57,255 },   /* v26 used p196/V1 4 times */
	{ 72,545,0,0, 521, 571, 115,24,-25,255 },   /* v27 used p196/V2 2 times */
	{ 36,549,-62,0, 648, 185, 99,44,-51,255 },   /* v28 used p196/V3 4 times */
	{ -36,563,-62,0, 371, -58, 23,115,24,255 },   /* v29 used p199/V2 2 times */
	{ -136,85,0,0, -166, 15, -17,117,17,255 },   /* v30 used p188/V1 4 times */
	{ 136,85,0,0, 612, -74, 0,120,0,255 },   /* v31 used p188/V2 4 times */
	{ 0,85,-136,0, 192, -404, 0,120,0,255 },   /* v32 used p188/V3 2 times */
	{ 0,85,136,0, 252, 344, 0,120,0,255 },   /* v33 used p193/V2 2 times */
	{ 136,85,0,0, -184, 365, 85,0,84,255 },   /* v34 used p197/V1 4 times */
	{ 0,0,136,0, 598, 80, 85,0,84,255 },   /* v35 used p197/V3 4 times */
	{ 136,0,0,0, -114, 120, 85,0,84,255 },   /* v36 used p198/V3 2 times */
	{ 0,85,136,0, 528, 326, 85,0,84,255 },   /* v37 used p197/V2 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
