mario.c
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/********************************************************************************
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"