#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], 18, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 2, 0),
	gsSP1Triangle(5, 6, 2, 0),
	gsSP1Triangle(7, 8, 2, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 13, 11, 0),
	gsSP1Triangle(14, 15, 11, 0),
	gsSP1Triangle(16, 17, 11, 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 /* vertex color */  },   /* v0 used p9/V1 1 times */ 
	{  -7,0,49,0,0,255, 255, 255, 255, 255 /* vertex color */  },   /* v1 used p9/V2 1 times */ 
	{  0,0,-27,0,256,0, 255, 255, 255, 255 /* vertex color */  },   /* v2 used p9/V3 4 times */ 
	{  7,0,49,0,0,255, 255, 255, 255, 255 /* vertex color */  },   /* v3 used p5/V1 1 times */ 
	{  0,-4,49,0,256,256, 255, 255, 255, 255 /* vertex color */  },   /* v4 used p5/V2 1 times */ 
	{  0,4,49,0,256,255, 255, 255, 255, 255 /* vertex color */  },   /* v5 used p3/V1 1 times */ 
	{  7,0,49,0,0,255, 255, 255, 255, 255 /* vertex color */  },   /* v6 used p3/V2 1 times */ 
	{  -7,0,49,0,0,255, 255, 255, 255, 255 /* vertex color */  },   /* v7 used p7/V1 1 times */ 
	{  0,4,49,0,256,256, 255, 255, 255, 255 /* vertex color */  },   /* v8 used p7/V2 1 times */ 
	{  -7,0,49,0,144,514, 255, 255, 255, 255 /* vertex color */  },   /* v9 used p8/V1 1 times */ 
	{  0,-4,49,0,400,514, 255, 255, 255, 255 /* vertex color */  },   /* v10 used p8/V2 1 times */ 
	{  0,0,55,0,400,258, 255, 255, 255, 255 /* vertex color */  },   /* v11 used p8/V3 4 times */ 
	{  0,-4,49,0,400,514, 255, 255, 255, 255 /* vertex color */  },   /* v12 used p4/V1 1 times */ 
	{  7,0,49,0,144,514, 255, 255, 255, 255 /* vertex color */  },   /* v13 used p4/V2 1 times */ 
	{  7,0,49,0,144,514, 255, 255, 255, 255 /* vertex color */  },   /* v14 used p2/V1 1 times */ 
	{  0,4,49,0,400,514, 255, 255, 255, 255 /* vertex color */  },   /* v15 used p2/V2 1 times */ 
	{  0,4,49,0,400,514, 255, 255, 255, 255 /* vertex color */  },   /* v16 used p6/V1 1 times */ 
	{  -7,0,49,0,144,514, 255, 255, 255, 255 /* vertex color */  },   /* v17 used p6/V2 1 times */ 
};




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, 
};

