#include<ultra64.h>

extern Vtx AS_Jumprobo_reg03_v[];
extern Vtx AS_Jumprobo_reg03_vmcur[];
extern Tri AS_Jumprobo_reg03_tri[];
extern Mtx AS_Jumprobo_reg03_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_05_txt[];
extern unsigned short AS_BossTX_06_txt[];
extern unsigned short AS_BossTX_BLACK_txt[];
extern unsigned short AS_Meteo_Tx01_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_Jumprobo_reg03[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,0,G_TX_MIRROR,5,0,G_TX_MIRROR,5,0),
	gs_Nin_LoadTextureImage(AS_BossTX_02_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&AS_Jumprobo_reg03_v[0],6,0),
	gsSP2Triangles(0, 1, 2, 0, 1, 0, 3, 0),
	gsSP2Triangles(1, 4, 2, 0, 4, 1, 3, 0),
	gsSP2Triangles(4, 5, 2, 0, 5, 4, 3, 0),
	gsSP2Triangles(5, 0, 2, 0, 0, 5, 3, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 6 vertices */
Vtx AS_Jumprobo_reg03_v[]={
	{    -1,     0,    13,     0,  1024,  1024,     0,     0,   119,     0},	/* 0 */
	{    71,     1,     0,     0,   511, -1766,    21,     0,  -118,     0},	/* 1 */
	{    -1,    24,     0,     0,   511,  1334,     0,    56,  -106,     0},	/* 2 */
	{    -1,   -24,     0,     0,   512,   713,     0,   -55,  -106,     0},	/* 3 */
	{    -1,     0,   -12,     0,     0,  1024,     0,     0,  -120,     0},	/* 4 */
	{   -24,     0,     0,     0,   512,  1909,   -57,     0,  -105,     0},	/* 5 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
