#include<ultra64.h>

extern Vtx AS_Flyingshield_light_v[];

extern unsigned short AS_Rock_houdai_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 AS_Flyingshield_light[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,0,G_TX_WRAP,4,0,G_TX_WRAP,4,0),
	gs_Nin_LoadTextureImage(AS_Rock_houdai_TX_01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&AS_Flyingshield_light_v[0], 12, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 12 vertices */
Vtx AS_Flyingshield_light_v[]={
	{ -203,-108,-135,0, 90, 282, 46,0,-111,255 },   /* v0 used p105/V1 2 times */
	{ -203,-67,-135,0, 86, 231, 46,0,-111,255 },   /* v1 used p105/V2 2 times */
	{ -37,3,-66,0, 393, 265, 26,-10,-116,255 },   /* v2 used p105/V3 2 times */
	{ 0,-142,-126,0, 329, 509, 0,51,-109,255 },   /* v3 used p63/V1 2 times */
	{ 38,-258,-180,0, 109, 464, 0,51,-109,255 },   /* v4 used p63/V2 2 times */
	{ -38,-258,-180,0, 110, 550, 0,51,-109,255 },   /* v5 used p63/V3 2 times */
	{ 37,3,-66,0, 393, 265, -25,-10,-116,255 },   /* v6 used p59/V1 2 times */
	{ 203,-67,-135,0, 86, 231, -45,0,-111,255 },   /* v7 used p59/V2 2 times */
	{ 203,-108,-135,0, 90, 282, -45,0,-111,255 },   /* v8 used p59/V3 2 times */
	{ 37,3,-66,0, 334, 218, -25,-10,-116,255 },   /* v9 used p45/V1 2 times */
	{ 0,-74,-49,0, 288, 250, 0,-24,-117,255 },   /* v10 used p45/V2 2 times */
	{ -37,3,-66,0, 333, 283, 26,-10,-116,255 },   /* v11 used p45/V3 2 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
