#include<ultra64.h>

extern Vtx AS_Jumprobo_reg01_v[];
extern Vtx AS_Jumprobo_reg01_vmcur[];
extern Tri AS_Jumprobo_reg01_tri[];
extern Mtx AS_Jumprobo_reg01_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_reg01[]={

	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_reg01_v[0],30,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 2, 1, 0),
	gsSP2Triangles(2, 4, 0, 0, 0, 4, 5, 0),
	gsSP2Triangles(6, 0, 7, 0, 1, 0, 6, 0),
	gsSP2Triangles(5, 7, 0, 0, 7, 5, 3, 0),
	gsSP2Triangles(7, 8, 6, 0, 8, 7, 3, 0),
	gsSP2Triangles(9, 10, 3, 0, 3, 10, 8, 0),
	gsSP2Triangles(3, 1, 9, 0, 6, 9, 1, 0),
	gsSP2Triangles(11, 12, 13, 0, 14, 15, 16, 0),
	gsSP2Triangles(17, 18, 6, 0, 6, 8, 17, 0),
	gsSP2Triangles(19, 9, 6, 0, 6, 18, 19, 0),
	gsSP2Triangles(18, 20, 19, 0, 17, 20, 18, 0),
	gsSP2Triangles(19, 20, 21, 0, 10, 9, 19, 0),
	gsSP2Triangles(19, 21, 10, 0, 22, 23, 24, 0),
	gsSP2Triangles(17, 8, 10, 0, 21, 20, 17, 0),
	gsSP2Triangles(10, 21, 17, 0, 25, 26, 27, 0),
	gsSP2Triangles(28, 26, 25, 0, 24, 29, 28, 0),
	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,8,8,0,0,G_TX_WRAP,3,0,G_TX_WRAP,3,0),
	gs_Nin_LoadTextureImage(AS_BossTX_06_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,8,8,0,7),

	gsSPVertex(&AS_Jumprobo_reg01_v[30],8,0),
	gsSP2Triangles(0, 1, 2, 0, 2, 1, 3, 0),
	gsSP2Triangles(4, 5, 6, 0, 6, 5, 7, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 42 vertices */
Vtx AS_Jumprobo_reg01_v[]={
	{    31,    18,    -1,     0,   490,  2028,    10,   113,    37,     0},	/* 0 */
	{    34,    10,     9,     0,   769,  2086,    -4,     8,   119,     0},	/* 1 */
	{    77,     4,     4,     0,   641,  3267,   -45,   -21,   108,     0},	/* 2 */
	{    76,    -2,     0,     0,   501,  3225,   -15,   -71,   -94,     0},	/* 3 */
	{    77,     9,     0,     0,   501,  3309,   -54,    75,    75,     0},	/* 4 */
	{    77,     4,    -5,     0,   362,  3267,   -45,   -21,  -109,     0},	/* 5 */
	{    18,     3,     0,     0,   511,  1581,    51,   106,   -25,     0},	/* 6 */
	{    34,    10,   -10,     0,   211,  2086,    -5,     2,  -120,     0},	/* 7 */
	{    17,    -2,    -5,     0,   372,  1539,   -70,    69,   -68,     0},	/* 8 */
	{    17,    -2,     5,     0,   651,  1539,    13,   -45,   109,     0},	/* 9 */
	{    17,    -7,     0,     0,   511,  1497,    33,   -78,   -84,     0},	/* 10 */
	{   111,     0,    18,     0,  1024,  1023,   102,    63,     0,     0},	/* 11 */
	{   176,   -82,     0,     0,   512, -1832,    94,    75,     0,     0},	/* 12 */
	{   111,     0,   -19,     0,     0,  1024,   102,    63,     0,     0},	/* 13 */
	{   111,     0,   -19,     0,    -3,  1011,   102,    63,     0,     0},	/* 14 */
	{    88,    59,     0,     0,   489,  2761,   112,    43,     0,     0},	/* 15 */
	{   111,     0,    18,     0,  1024,  1024,   102,    63,     0,     0},	/* 16 */
	{    -1,     0,   -18,     0,     0,  1024,    23,   -30,  -113,     0},	/* 17 */
	{     1,    19,     0,     0,   511,  1178,    27,   110,    40,     0},	/* 18 */
	{    -1,     0,    18,     0,  1023,  1024,    28,    27,   112,     0},	/* 19 */
	{   -19,     1,     0,     0,   511,   508,  -104,    44,    37,     0},	/* 20 */
	{    -3,   -20,     0,     0,   511,   869,   -74,   -59,    71,     0},	/* 21 */
	{   176,   -82,     0,     0,  1023,     0,   -44,   -57,    94,     0},	/* 22 */
	{   111,     0,    18,     0,  1023,  1024,   -46,   -28,   106,     0},	/* 23 */
	{    77,     4,     4,     0,     0,  1024,   -45,   -21,   108,     0},	/* 24 */
	{    77,     4,    -5,     0,     0,  1024,   -45,   -21,  -109,     0},	/* 25 */
	{   111,     0,   -19,     0,  1023,  1024,   -46,   -28,  -107,     0},	/* 26 */
	{   176,   -82,     0,     0,  1024,     0,   -57,   -73,   -75,     0},	/* 27 */
	{    88,    59,     0,     0,  1023,     0,  -111,    42,     0,     0},	/* 28 */
	{   111,     0,    18,     0,  1024,  1023,   -46,   -28,   106,     0},	/* 29 */
	{    77,     4,     4,     0,   255,   256,   -45,   -21,   108,     0},	/* 30 */
	{    76,    -2,     0,     0,   127,   334,   -15,   -69,    95,     0},	/* 31 */
	{   176,   -82,     0,     0,   128,  3765,   -57,   -73,   -75,     0},	/* 32 */
	{    77,     4,    -5,     0,     0,   256,   -45,   -21,  -109,     0},	/* 33 */
	{    77,     4,    -5,     0,   256,   256,   -45,   -21,  -109,     0},	/* 34 */
	{    77,     9,     0,     0,   128,   395,   -54,    75,    75,     0},	/* 35 */
	{    88,    59,     0,     0,   128,  1778,  -111,    42,     0,     0},	/* 36 */
	{    77,     4,     4,     0,     0,   255,   -45,   -21,   108,     0},	/* 37 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
