#include<ultra64.h>

extern Vtx AC_Kurage_Hand_v[];

extern unsigned short AC_KurageTX_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_Kurage_Hand[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_IA,G_IM_SIZ_16b,16,16,0,0,G_TX_WRAP,4,0,G_TX_WRAP,4,0),
	gs_Nin_LoadTextureImage(AC_KurageTX_txt,G_IM_FMT_IA,G_IM_SIZ_16b,16,16,0,7),

	gsSPVertex(&AC_Kurage_Hand_v[0],25,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 3, 4, 0),
	gsSP2Triangles(4, 1, 0, 0, 2, 5, 0, 0),
	gsSP2Triangles(4, 3, 6, 0, 7, 8, 9, 0),
	gsSP2Triangles(10, 9, 8, 0, 9, 11, 7, 0),
	gsSP2Triangles(12, 13, 11, 0, 11, 13, 7, 0),
	gsSP2Triangles(12, 11, 5, 0, 7, 13, 12, 0),
	gsSP2Triangles(5, 2, 12, 0, 14, 7, 12, 0),
	gsSP2Triangles(8, 15, 10, 0, 10, 15, 16, 0),
	gsSP2Triangles(16, 17, 10, 0, 17, 16, 18, 0),
	gsSP2Triangles(19, 20, 14, 0, 21, 20, 19, 0),
	gsSP2Triangles(14, 22, 19, 0, 19, 23, 21, 0),
	gsSP2Triangles(12, 22, 14, 0, 21, 23, 24, 0),
	gsSPEndDisplayList(),
}; /* DXFdata */ 

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 25 vertices */
Vtx AC_Kurage_Hand_v[]={
	{    -8,   -92,    19,     0,   458,  -237,    -3,     5,   119,   255},	/* 0 */
	{     4,  -101,    30,     0,   453,  -103,   -83,   -18,    82,   255},	/* 1 */
	{     5,   -74,    28,     0,   609,  -250,    51,   -43,    98,   255},	/* 2 */
	{   -14,  -135,    39,     0,   194,   -33,    39,    14,   111,   255},	/* 3 */
	{    15,  -123,    27,     0,   361,   100,    26,     6,   116,   255},	/* 4 */
	{    -5,   -63,    44,     0,   637,  -381,    18,    30,   114,   255},	/* 5 */
	{     5,  -171,    24,     0,    54,   303,    50,   -15,   107,   255},	/* 6 */
	{    -8,   -14,   -39,     0,   905,  -675,  -108,    37,   -33,   255},	/* 7 */
	{   -23,   -67,   -35,     0,   552,  -477,  -118,    17,     5,   255},	/* 8 */
	{   -24,   -64,    -2,     0,   566,  -508,  -115,     7,   -28,   255},	/* 9 */
	{   -19,  -100,   -22,     0,   378,  -268,  -117,    18,     9,   255},	/* 10 */
	{   -33,   -25,    13,     0,   757,  -785,   -77,    75,    52,   255},	/* 11 */
	{    33,   -24,    24,     0,   990,  -347,    91,    54,   -56,   255},	/* 12 */
	{     0,     5,     0,     0,  1040,  -733,   -60,    89,    51,   255},	/* 13 */
	{    29,   -73,   -24,     0,   694,   -94,   102,    41,   -48,   255},	/* 14 */
	{   -30,  -100,   -32,     0,   340,  -343,   -80,   -11,    87,   255},	/* 15 */
	{   -28,  -131,   -49,     0,   172,  -149,  -114,    -6,   -33,   255},	/* 16 */
	{   -43,  -139,   -16,     0,    73,  -204,  -108,     2,   -50,   255},	/* 17 */
	{   -24,  -177,   -15,     0,   -75,   142,   -93,   -48,   -56,   255},	/* 18 */
	{    23,   -97,    -8,     0,   535,     3,   120,     4,    -2,   255},	/* 19 */
	{    32,  -106,   -22,     0,   519,   114,    93,   -14,    73,   255},	/* 20 */
	{    24,  -134,   -32,     0,   331,   225,   116,    -2,   -31,   255},	/* 21 */
	{    36,   -61,   -11,     0,   787,  -110,    96,    18,   -70,   255},	/* 22 */
	{    39,  -152,     5,     0,   282,   429,   112,     4,   -44,   255},	/* 23 */
	{    23,  -185,   -16,     0,    38,   500,   106,   -19,   -53,   255},	/* 24 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
