#include<ultra64.h>

extern Vtx AW_sibuki_v[];

extern unsigned char AW_sibuki_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 */


/* ======== Default ======== */

Gfx AW_sibuki[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_IA,G_IM_SIZ_8b,16,16,0,0,G_TX_WRAP,4,0,G_TX_CLAMP,4,0),
	gs_Nin_LoadTextureImage(AW_sibuki_txt,G_IM_FMT_IA,G_IM_SIZ_8b,16,16,0,7),

	gsSPVertex(&AW_sibuki_v[0], 3, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSPEndDisplayList(),
}; /* Default */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 3 vertices */
Vtx AW_sibuki_v[]={
	{ 0,0,230,0, 1009, 175, -119,0,0,255 },   /* v0 used p2/V1 2 times */
	{ 0,60,170,0, 0, 0, -119,0,0,255 },   /* v1 used p2/V2 2 times */
	{ 0,0,0,0, 0, 512, -119,0,0,255 },   /* v2 used p2/V3 2 times */
};


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

#define	LDIRX	0
#define	LDIRY	0
#define	LD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