#include<ultra64.h>

extern Vtx AC_ankou_light_v[];

extern unsigned char AC_ankou_hikari_TX_01_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

/* main display list */


/* ======== DXFdata ======== */

Gfx AC_ankou_light[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_IA,G_IM_SIZ_8b,8,32,0,0,G_TX_CLAMP,3,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(AC_ankou_hikari_TX_01_txt,G_IM_FMT_IA,G_IM_SIZ_8b,8,32,0,7),

	gsSPVertex(&AC_ankou_light_v[0], 15, 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),
	gsSPVertex(&AC_ankou_light_v[15], 9, 0),
	gsSP1Triangle(0, 3, 4, 0),
	gsSP1Triangle(1, 5, 6, 0),
	gsSP1Triangle(2, 7, 8, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 24 vertices */
Vtx AC_ankou_light_v[]={
	{ 266,47,-42,0, 0, 1024, -27,82,-83,255 },   /* v0 used p289/V1 2 times */
	{ 267,5,-60,0, 256, 1024, -25,0,-117,255 },   /* v1 used p289/V2 2 times */
	{ -8,-2,0,0, 128, 0, -29,44,-108,255 },   /* v2 used p289/V3 2 times */
	{ 267,5,-60,0, 0, 1024, -25,0,-117,255 },   /* v3 used p288/V1 2 times */
	{ 268,-38,-42,0, 255, 1023, -23,-82,-83,255 },   /* v4 used p288/V2 2 times */
	{ -8,-2,0,0, 127, -1, -29,44,-108,255 },   /* v5 used p288/V3 2 times */
	{ 265,65,0,0, 0, 1024, -28,117,0,255 },   /* v6 used p287/V1 2 times */
	{ 266,47,-42,0, 256, 1024, -27,82,-83,255 },   /* v7 used p287/V2 2 times */
	{ -8,-2,0,0, 127, 2, -29,44,-108,255 },   /* v8 used p287/V3 2 times */
	{ 268,-38,-42,0, 0, 1024, -23,-82,-83,255 },   /* v9 used p286/V1 2 times */
	{ 268,-55,0,0, 256, 1024, -22,-117,0,255 },   /* v10 used p286/V2 2 times */
	{ -8,-2,0,0, 128, 0, -44,-42,101,255 },   /* v11 used p286/V3 2 times */
	{ 268,-38,42,0, 0, 1024, -23,-82,82,255 },   /* v12 used p282/V1 2 times */
	{ 267,5,60,0, 256, 1024, -25,0,116,255 },   /* v13 used p282/V2 2 times */
	{ -8,-2,0,0, 128, 1, -44,-42,101,255 },   /* v14 used p282/V3 2 times */
	{ 267,5,60,0, 0, 1024, -25,0,116,255 },   /* v15 used p283/V1 2 times */
	{ 268,-55,0,0, 0, 1024, -22,-117,0,255 },   /* v16 used p284/V1 2 times */
	{ 266,47,42,0, 0, 1024, -27,82,82,255 },   /* v17 used p285/V1 2 times */
	{ 266,47,42,0, 256, 1024, -27,82,82,255 },   /* v18 used p283/V2 2 times */
	{ -8,-2,0,0, 127, 2, -44,-42,101,255 },   /* v19 used p283/V3 2 times */
	{ 268,-38,42,0, 255, 1024, -23,-82,82,255 },   /* v20 used p284/V2 2 times */
	{ -8,-2,0,0, 128, 2, -44,-42,101,255 },   /* v21 used p284/V3 2 times */
	{ 265,65,0,0, 255, 1023, -28,117,0,255 },   /* v22 used p285/V2 2 times */
	{ -8,-2,0,0, 127, 2, -44,-42,101,255 },   /* v23 used p285/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 8 x 32  G_IM_SIZ_8b  G_IM_FMT_IA    */
unsigned char AC_ankou_hikari_TX_01_txt[] = {
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 
	0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 
	0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 0xfe, 
	0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 0xfc, 
	0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 0xfb, 
	0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 
	0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 0xfa, 
	0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 0xf9, 
	0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 
	0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 0xf8, 
	0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 0xf7, 
	0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 0xf6, 
	0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 
	0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 0xf5, 
	0xf4, 0xf4, 0xf4, 0xf4, 0xf4, 0xf4, 0xf4,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