#include<ultra64.h>
extern Vtx JT_Hahen_02_v[];
extern Lights1 JT_Hahen_02_material[];

extern unsigned short JT_HahenTX01_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)

#define G_CC_PRIMSHADE PRIMITIVE,0,SHADE,0,0,0,0,SHADE


/* ======== o1 ======== */

Gfx JT_Hahen_02[]={

	gsDPLoadTextureBlock(JT_HahenTX01_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, G_TX_MIRROR, G_TX_MIRROR, 4, 4, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&JT_Hahen_02_v[0], 18, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(15, 16, 17, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  18 vertices */
Vtx JT_Hahen_02_v[]={
	{  2,-28,2,0,0,511,-90,-10,76,255 },   /* v0 used p6/V1 1 times */ 
	{  0,51,0,0,-1382,511,87,15,80,255 },   /* v1 used p6/V2 1 times */ 
	{  -8,42,-1,0,-1237,662,-11,2,118,255 },   /* v2 used p6/V3 1 times */ 
	{  2,59,-15,0,-498,632,-103,15,-56,255 },   /* v3 used p5/V1 1 times */ 
	{  -4,-28,-15,0,997,993,-117,-3,-20,255 },   /* v4 used p5/V2 1 times */ 
	{  -8,42,-1,0,-125,417,-117,2,-17,255 },   /* v5 used p5/V3 1 times */ 
	{  2,-28,2,0,922,511,119,-2,-14,255 },   /* v6 used p4/V1 1 times */ 
	{  2,59,-15,0,-618,251,119,-2,-14,255 },   /* v7 used p4/V2 1 times */ 
	{  0,51,0,0,-460,511,87,15,80,255 },   /* v8 used p4/V3 1 times */ 
	{  2,59,-15,0,-1495,873,119,-2,-14,255 },   /* v9 used p3/V1 1 times */ 
	{  2,-28,2,0,66,813,119,-2,-14,255 },   /* v10 used p3/V2 1 times */ 
	{  -4,-28,-15,0,0,511,113,-6,-37,255 },   /* v11 used p3/V3 1 times */ 
	{  -8,42,-1,0,-1237,662,-117,2,-17,255 },   /* v12 used p2/V1 1 times */ 
	{  -4,-28,-15,0,14,820,-117,-3,-20,255 },   /* v13 used p2/V2 1 times */ 
	{  2,-28,2,0,0,512,-90,-10,76,255 },   /* v14 used p2/V3 1 times */ 
	{  -8,42,-1,0,-412,562,-117,2,-17,255 },   /* v15 used p1/V1 1 times */ 
	{  0,51,0,0,-557,713,87,15,80,255 },   /* v16 used p1/V2 1 times */ 
	{  2,59,-15,0,-435,992,-103,15,-56,255 },   /* v17 used p1/V3 1 times */ 
};




unsigned short JT_HahenTX01_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x4a49, 0x83cb, 0x83cb, 0x5a89, 0x5a89, 0x8bcb, 0xa48d, 0x62c9, 0x1883, 0x1, 0x1, 0x1, 
	0x1083, 0x2945, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x7b4b, 0x2905, 0x841, 
	0x1083, 0x2945, 0x7b4b, 0x801, 0x41c7, 0x3147, 0x39c7, 0x3147, 0x3147, 0x3147, 0x1, 0x1, 0x1, 0x7b4b, 0x1, 0x1, 
	0x1, 0x1, 0x7b4b, 0x5a89, 0x841, 0x2105, 0x58c3, 0xe8c1, 0xe8c1, 0xe8c1, 0x1, 0x1083, 0x1, 0x7b4b, 0x1, 0x1, 
	0x39c7, 0x6b09, 0x7b4b, 0x20c5, 0x3187, 0x2105, 0xbbc1, 0xee01, 0xee01, 0xee01, 0x1, 0x1043, 0x1, 0x7b4b, 0x18c3, 0x2105, 
	0x4a09, 0x3187, 0x7b4b, 0x940b, 0x20c5, 0x1083, 0xe8c1, 0xee01, 0xee0f, 0xee01, 0x1, 0x1, 0x1, 0x7b4b, 0x5a89, 0x5a89, 
	0x1, 0x841, 0x7b4b, 0x1, 0x18c3, 0x841, 0xe8c1, 0xee01, 0xee01, 0xee01, 0x1, 0x841, 0x1, 0x7b4b, 0x41c9, 0x18c3, 
	0x1, 0x841, 0x7b4b, 0x841, 0x20c5, 0x20c5, 0xe801, 0xe8c1, 0xa0c3, 0xe8c1, 0x1, 0x2105, 0x1, 0x7b4b, 0x5249, 0x1, 
	0x1, 0x1, 0x7b4b, 0x3987, 0x7b4b, 0x20c5, 0x18c3, 0x18c3, 0x20c5, 0x2905, 0x1, 0x7b4b, 0x1, 0x3987, 0x6b09, 0x1, 
	0x1, 0x1, 0x2905, 0x18c3, 0x1, 0x1, 0x1883, 0x20c5, 0x3147, 0x39c7, 0x1, 0x1, 0x1, 0x841, 0x62c9, 0x1, 
	0x1, 0x1, 0x3987, 0x20c5, 0x1, 0x1, 0x1, 0x841, 0x5249, 0x62c9, 0x4a09, 0x4a09, 0x3147, 0x62c9, 0x2945, 0x1, 
	0x841, 0x841, 0x3987, 0x1083, 0x1, 0x1083, 0x4a09, 0x6b09, 0x83cb, 0x940b, 0x5a89, 0x2105, 0x1, 0x1083, 0x841, 0x1, 
	0x1, 0x1083, 0x3187, 0x1, 0x1, 0x20c5, 0x5249, 0x3187, 0x3187, 0x39c7, 0x2105, 0x1, 0x1, 0x2945, 0x3987, 0x1, 
	0x1, 0x1, 0x1083, 0x1, 0x1, 0x1, 0x18c3, 0x1, 0x1883, 0x1, 0x1, 0x1, 0x1, 0x2905, 0x3187, 0x1, 
	0x1, 0x1, 0x841, 0x841, 0x1, 0x841, 0x1083, 0x1, 0x841, 0x1, 0x841, 0x841, 0x1083, 0x841, 0x1883, 0x1, 
	0x1, 0x1, 0x1, 0x841, 0x1083, 0x3987, 0x3147, 0x1, 0x1, 0x1, 0x18c3, 0x841, 0x1, 0x1, 0x841, 0x1, 
};

