#include<ultra64.h>

extern Vtx CN_Walker_Leftmomo_v[];
extern Vtx CN_Walker_Leftmomo_vmcur[];
extern Tri CN_Walker_Leftmomo_tri[];
extern Mtx CN_Walker_Leftmomo_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_Leftmomo[]={

	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_Leftmomo_v[0],32,0),
	gsSP2Triangles(0, 1, 2, 0, 0, 3, 1, 0),
	gsSP2Triangles(4, 5, 6, 0, 7, 8, 9, 0),
	gsSP2Triangles(7, 9, 10, 0, 2, 11, 12, 0),
	gsSP2Triangles(13, 14, 15, 0, 13, 16, 14, 0),
	gsSP2Triangles(17, 18, 19, 0, 20, 21, 22, 0),
	gsSP2Triangles(23, 24, 25, 0, 23, 25, 4, 0),
	gsSP2Triangles(26, 27, 28, 0, 29, 30, 31, 0),
	gsSPVertex(&CN_Walker_Leftmomo_v[32],6,0),
	gsSP2Triangles(0, 1, 2, 0, 3, 4, 5, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

/* 40 vertices */
Vtx CN_Walker_Leftmomo_v[]={
	{    10,     0,   -11,     0,  1024,  1024,    33,     7,  -115,     0},	/* 0 */
	{    -1,    37,     0,     0,  -739,   297,   -63,    93,   -41,     0},	/* 1 */
	{    11,    19,     0,     0,     0,  1024,    22,    62,  -100,     0},	/* 2 */
	{    -2,     0,   -23,     0,  1308,   297,    13,    24,  -117,     0},	/* 3 */
	{    10,   -18,     0,     0,     0,  1024,    21,   -62,    99,     0},	/* 4 */
	{   105,    -1,     0,     0,  1024,  1024,    14,     0,   118,     0},	/* 5 */
	{    10,     0,    12,     0,    37,   796,    33,    -7,   114,     0},	/* 6 */
	{    11,    19,     0,     0,   973,  1069,    35,    60,    97,     0},	/* 7 */
	{    -1,    37,     0,     0,  1708,   411,    76,    48,    78,     0},	/* 8 */
	{    -2,     0,    23,     0,  -238,   320,    13,    39,   112,     0},	/* 9 */
	{    10,     0,    12,     0,     0,  1024,    33,    -7,   114,     0},	/* 10 */
	{   105,    -1,     0,     0,  1024,  1024,    14,     0,  -119,     0},	/* 11 */
	{    10,     0,   -11,     0,    37,   796,    33,     7,  -115,     0},	/* 12 */
	{    10,   -18,     0,     0,   950,  1001,    33,   -60,   -98,     0},	/* 13 */
	{    -2,     0,   -23,     0,  -288,   328,    13,    24,  -117,     0},	/* 14 */
	{    10,     0,   -11,     0,   -14,  1010,    33,     7,  -115,     0},	/* 15 */
	{    -2,   -37,     0,     0,  1640,   310,   -80,   -84,   -28,     0},	/* 16 */
	{    -2,     0,    23,     0,  1024,  1024,   -75,   -47,    78,     0},	/* 17 */
	{   -26,     1,     0,     0,   739,   297,   -75,   -47,    78,     0},	/* 18 */
	{    -2,   -37,     0,     0,     0,  1024,   -80,   -84,   -28,     0},	/* 19 */
	{   -26,     1,     0,     0,   284,   297,  -110,    25,   -39,     0},	/* 20 */
	{    -2,     0,    23,     0,     0,  1024,    13,    39,   112,     0},	/* 21 */
	{    -1,    37,     0,     0,  1023,  1024,   -63,    93,   -41,     0},	/* 22 */
	{    10,     0,    12,     0,  1024,  1024,    33,    -7,   114,     0},	/* 23 */
	{    -2,     0,    23,     0,  1308,   297,    13,    39,   112,     0},	/* 24 */
	{    -2,   -37,     0,     0,  -739,   297,    75,   -49,    78,     0},	/* 25 */
	{    10,     0,   -11,     0,     0,  1024,    33,     7,  -115,     0},	/* 26 */
	{   105,    -1,     0,     0,  1023,  1024,    14,     0,  -119,     0},	/* 27 */
	{    10,   -18,     0,     0,    14,   790,    33,   -60,   -98,     0},	/* 28 */
	{    -2,     0,   -23,     0,  1024,  1024,    13,    24,  -117,     0},	/* 29 */
	{   -26,     1,     0,     0,   739,   297,  -110,    25,   -39,     0},	/* 30 */
	{    -1,    37,     0,     0,     0,  1024,   -63,    93,   -41,     0},	/* 31 */
	{   -26,     1,     0,     0,   284,   297,  -110,    25,   -39,     0},	/* 32 */
	{    -2,     0,   -23,     0,     0,  1024,   -75,   -47,   -79,     0},	/* 33 */
	{    -2,   -37,     0,     0,  1024,  1024,   -80,   -84,   -28,     0},	/* 34 */
	{    10,     0,    12,     0,     0,  1024,    33,    -7,   114,     0},	/* 35 */
	{   105,    -1,     0,     0,  1023,  1024,    14,     0,   118,     0},	/* 36 */
	{    11,    19,     0,     0,    14,   790,    35,    60,    97,     0},	/* 37 */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
