#include<ultra64.h>

extern Vtx AS_Boss_weekpoint_v[];
extern Vtx AS_Boss_weekpoint_vmcur[];
extern Tri AS_Boss_weekpoint_tri[];
extern Mtx AS_Boss_weekpoint_matrix[];

extern unsigned short AS_BossTX_01_txt[];
extern unsigned short AS_BossTX_02_txt[];
extern unsigned short AS_BossTX_03_txt[];
extern unsigned short AS_BossTX_06_txt[];
extern unsigned short AS_BossTX_08_txt[];
extern unsigned short AS_BossTX_RED_txt[];
extern unsigned short AS_Meteo_Tx01_txt[];
extern unsigned short AS_BossTX_BLACK_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 AS_Boss_weekpoint[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,8,0,0,G_TX_MIRROR,3,0,G_TX_MIRROR,3,0),
	gs_Nin_LoadTextureImage(AS_BossTX_RED_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,8,0,7),

	gsSPVertex(&AS_Boss_weekpoint_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 4 vertices */
Vtx AS_Boss_weekpoint_v[]={
	{ 20,20,0,0, 256, 0,  255, 255, 255, 255 /* vertex color */  },   /* v0 p3/V1 used 2 times */ 
	{ -20,20,0,0, 0, 0,  255, 255, 255, 255 /* vertex color */  },   /* v1 p3/V2 used 1 times */ 
	{ -20,-20,0,0, 0, 256,  255, 255, 255, 255 /* vertex color */  },   /* v2 p3/V3 used 2 times */ 
	{ 20,-20,0,0, 256, 256,  255, 255, 255, 255 /* vertex color */  },   /* v3 p2/V3 used 1 times */ 
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 8 x 8  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short AS_BossTX_RED_txt[] = {
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
	0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 0xffff, 
};

