#include<ultra64.h>

extern Vtx JT_bomitem01_v[];

extern unsigned char JT_bom01_CI4_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 */


/* ======== g12 ======== */

Gfx JT_bomitem01[]={

	gsDPSetTextureLUT(G_TT_RGBA16),
	gsDPLoadTLUT_pal16(0,&JT_bom01_CI4_txt[512]),
	gsDPLoadTextureBlock_4b(JT_bom01_CI4_txt,G_IM_FMT_CI,32,32,0,G_TX_CLAMP,G_TX_CLAMP,5,5,0,0),

	gsSPVertex(&JT_bomitem01_v[0], 6, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(1, 3, 2, 0),
	gsSP1Triangle(2, 4, 0, 0),
	gsSP1Triangle(2, 5, 4, 0),
	gsDPPipeSync(),
        gsDPSetTextureLUT(G_TT_NONE),
	gsSPEndDisplayList(),
}; /* g12 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 6 vertices */
Vtx JT_bomitem01_v[]={
	{ 0,22,8,0, 477, -238, 0,0,119,255 },   /* v0 used p353/V3 2 times */
	{ -19,11,8,0, -219, 136, 0,0,119,255 },   /* v1 used p355/V1 2 times */
	{ 0,-22,8,0, 477, 1262, 0,0,119,255 },   /* v2 used p355/V3 4 times */
	{ -19,-11,8,0, -219, 887, 0,0,119,255 },   /* v3 used p355/V2 2 times */
	{ 19,11,8,0, 1174, 136, 0,0,119,255 },   /* v4 used p354/V3 2 times */
	{ 19,-11,8,0, 1174, 887, 0,0,119,255 },   /* v5 used p354/V2 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 32 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned char JT_bom01_CI4_txt[] = {
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 
	0x00, 0x01, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x22, 0x34, 0x56, 0x00, 0x00, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x78, 0x96, 0x00, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x78, 0xa0, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x8b, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x73, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0xb0, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x24, 0x44, 0x44, 0x44, 0x38, 0x77, 0x77, 0x77, 0x77, 0x50, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x0a, 0x77, 0x77, 0x77, 0x77, 0x40, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x77, 0x77, 0x77, 0x40, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x77, 0x77, 0x77, 0x50, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x01, 0x77, 0x77, 0x77, 0x77, 0x60, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0xc2, 0x22, 0x22, 0x22, 0xc7, 0x77, 0x77, 0x77, 0x79, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0xc6, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x7c, 0x60, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x26, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x7c, 0x60, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x40, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x24, 0x44, 0x44, 0x44, 0x44, 0xd7, 0x77, 0x77, 0x77, 0x80, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0x05, 0x77, 0x77, 0x77, 0x7e, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0xc7, 0x77, 0x77, 0x7f, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x27, 0x77, 0x77, 0x74, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x40, 0x00, 0x00, 0x00, 0x00, 0x0b, 0x77, 0x77, 0x77, 0x74, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x3e, 0xee, 0xee, 0xee, 0xee, 0x1c, 0x77, 0x77, 0x77, 0x7f, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x7a, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0xc0, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x10, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x73, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x90, 0x00, 0x00, 
	0x00, 0x04, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x77, 0x7c, 0x9b, 0x00, 0x00, 0x00, 
	0x00, 0x0b, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xee, 0xea, 0x00, 0x00, 0x00, 0x00, 0x00, 
	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 

/* 16colors */
0x0, 0x1, 0x63, 0x19, 0xBD, 0xEF, 0x9C, 0xE7, 0x84, 0x21, 0x52, 0x95, 0x10, 0x85, 0xFF, 0xFF, 0xEF, 0x7B, 0x8C, 0x63, 0x31, 0x8D, 0x21, 0x9, 0xCE, 0x73, 0xAD, 0x6B, 0x42, 0x11, 0x73, 0x9D, 
};

