#include<ultra64.h>

extern Vtx VS_S_meter_v[];
extern Vtx VS_S_meter_vmcur[];
extern Tri VS_S_meter_tri[];
extern Mtx VS_S_meter_matrix[];

extern unsigned short VS_S_meter_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)

/* main display list */


/* ======== o1 ======== */

Gfx VS_S_meter[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,0,G_TX_MIRROR,4,0,G_TX_MIRROR,4,0),
	gs_Nin_LoadTextureImage(VS_S_meter_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&VS_S_meter_v[0],4,0),
	gsSP1Quadrangle(0, 1, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 4 vertices */
Vtx VS_S_meter_v[]={
	{    20,    20,     0,     0,   512,     0,   255,   255,   255,   255},	/* 0 */
	{   -20,    20,     0,     0,     0,     0,   255,   255,   255,   255},	/* 1 */
	{   -20,   -20,     0,     0,     0,   512,   255,   255,   255,   255},	/* 2 */
	{    20,   -20,     0,     0,   512,   512,   255,   255,   255,   255},	/* 3 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 16 x 16  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short VS_S_meter_txt[] = {
	0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0x503f, 0x783f, 0xa83f, 0xd03f, 0xf83f, 0xf835, 0xf82b, 0xf81f, 0xf815, 0xf80b, 0xf801, 0xf941, 0xfa81, 0xfbc1, 0xce73, 
	0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 0xce73, 
};

