#include<ultra64.h>
extern Vtx DEMO_Falco_reg05_v[];
extern Lights1 DEMO_Falco_reg05_material[];

extern unsigned short DEMO_Metal_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 DEMO_Falco_reg05[]={

	gsDPLoadTextureBlock(DEMO_Metal_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(&DEMO_Falco_reg05_v[0], 24, 0),
	gsSP1Triangle(0, 1, 2, 0),
	gsSP1Triangle(3, 4, 5, 0),
	gsSP1Triangle(6, 7, 8, 0),
	gsSP1Triangle(9, 10, 11, 0),
	gsSP1Triangle(12, 13, 14, 0),
	gsSP1Triangle(15, 16, 17, 0),
	gsSP1Triangle(18, 19, 20, 0),
	gsSP1Triangle(21, 22, 23, 0),
	gsSPEndDisplayList(),
}; /* o1 */ 

#undef G_CC_PRIMSHADE
#undef gs_Nin_LoadTextureImage
#undef gs_Nin_SetUpTileDescrip
/*  24 vertices */
Vtx DEMO_Falco_reg05_v[]={
	{  43,37,1,0,512,0,31,61,97,255 },   /* v0 used p8/V1 1 times */ 
	{  26,8,24,0,0,511,-1,-45,109,255 },   /* v1 used p8/V2 1 times */ 
	{  115,0,1,0,512,511,29,-15,114,255 },   /* v2 used p8/V3 1 times */ 
	{  11,-22,1,0,0,512,-1,-45,109,255 },   /* v3 used p7/V1 1 times */ 
	{  115,0,1,0,512,511,29,-15,114,255 },   /* v4 used p7/V2 1 times */ 
	{  26,8,24,0,512,0,-1,-45,109,255 },   /* v5 used p7/V3 1 times */ 
	{  43,37,1,0,512,0,-11,100,-64,255 },   /* v6 used p6/V1 1 times */ 
	{  -13,8,1,0,512,511,-55,106,0,255 },   /* v7 used p6/V2 1 times */ 
	{  26,8,24,0,0,512,-55,106,0,255 },   /* v8 used p6/V3 1 times */ 
	{  11,-22,1,0,0,511,-1,-45,109,255 },   /* v9 used p5/V1 1 times */ 
	{  26,8,24,0,512,0,-1,-45,109,255 },   /* v10 used p5/V2 1 times */ 
	{  -13,8,1,0,512,511,-1,-45,109,255 },   /* v11 used p5/V3 1 times */ 
	{  11,-22,1,0,512,0,-1,-45,-110,255 },   /* v12 used p1/V1 1 times */ 
	{  -13,8,1,0,512,512,-1,-45,-110,255 },   /* v13 used p1/V2 1 times */ 
	{  26,8,-23,0,0,512,-1,-45,-110,255 },   /* v14 used p1/V3 1 times */ 
	{  43,37,1,0,0,511,-11,100,-64,255 },   /* v15 used p2/V1 1 times */ 
	{  26,8,-23,0,512,0,-55,106,0,255 },   /* v16 used p2/V2 1 times */ 
	{  -13,8,1,0,512,511,-55,106,0,255 },   /* v17 used p2/V3 1 times */ 
	{  11,-22,1,0,512,0,-1,-45,-110,255 },   /* v18 used p3/V1 1 times */ 
	{  26,8,-23,0,0,512,-1,-45,-110,255 },   /* v19 used p3/V2 1 times */ 
	{  115,0,1,0,512,512,29,-15,-115,255 },   /* v20 used p3/V3 1 times */ 
	{  43,37,1,0,0,511,-11,100,-64,255 },   /* v21 used p4/V1 1 times */ 
	{  115,0,1,0,512,511,29,-15,-115,255 },   /* v22 used p4/V2 1 times */ 
	{  26,8,-23,0,512,0,-1,-45,-110,255 },   /* v23 used p4/V3 1 times */ 
};
