#include<ultra64.h>

extern Vtx TIJ_sanddust02_v[];
extern Vtx TIJ_sanddust02_vmcur[];
extern Tri TIJ_sanddust02_tri[];
extern Mtx TIJ_sanddust02_matrix[];

extern unsigned TIJ_sanddust02_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 */


/* ======== g1 ======== */

Gfx TIJ_sanddust02[]={

	gs_Nin_SetUpTileDescrip(G_IM_FMT_RGBA,G_IM_SIZ_32b,32,32,0,0,G_TX_CLAMP,5,0,G_TX_CLAMP,5,0),
	gs_Nin_LoadTextureImage(TIJ_sanddust02_txt,G_IM_FMT_RGBA,G_IM_SIZ_32b,32,32,0,7),

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

#undef G_CC_PRIMSHADE

#undef gs_Nin_LoadTextureImage

#undef gs_Nin_SetUpTileDescrip

/* 4 vertices */
Vtx TIJ_sanddust02_v[]={
	{ -20,20,0,0, 0, 0, 0,0,119,255 },   /* v0 used p3/V1 2 times */
	{ -20,-20,0,0, 0, 1024, 0,0,119,255 },   /* v1 used p3/V2 1 times */
	{ 20,-20,0,0, 1024, 1024, 0,0,119,255 },   /* v2 used p3/V3 2 times */
	{ 20,20,0,0, 1024, 0, 0,0,119,255 },   /* v3 used p2/V3 1 times */
};


/*   0 vertices */
/*   1 Materials */

#define	LDIRX	0
#define	LDIRY	0
#define	LDIRZ	120
#define	AMBDIV	1
Lights1 TIJ_sanddust02_material[]={
	{{255/AMBDIV,255/AMBDIV,255/AMBDIV,0,255/AMBDIV,255/AMBDIV,255/AMBDIV,0},{255,255,255,0,255,255,255,0,LDIRX,LDIRY,LDIRZ,0}},
};
/* 32 x 32  G_IM_SIZ_32b G_IM_FMT_RGBA  */
unsigned TIJ_sanddust02_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, 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, 0x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0, 0x0, 0x0, 0x0, 0x1, 0x2010003, 0x4020007, 0x805010e, 0xa070112, 0xc070114, 0xc070113, 0xb070113, 0xa060111, 0xa060110, 0x905010f, 0x704010b, 0x4020007, 0x2010004, 0x1010002, 0x1000001, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x3020006, 0x805010e, 0xe090218, 0x140c0221, 0x160e0324, 0x160e0325, 0x150d0323, 0x150d0324, 0x160e0325, 0x140c0221, 0xf0a021a, 0xb070112, 0x604000a, 0x3020005, 0x1010003, 0x1000002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000001, 0x3010004, 0x5030009, 0x805010e, 0x100a021a, 0x1a11032c, 0x1f140434, 0x1f130433, 0x20140435, 0x21150437, 0x22150438, 0x1c12042f, 0x19100329, 0x160e0324, 0xe090217, 0x604010b, 0x2010004, 0x1000002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x4020006, 0x604000a, 0x905010f, 0x140d0221, 0x2316053b, 0x2a1b0646, 0x2a1b0646, 0x2e1d064d, 0x311f0751, 0x32200754, 0x2c1c0649, 0x2618053f, 0x20140436, 0x140d0222, 0xa060110, 0x4020007, 0x1010002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x2010004, 0x604010b, 0xb070113, 0x140d0222, 0x21150437, 0x2f1e064e, 0x3b250862, 0x492e0a79, 0x50330b84, 0x53350c8a, 0x57380c91, 0x4c300b7e, 0x3f280968, 0x2f1d064d, 0x1e130431, 0x100a021a, 0x705010d, 0x2010004, 0x1000001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x3020006, 0xc080115, 0x1910032a, 0x28190543, 0x34210756, 0x4129096b, 0x57380c90, 0x6c440fb2, 0x744a10c0, 0x794d11c8, 0x7b4e11cb, 0x6e4610b6, 0x5e3c0d9b, 0x472d0a75, 0x291a0544, 0x180f0328, 0xd080216, 0x5030008, 0x1010003, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1000001, 0x603000a, 0xf090218, 0x1a11032c, 0x2a1b0646, 0x3924085e, 0x56360c8e, 0x714810ba, 0x7c4f12cd, 0x835312d8, 0x895713e3, 0x8a5814e4, 0x7f5112d2, 0x6c450fb3, 0x53350c8a, 0x35220758, 0x20140435, 0x120b021e, 0x704010c, 0x3020005, 0x1010002, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1010002, 0x604000a, 0xb070113, 0x140c0221, 0x2417053c, 0x3f280969, 0x68420fab, 0x805112d3, 0x815212d5, 0x865513dd, 0x8d5a14e9, 0x905b14ed, 0x835312d8, 0x744a10c0, 0x66410ea9, 0x442b0971, 0x27190540, 0x150d0323, 0xa060110, 0x4020006, 0x1010003, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x5030008, 0xb070112, 0x160e0325, 0x281a0543, 0x492e0a78, 0x714810bb, 0x875613df, 0x8f5b14ec, 0x925d15f1, 0x955f15f6, 0x955f15f7, 0x8d5a14ea, 0x835413d9, 0x764b11c2, 0x51340b87, 0x2a1b0646, 0x140c0221, 0x905010f, 0x3020005, 0x1000002, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1000001, 0x4030007, 0xd080216, 0x1c12042f, 0x2f1e064e, 0x4b300a7c, 0x6d450fb4, 0x865513de, 0x935e15f3, 0x965f15f7, 0x955f15f6, 0x925d15f2, 0x8a5814e5, 0x805112d4, 0x754b11c2, 0x53350c89, 0x27190541, 0xe090218, 0x604000a, 0x2010004, 0x1000001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x5030009, 0xa060110, 0x160e0324, 0x291a0544, 0x4129096b, 0x5f3c0d9d, 0x7d5012cf, 0x8f5b14ec, 0x925d15f2, 0x8e5a14ea, 0x784c11c7, 0x6a430faf, 0x6c450fb2, 0x68420fac, 0x482e0a78, 0x21150437, 0xc070113, 0x4030007, 0x2010003, 0x1000001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x3020005, 0x5030008, 0xc080114, 0x1b11032c, 0x301f0750, 0x492e0a78, 0x6a430faf, 0x865513dd, 0x905c14ee, 0x8e5a14ea, 0x6f4710b7, 0x52340b87, 0x58380c92, 0x5f3c0d9d, 0x3d270864, 0x180f0328, 0x905010f, 0x3020005, 0x1010003, 0x1000001, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x2010004, 0x905010f, 0x130c0220, 0x1e130432, 0x33200754, 0x54350c8b, 0x764b11c3, 0x875613df, 0x895713e3, 0x6c450fb3, 0x3f280968, 0x3823085c, 0x3d270864, 0x22150438, 0xa060111, 0x5030009, 0x2010003, 0x1000002, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2010003, 0x5030009, 0xb070113, 0xe090217, 0x1d130431, 0x3d270865, 0x56370c8f, 0x6d460fb5, 0x744a10bf, 0x5c3b0d99, 0x34210756, 0x1f140433, 0x180f0328, 0xe090217, 0x5030009, 0x3010005, 0x1010002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000001, 0x3020005, 0x604000a, 0x805010e, 0xc070114, 0x1d120430, 0x2b1b0647, 0x40280969, 0x4d310b7f, 0x452c0a73, 0x2f1e064e, 0x1a10032b, 0xc080114, 0x5030008, 0x2010004, 0x1010002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000002, 0x3020005, 0x4020007, 0x704010c, 0xc080114, 0x100a021b, 0x160e0324, 0x1a10032b, 0x170f0327, 0xf0a021a, 0x905010f, 0x4020007, 0x2010004, 0x1010002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1000001, 0x1000002, 0x2010004, 0x4020007, 0x604000a, 0x704010b, 0x604000b, 0x5030009, 0x4020007, 0x3020005, 0x2010004, 0x1000002, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
	0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x1, 0x1000002, 0x2010003, 0x2010004, 0x2010004, 0x1010003, 0x1010002, 0x1000001, 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, 0x1, 0x1, 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, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x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