#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],23,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSP2Triangles(6, 7, 8, 0, 9, 10, 11, 0),
	gsSP2Triangles(12, 13, 14, 0, 15, 16, 17, 0),
	gsSP2Triangles(18, 19, 20, 0, 21, 22, 17, 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},	/* 0 */
	{   267,     5,   -60,     0,   256,  1024,   -25,     0,  -117,   255},	/* 1 */
	{    -8,    -2,     0,     0,   128,     0,   -29,    44,  -108,   255},	/* 2 */
	{   267,     5,   -60,     0,     0,  1024,   -25,     0,  -117,   255},	/* 3 */
	{   268,   -38,   -42,     0,   255,  1023,   -23,   -82,   -83,   255},	/* 4 */
	{    -8,    -2,     0,     0,   127,    -1,   -29,    44,  -108,   255},	/* 5 */
	{   265,    65,     0,     0,     0,  1024,   -28,   117,     0,   255},	/* 6 */
	{   266,    47,   -42,     0,   256,  1024,   -27,    82,   -83,   255},	/* 7 */
	{    -8,    -2,     0,     0,   127,     2,   -29,    44,  -108,   255},	/* 8 */
	{   268,   -38,   -42,     0,     0,  1024,   -23,   -82,   -83,   255},	/* 9 */
	{   268,   -55,     0,     0,   256,  1024,   -22,  -117,     0,   255},	/* 10 */
	{    -8,    -2,     0,     0,   128,     0,   -44,   -42,   101,   255},	/* 11 */
	{   268,   -38,    42,     0,     0,  1024,   -23,   -82,    82,   255},	/* 12 */
	{   267,     5,    60,     0,   256,  1024,   -25,     0,   116,   255},	/* 13 */
	{    -8,    -2,     0,     0,   128,     1,   -44,   -42,   101,   255},	/* 14 */
	{   267,     5,    60,     0,     0,  1024,   -25,     0,   116,   255},	/* 15 */
	{   266,    47,    42,     0,   256,  1024,   -27,    82,    82,   255},	/* 16 */
	{    -8,    -2,     0,     0,   127,     2,   -44,   -42,   101,   255},	/* 17 */
	{   268,   -55,     0,     0,     0,  1024,   -22,  -117,     0,   255},	/* 18 */
	{   268,   -38,    42,     0,   255,  1024,   -23,   -82,    82,   255},	/* 19 */
	{    -8,    -2,     0,     0,   128,     2,   -44,   -42,   101,   255},	/* 20 */
	{   266,    47,    42,     0,     0,  1024,   -27,    82,    82,   255},	/* 21 */
	{   265,    65,     0,     0,   255,  1023,   -28,   117,     0,   255},	/* 22 */
};


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

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV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