#include<ultra64.h>

extern Vtx SB_Kirai_01_v[];
extern Vtx SB_Kirai_01_vmcur[];
extern Tri SB_Kirai_01_tri[];
extern Mtx SB_Kirai_01_matrix[];

extern unsigned short SB_Kirai_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

Gfx SB_Kirai_01[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,0,G_TX_WRAP,5,0,G_TX_WRAP,5,0),
	gs_Nin_LoadTextureImage(SB_Kirai_01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&SB_Kirai_01_v[0], 1, 0),
	gsSP1Triangle(0, 0, 0, 0),
	gsSP1Triangle(0, 0, 0, 0),
	gs_Nin_LoadTextureImage(SB_Kirai_01_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&SB_Kirai_01_v[1], 4, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(0, 2, 3, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 5 vertices */
Vtx SB_Kirai_01_v[]={
	{ -80,-60,0,0, -512, 1280,  0, 0, 53, 255 /* vertex color */  },   /* v0 used p1/V1 4 times */
	{ 40,40,0,0, 1024, 0,  255, 255, 255, 255 /* vertex color */  },   /* v1 used p2/V1 1 times */
	{ -40,40,0,0, 0, 0,  255, 255, 255, 255 /* vertex color */  },   /* v2 used p2/V2 1 times */
	{ -40,-40,0,0, 0, 1024,  255, 255, 255, 255 /* vertex color */  },   /* v3 used p2/V3 1 times */
	{ 40,-40,0,0, 1024, 1024,  255, 255, 255, 255 /* vertex color */  },   /* v4 used p2/V4 1 times */
};


/*   0 vertices */
/*   2 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
/* 32 x 32  G_IM_SIZ_16b G_IM_FMT_RGBA  */
unsigned short SB_Kirai_01_txt[] = {
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6a01, 0xb48d, 0x6a01, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1041, 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194b, 0x1107, 0x885, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x885, 0x19cf, 0x2a93, 0x2ad5, 0x3315, 0x2ad5, 0x2a93, 0x19cf, 0x885, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x885, 0x220f, 0x2a53, 0x3315, 0x5c5d, 0x7d61, 0x5c5d, 0x3315, 0x2a53, 0x220f, 0x885, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x43, 0x198d, 0x220f, 0x2a51, 0x53d9, 0xaea9, 0xe7f3, 0xaea9, 0x53d9, 0x2a51, 0x220f, 0x198d, 0x43, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1109, 0x198d, 0x19cf, 0x2251, 0x5395, 0xc5d9, 0xee59, 0xc5d9, 0x5395, 0x2251, 0x19cf, 0x198d, 0x1109, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x28c1, 0x3901, 0x3901, 0x92c1, 0xbb81, 0x4941, 0x1, 0x1109, 0x198b, 0x198d, 0x21cf, 0x7ac7, 0x9ac1, 0x92c1, 0x9ac1, 0x8307, 0x21cf, 0x198d, 0x198b, 0x1109, 0x1, 0x4941, 0xbb81, 0x92c1, 0x3901, 0x3901, 0x28c1, 0x0, 0x0, 0x0, 
	0x0, 0x7a41, 0xd401, 0xe441, 0xe441, 0xe441, 0xe441, 0x8b49, 0x4a4f, 0x10c9, 0x114b, 0x194b, 0x2149, 0x51c3, 0x69c1, 0x69c1, 0x69c1, 0x51c3, 0x2149, 0x194b, 0x114b, 0x10c9, 0x4a4f, 0x8b49, 0xdc41, 0xdc41, 0xdc41, 0xe441, 0xd401, 0x7a41, 0x0, 0x0, 
	0x0, 0x61c1, 0x8a81, 0x8a81, 0x9281, 0x9281, 0x8a81, 0x524b, 0x420d, 0x887, 0x1109, 0x1109, 0x18c7, 0x4941, 0x69c1, 0x69c1, 0x69c1, 0x4901, 0x1907, 0x1109, 0x1109, 0x887, 0x420d, 0x524b, 0x8241, 0x8a81, 0x8a81, 0x8a81, 0x8a81, 0x61c1, 0x0, 0x0, 
	0x0, 0x801, 0x2041, 0x2881, 0x2881, 0x30c1, 0x30c1, 0x1843, 0x843, 0x845, 0x887, 0x8c7, 0x1085, 0x2081, 0x61c1, 0x69c1, 0x61c1, 0x2081, 0x1085, 0x8c7, 0x887, 0x845, 0x843, 0x1843, 0x30c1, 0x2881, 0x2881, 0x2881, 0x2041, 0x801, 0x0, 0x0, 
	0x0, 0x0, 0x1, 0x801, 0x801, 0x801, 0x801, 0x1, 0x1, 0x3, 0x845, 0x885, 0x885, 0x845, 0x2081, 0x2881, 0x2081, 0x845, 0x885, 0x885, 0x845, 0x3, 0x1, 0x1, 0x801, 0x801, 0x801, 0x801, 0x1, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x3, 0x43, 0x843, 0x843, 0x843, 0x1001, 0x843, 0x843, 0x843, 0x43, 0x3, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x3, 0x1, 0x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