#include<ultra64.h>
extern Vtx jetc_1_area_v[];
extern Vtx jetc_1_area_vmcur[];
extern Tri jetc_1_area_tri[];
extern Mtx jetc_1_area_matrix[];
extern Lights1 jetc_1_area_light0;
extern Lights1 jetc_1_area_light1;




#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


/* ======== c_06 ======== */

static	Gfx jetc_1_area_grp_c_06[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[35], 4, 0),
	gsSP1Triangle(1, 2, 3, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* c_06 */ 

/* ======== c_05 ======== */

static	Gfx jetc_1_area_grp_c_05[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[32], 4, 0),
	gsSP1Triangle(1, 2, 3, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* c_05 */ 

/* ======== c_04 ======== */

static	Gfx jetc_1_area_grp_c_04[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[29], 4, 0),
	gsSP1Triangle(1, 2, 3, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* c_04 */ 

/* ======== c_03 ======== */

static	Gfx jetc_1_area_grp_c_03[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[26], 4, 0),
	gsSP1Triangle(1, 2, 3, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* c_03 */ 

/* ======== c_02 ======== */

static	Gfx jetc_1_area_grp_c_02[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[22], 1, 0),
	gsSPVertex(&jetc_1_area_v[24], 3, 1),
	gsSP1Triangle(1, 2, 3, 0),
	gsSP1Triangle(1, 3, 0, 0),
	gsSPEndDisplayList(),
}; /* c_02 */ 

/* ======== c_01 ======== */

static	Gfx jetc_1_area_grp_c_01[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,165,165,165,255),
	gsSPVertex(&jetc_1_area_v[20], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* c_01 */ 

/* ======== c_00 ======== */

static	Gfx jetc_1_area_grp_c_00[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,255,255,255,255),
	gsSPVertex(&jetc_1_area_v[16], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* c_00 */ 

/* ======== a_03 ======== */

static	Gfx jetc_1_area_grp_a_03[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,255,255,255,255),
	gsSPVertex(&jetc_1_area_v[12], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* a_03 */ 

/* ======== a_02 ======== */

static	Gfx jetc_1_area_grp_a_02[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,255,255,255,255),
	gsSPVertex(&jetc_1_area_v[8], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* a_02 */ 

/* ======== a_01 ======== */

static	Gfx jetc_1_area_grp_a_01[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,255,255,255,255),
	gsSPVertex(&jetc_1_area_v[4], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* a_01 */ 

/* ======== a_00 ======== */

static	Gfx jetc_1_area_grp_a_00[]={



	gsSPTexture(0x80, 0x80, 0, G_TX_RENDERTILE, G_OFF),
	gsDPSetCombineMode(G_CC_PRIMSHADE, G_CC_PRIMSHADE),


	gsDPPipeSync(),
	gsDPSetPrimColor(0,0,255,255,255,255),
	gsSPVertex(&jetc_1_area_v[0], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* a_00 */ 

/* ======== db ======== */

Gfx jetc_1_area_model[]={
	gsSPNumLights(NUMLIGHTS_1),
	gsSPDisplayList(jetc_1_area_grp_a_00),
	gsSPDisplayList(jetc_1_area_grp_a_01),
	gsSPDisplayList(jetc_1_area_grp_a_02),
	gsSPDisplayList(jetc_1_area_grp_a_03),
	gsSPDisplayList(jetc_1_area_grp_c_00),
	gsSPDisplayList(jetc_1_area_grp_c_01),
	gsSPDisplayList(jetc_1_area_grp_c_02),
	gsSPDisplayList(jetc_1_area_grp_c_03),
	gsSPDisplayList(jetc_1_area_grp_c_04),
	gsSPDisplayList(jetc_1_area_grp_c_05),
	gsSPDisplayList(jetc_1_area_grp_c_06),
	gsSPEndDisplayList(),
}; /* db */ 

Gfx jetc_1_area_modelT[] = {
	gsSPEndDisplayList()
};

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  39 vertices */
Vtx jetc_1_area_v[]={
	{  30000,0,-30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v0 used p18/V1 1 times */ 
	{  500,0,-30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v1 used p18/V2 1 times */ 
	{  500,0,50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v2 used p18/V3 1 times */ 
	{  30000,0,50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v3 used p18/V4 1 times */ 
	{  30000,0,-50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v4 used p19/V1 1 times */ 
	{  500,0,-50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v5 used p19/V2 1 times */ 
	{  500,0,30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v6 used p19/V3 1 times */ 
	{  30000,0,30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v7 used p19/V4 1 times */ 
	{  1000,0,-30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v8 used p20/V1 1 times */ 
	{  -30000,0,-30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v9 used p20/V2 1 times */ 
	{  -30000,0,50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v10 used p20/V3 1 times */ 
	{  1000,0,50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v11 used p20/V4 1 times */ 
	{  1000,0,-50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v12 used p21/V1 1 times */ 
	{  -30000,0,-50,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v13 used p21/V2 1 times */ 
	{  -30000,0,30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v14 used p21/V3 1 times */ 
	{  1000,0,30000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v15 used p21/V4 1 times */ 
	{  8500,0,-2000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v16 used p11/V1 1 times */ 
	{  -6200,0,-2000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v17 used p11/V2 1 times */ 
	{  -6200,0,4000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v18 used p11/V3 1 times */ 
	{  8500,0,4000,0,0,0, 255, 255, 255, 255 /* vertex color */  },   /* v19 used p11/V4 1 times */ 
	{  -6200,0,-1900,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v20 used p12/V1 1 times */ 
	{  -6400,0,-1900,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v21 used p12/V2 1 times */ 
	{  -6400,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v22 used p12/V3 2 times */ 
	{  -6200,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v23 used p12/V4 1 times */ 
	{  -6400,0,-1800,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v24 used p13/V1 1 times */ 
	{  -6600,0,-1800,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v25 used p13/V2 1 times */ 
	{  -6600,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v26 used p13/V3 2 times */ 
	{  -6600,0,-1700,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v27 used p14/V1 1 times */ 
	{  -6700,0,-1700,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v28 used p14/V2 1 times */ 
	{  -6700,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v29 used p14/V3 2 times */ 
	{  -6700,0,-1600,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v30 used p15/V1 1 times */ 
	{  -6800,0,-1600,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v31 used p15/V2 1 times */ 
	{  -6800,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v32 used p15/V3 2 times */ 
	{  -6800,0,-1500,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v33 used p16/V1 1 times */ 
	{  -6900,0,-1500,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v34 used p16/V2 1 times */ 
	{  -6900,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v35 used p16/V3 2 times */ 
	{  -6900,0,-1300,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v36 used p17/V1 1 times */ 
	{  -7000,0,-1300,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v37 used p17/V2 1 times */ 
	{  -7000,0,4000,0,0,0, 252, 252, 252, 255 /* vertex color */  },   /* v38 used p17/V3 1 times */ 
};




/*   2 Lights */
Lights1 jetc_1_area_light0 = gdSPDefLights1( 
	0,	0,	0,	 /* ambient            */ 
	255,	255,	255,	 /* diffuse 0 rgb      */ 
	93,	-27,	68	 /* diffuse 0 ijk      */ 
	); 

Lights1 jetc_1_area_light1 = gdSPDefLights1( 
	51,	51,	51,	 /* ambient            */ 
	255,	255,	255,	 /* diffuse 0 rgb      */ 
	59,	59,	84	 /* diffuse 0 ijk      */ 
	); 

