#include<ultra64.h>
extern Vtx JT_A_beam03_v[];
extern Lights1 JT_A_beam03_material[];

extern unsigned short JT_A_beam03_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


/* ======== o2 ======== */

Gfx JT_A_beam03[]={

	gsDPLoadTextureBlock(JT_A_beam03_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 8, 8, 0, G_TX_CLAMP | G_TX_NOMIRROR, G_TX_CLAMP | G_TX_NOMIRROR, 3, 3, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&JT_A_beam03_v[0],12,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 2, 0),
	gsSP2Triangles(5, 3, 2, 0, 1, 6, 2, 0),
	gsSP2Triangles(7, 8, 9, 0, 8, 10, 9, 0),
	gsSP2Triangles(10, 11, 9, 0, 11, 7, 9, 0),
	gsSPEndDisplayList(),
}; /* o2 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  18 vertices */
Vtx JT_A_beam03_v[]={
	{     0,    -4,    49,     0,   256,   255,   255,   255,   255,   255},	/* 0 */
	{    -7,     0,    49,     0,     0,   255,   255,   255,   255,   255},	/* 1 */
	{     0,     0,   -27,     0,   256,     0,   255,   255,   255,   255},	/* 2 */
	{     7,     0,    49,     0,     0,   255,   255,   255,   255,   255},	/* 3 */
	{     0,    -4,    49,     0,   256,   256,   255,   255,   255,   255},	/* 4 */
	{     0,     4,    49,     0,   256,   255,   255,   255,   255,   255},	/* 5 */
	{     0,     4,    49,     0,   256,   256,   255,   255,   255,   255},	/* 6 */
	{    -7,     0,    49,     0,   144,   514,   255,   255,   255,   255},	/* 7 */
	{     0,    -4,    49,     0,   400,   514,   255,   255,   255,   255},	/* 8 */
	{     0,     0,    55,     0,   400,   258,   255,   255,   255,   255},	/* 9 */
	{     7,     0,    49,     0,   144,   514,   255,   255,   255,   255},	/* 10 */
	{     0,     4,    49,     0,   400,   514,   255,   255,   255,   255},	/* 11 */
};




unsigned short JT_A_beam03_txt[] = {
	0x17f, 0x17f, 0x17f, 0x17f, 0x17f, 0x17f, 0x17f, 0x17f, 
	0x2bf, 0x2bf, 0x2bf, 0x2bf, 0x2bf, 0x2bf, 0x2bf, 0x2bf, 
	0x3ff, 0x3ff, 0x3ff, 0x3ff, 0x3ff, 0x3ff, 0x3ff, 0x3ff, 
	0x57f, 0x57f, 0x57f, 0x57f, 0x57f, 0x57f, 0x57f, 0x57f, 
	0x6bf, 0x6bf, 0x6bf, 0x6bf, 0x6bf, 0x6bf, 0x6bf, 0x6bf, 
	0x7ff, 0x7ff, 0x7ff, 0x7ff, 0x7ff, 0x7ff, 0x7ff, 0x7ff, 
	0x67ff, 0x67ff, 0x67ff, 0x67ff, 0x67ff, 0x67ff, 0x67ff, 0x67ff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
};

