#include<ultra64.h>
extern Vtx JT_Hahen_01_v[];
extern Lights1 JT_Hahen_01_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_01[]={

	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_01_v[0], 17, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(5, 6, 7, 0),
	gsSP1Triangle(8, 9, 10, 0),
	gsSP1Triangle(11, 12, 13, 0),
	gsSP1Triangle(14, 15, 16, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 


#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  17 vertices */
Vtx JT_Hahen_01_v[]={
	{  8,-11,7,0,512,0,-13,5,118,255 },   /* v0 used p6/V1 1 times */ 
	{  0,32,0,0,512,512,58,27,100,255 },   /* v1 used p6/V2 1 times */ 
	{  -17,16,3,0,0,512,-13,5,118,255 },   /* v2 used p6/V3 1 times */ 
	{  -17,16,3,0,0,511,-40,14,-111,255 },   /* v3 used p1/V1 1 times */ 
	{  0,32,0,0,512,512,-38,18,-111,255 },   /* v4 used p1/V2 1 times */ 
	{  8,4,-7,0,512,0,-25,-12,-116,255 },   /* v5 used p5/V1 2 times */ 
	{  -15,-11,0,0,512,511,-15,-30,-114,255 },   /* v6 used p5/V2 1 times */ 
	{  -17,16,3,0,0,512,-40,14,-111,255 },   /* v7 used p5/V3 1 times */ 
	{  8,-11,7,0,322,314,114,24,23,255 },   /* v8 used p4/V1 1 times */ 
	{  8,4,-7,0,834,314,114,24,23,255 },   /* v9 used p4/V2 1 times */ 
	{  0,32,0,0,1213,-349,58,27,100,255 },   /* v10 used p4/V3 1 times */ 
	{  8,4,-7,0,6,295,-25,-12,-116,255 },   /* v11 used p3/V1 1 times */ 
	{  8,-11,7,0,518,295,26,-81,-82,255 },   /* v12 used p3/V2 1 times */ 
	{  -15,-11,0,0,518,-216,-15,-30,-114,255 },   /* v13 used p3/V3 1 times */ 
	{  -17,16,3,0,0,511,-13,5,118,255 },   /* v14 used p2/V1 1 times */ 
	{  -15,-11,0,0,512,512,-35,-15,112,255 },   /* v15 used p2/V2 1 times */ 
	{  8,-11,7,0,512,0,-13,5,118,255 },   /* v16 used p2/V3 1 times */ 
};




unsigned short JT_HahenTX01_txt[] = {
	0x1, 0x1, 0x1, 0x1, 0x1043, 0x4187, 0x4187, 0x1883, 0x1883, 0x3145, 0x4187, 0x1883, 0x1, 0x1083, 0x1, 0x1, 
	0x1, 0x1, 0x2905, 0x2905, 0x2905, 0x4187, 0x4187, 0x2905, 0x2905, 0x3105, 0x3945, 0x2905, 0x2905, 0x2905, 0x1, 0x1, 
	0x1, 0x1, 0x2905, 0x1, 0x801, 0x1, 0x1, 0x1, 0x1, 0x1883, 0x1883, 0x1, 0x1, 0x2905, 0x1, 0x1, 
	0x1, 0x1, 0x2905, 0x1883, 0x841, 0x1, 0x1041, 0x1, 0x1, 0x841, 0x841, 0x1, 0x1, 0x2905, 0x1, 0x1, 
	0x801, 0x20c3, 0x2905, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2905, 0x1, 0x1, 
	0x841, 0x1041, 0x2905, 0x3945, 0x1883, 0x18c3, 0x1041, 0x1, 0x841, 0x841, 0x1083, 0x18c3, 0x28c3, 0x2905, 0x1883, 0x1883, 
	0x1, 0x801, 0x2905, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x2905, 0x841, 0x1, 
	0x1, 0x1, 0x2905, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1083, 0x1883, 0x2905, 0x1043, 0x1, 
	0x1, 0x1, 0x2905, 0x1, 0x2905, 0x1083, 0x841, 0x1, 0x1, 0x841, 0x1083, 0x2905, 0x1, 0x1, 0x20c3, 0x1, 
	0x1, 0x1, 0x18c3, 0x1, 0x1043, 0x1, 0x1, 0x1, 0x1, 0x801, 0x1, 0x1, 0x1, 0x1, 0x1883, 0x1, 
	0x1, 0x1, 0x1043, 0x1, 0x801, 0x1, 0x1, 0x1, 0x1083, 0x18c3, 0x1041, 0x841, 0x1, 0x18c3, 0x841, 0x1, 
	0x1, 0x1, 0x841, 0x1, 0x1, 0x1041, 0x841, 0x20c3, 0x3145, 0x3945, 0x2905, 0x1083, 0x841, 0x1, 0x1, 0x1, 
	0x1, 0x1, 0x801, 0x1, 0x1, 0x1883, 0x1083, 0x1, 0x1083, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
	0x1, 0x20c3, 0x4187, 0x20c3, 0x1, 0x20c3, 0x1, 0x1, 0x801, 0x1, 0x4187, 0x4187, 0x20c3, 0x1041, 0x1, 0x1, 
	0x1, 0x1, 0x1, 0x1, 0x1, 0x2905, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x801, 0x1, 0x1, 
	0x1, 0x20c3, 0x4187, 0x20c3, 0x1, 0x3145, 0x3145, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 0x1, 
};

