#include<ultra64.h>
extern Vtx CN_Walker_Rightasi_v[];
extern Lights1 CN_Walker_Rightasi_material[];

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


/* ======== o1 ======== */

Gfx CN_Walker_Rightasi[]={

	gsDPLoadTextureBlock(CN_AirshipTX_01_txt, G_IM_FMT_RGBA, G_IM_SIZ_16b, 16, 16, 0, G_TX_MIRROR, G_TX_MIRROR, 4, 4, G_TX_NOLOD, G_TX_NOLOD ),


	gsSPVertex(&CN_Walker_Rightasi_v[0],14,0),
	gsSP2Triangles(0, 1, 2, 0, 2, 3, 0, 0),
	gsSP1Quadrangle(4, 0, 3, 5, 0),
	gsSP1Quadrangle(1, 0, 4, 6, 0),
	gsSP1Triangle(7, 8, 9, 0),
	gsSP1Quadrangle(8, 7, 10, 11, 0),
	gsSP2Triangles(4, 5, 12, 0, 9, 13, 7, 0),
	gsSP1Triangle(12, 6, 4, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  14 vertices */
Vtx CN_Walker_Rightasi_v[]={
	{   105,     4,   -14,     0,    40,   344,    11,   102,   -62,   255},	/* 0 */
	{   150,   -28,   -20,     0,     0,   511,    64,    97,   -29,   255},	/* 1 */
	{   100,   -14,   -19,     0,   -23,   346,     1,    31,  -115,   255},	/* 2 */
	{  -126,     7,   -14,     0,  -154,  -374,     1,   114,   -37,   255},	/* 3 */
	{   105,     4,    13,     0,   380,   344,    16,   113,    35,   255},	/* 4 */
	{  -126,     7,    13,     0,   185,  -374,     1,   103,    60,   255},	/* 5 */
	{   150,   -28,    20,     0,   512,   511,    59,    94,    44,   255},	/* 6 */
	{   100,   -14,   -19,     0,   -23,   346,   -12,  -118,     0,   255},	/* 7 */
	{   100,   -14,    18,     0,   445,   346,   -16,  -117,     0,   255},	/* 8 */
	{  -126,     7,    13,     0,   185,  -374,   -10,  -118,     0,   255},	/* 9 */
	{   150,   -28,   -20,     0,     0,   511,   -30,  -115,     0,   255},	/* 10 */
	{   150,   -28,    20,     0,   512,   511,   -30,  -115,     0,   255},	/* 11 */
	{   100,   -14,    18,     0,   445,   346,     1,    31,   114,   255},	/* 12 */
	{  -126,     7,   -14,     0,  -154,  -374,   -10,  -118,     0,   255},	/* 13 */
};




unsigned short CN_AirshipTX_01_txt[] = {
	0xe733, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 0xd6af, 
	0xe733, 0xe733, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xd6af, 0xd6af, 0xd6af, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xc62b, 0xd6af, 
	0xe733, 0xe733, 0xd6af, 0xc62b, 0xc62b, 0xc62b, 0xd6af, 0xe733, 0xd6af, 0xc62b, 0xc62b, 0xc62b, 0xd6af, 0xc62b, 0xe733, 0xd6af, 
	0xad63, 0xe733, 0xd6af, 0xb5a7, 0xc62b, 0xc62b, 0xc62b, 0xe733, 0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