#include<ultra64.h>

extern Vtx CN_Walker_Rightmomo_v[];
extern Vtx CN_Walker_Rightmomo_vmcur[];
extern Tri CN_Walker_Rightmomo_tri[];
extern Mtx CN_Walker_Rightmomo_matrix[];

extern unsigned short CN_BossTX_07_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)

/* main display list */


/* ======== o1 ======== */

Gfx CN_Walker_Rightmomo[]={

	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(CN_BossTX_07_txt,G_IM_FMT_RGBA,G_IM_SIZ_16b,32,32,0,7),

	gsSPVertex(&CN_Walker_Rightmomo_v[0],31,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
	gsSP2Triangles(4, 5, 6, 0, 7, 8, 9, 0),
	gsSP2Triangles(7, 9, 10, 0, 11, 12, 13, 0),
	gsSP2Triangles(14, 15, 16, 0, 14, 17, 15, 0),
	gsSP2Triangles(18, 19, 20, 0, 21, 22, 23, 0),
	gsSP2Triangles(24, 25, 26, 0, 24, 26, 4, 0),
	gsSP2Triangles(16, 27, 28, 0, 29, 19, 30, 0),
	gsSPVertex(&CN_Walker_Rightmomo_v[31],6,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 


/* 40 vertices */
Vtx CN_Walker_Rightmomo_v[]={
	{    11,    19,     0,     0,  1024,  1024,    35,    60,    97,     0},	/* 0 */
	{    -2,     0,    23,     0,  -284,   297,    13,    39,   112,     0},	/* 1 */
	{    10,     0,    11,     0,     0,  1024,    33,    -7,   114,     0},	/* 2 */
	{    -1,    37,     0,     0,  1763,   297,    76,    48,    78,     0},	/* 3 */
	{    10,     0,   -12,     0,     0,  1024,    33,     7,  -115,     0},	/* 4 */
	{   105,    -1,     0,     0,  1024,  1024,    14,     0,  -119,     0},	/* 5 */
	{    10,   -18,     0,     0,    14,   790,    33,   -60,   -98,     0},	/* 6 */
	{    10,     0,   -12,     0,  1024,  1024,    33,     7,  -115,     0},	/* 7 */
	{    -2,     0,   -23,     0,  1308,   297,    76,    48,   -79,     0},	/* 8 */
	{    -1,    37,     0,     0,  -739,   297,   -63,    93,   -41,     0},	/* 9 */
	{    11,    19,     0,     0,     0,  1024,    22,    62,  -100,     0},	/* 10 */
	{    10,     0,    11,     0,    -1,  1013,    33,    -7,   114,     0},	/* 11 */
	{   105,    -1,     0,     0,  1022,  1013,    14,     0,   118,     0},	/* 12 */
	{    11,    19,     0,     0,    13,   780,    35,    60,    97,     0},	/* 13 */
	{    10,     0,    11,     0,  1024,  1024,    33,    -7,   114,     0},	/* 14 */
	{    -2,   -37,     0,     0,  -739,   297,    16,  -104,   -56,     0},	/* 15 */
	{    10,   -18,     0,     0,     0,  1024,    21,   -62,    99,     0},	/* 16 */
	{    -2,     0,    23,     0,  1308,   297,    13,    39,   112,     0},	/* 17 */
	{    -2,   -37,     0,     0,  1024,  1024,    16,  -104,   -56,     0},	/* 18 */
	{   -26,     1,     0,     0,   284,   297,  -110,    25,   -39,     0},	/* 19 */
	{    -2,     0,   -23,     0,     0,  1024,   -47,   -17,  -109,     0},	/* 20 */
	{    -1,    37,     0,     0,     0,  1024,   -63,    93,   -41,     0},	/* 21 */
	{    -2,     0,   -23,     0,  1024,  1024,   -47,   -17,  -109,     0},	/* 22 */
	{   -26,     1,     0,     0,   739,   297,  -110,    25,   -39,     0},	/* 23 */
	{    10,   -18,     0,     0,  1024,  1024,    33,   -60,   -98,     0},	/* 24 */
	{    -2,   -37,     0,     0,  1763,   297,    16,  -104,   -56,     0},	/* 25 */
	{    -2,     0,   -23,     0,  -284,   297,   -47,   -17,  -109,     0},	/* 26 */
	{   105,    -1,     0,     0,  1023,  1024,    14,     0,   118,     0},	/* 27 */
	{    10,     0,    11,     0,    37,   796,    33,    -7,   114,     0},	/* 28 */
	{    -1,    37,     0,     0,  1024,  1024,   -63,    93,   -41,     0},	/* 29 */
	{    -2,     0,    23,     0,     0,  1024,    13,    39,   112,     0},	/* 30 */
	{    -2,   -37,     0,     0,     0,  1024,   -75,   -47,    78,     0},	/* 31 */
	{    -2,     0,    23,     0,  1024,  1024,   -75,   -47,    78,     0},	/* 32 */
	{   -26,     1,     0,     0,   739,   297,   -75,   -47,    78,     0},	/* 33 */
	{    11,    19,     0,     0,     0,  1024,    22,    62,  -100,     0},	/* 34 */
	{   105,    -1,     0,     0,  1024,  1024,    14,     0,  -119,     0},	/* 35 */
	{    10,     0,   -12,     0,    37,   796,    33,     7,  -115,     0},	/* 36 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
