mario.c 2.08 KB
/********************************************************************************
					   NINTENDO64 Disk Drive IPL4

						 Mario shape data module

							December 10, 1996
 ********************************************************************************/

#include <ultra64.h>
#include "static.h"


#define	gs_Tani_LoadTextureImage2(timg, fmt, siz, width, height, tmem, ttdn)		\
																					\
	gsDPSetTextureImage(fmt, siz, 1, timg),											\
	gsDPLoadSync(),																	\
	gsDPLoadBlock(ttdn, 0, 0, ((width)*(height)-1),									\
				  CALC_DXT(width, siz##_BYTES) )

#define	gs_Tani_SetUpTileDescrip(fmt, siz, width, height, tmem, ttdn, 				\
							 	 cms, masks, shifts, cmt, maskt, shiftt)			\
																					\
	gsDPTileSync(),																	\
	gsDPSetTile(fmt, siz, ((((width)*siz##_LINE_BYTES)+7)>>3), tmem,				\
				ttdn, 0, (cmt), (maskt), (shiftt), (cms), (masks), (shifts)),		\
	gsDPSetTileSize(ttdn, 0, 0,														\
					(((width) -1) << G_TEXTURE_IMAGE_FRAC),							\
					(((height)-1) << G_TEXTURE_IMAGE_FRAC) )


/********************************************************************************/
/*																				*/
/*	Mario gfx list.																*/
/*																				*/
/********************************************************************************/

#define		G_CC_MARIO_MAPPING		TEXEL0, SHADE, TEXEL0_ALPHA, SHADE,  0,0,0,ENVIRONMENT
#define		G_CC_MARIO_NORMAL			 0,		 0,			  0, SHADE,  0,0,0,ENVIRONMENT


#define		G_CC_MARIO_ENVTEX		TEXEL0,ENVIRONMENT,TEXEL0_ALPHA,ENVIRONMENT,    0,0,0,ENVIRONMENT
#define		G_CC_MARIO_ENVTEX2		SHADE,0,COMBINED,0,    0,0,0,COMBINED

#define		G_CC_MARIO_ENVCOL		SHADE,0,ENVIRONMENT,0,		0,0,0,ENVIRONMENT


/********************************************************************************/
/*																				*/
/*	Mario's graphic display list												*/
/*																				*/
/********************************************************************************/

#include "SHAPE/mario_texture.h"

#include "SHAPE/mario_head.sou"
#include "SHAPE/mario_swim.sou"
#include "SHAPE/mario_poly.sou"
#include "SHAPE/mario_body.sou"