Mario Kart 64
Loading...
Searching...
No Matches
mk64.h File Reference

Go to the source code of this file.

Macros

#define AUDIO_HEAP_SIZE   0x48C00
 
#define AUDIO_HEAP_INIT_SIZE   0x2600
 
#define DOUBLE_SIZE_ON_64_BIT(size)   ((size) * (sizeof(void*) / 4))
 
#define SCREEN_WIDTH   320
 
#define SCREEN_HEIGHT   240
 
#define STACKSIZE   0x2000
 
#define BORDER_HEIGHT   1
 
#define COURSE_NULL   0xFF
 
#define GFX_GET_OPCODE(var)   ((s32) ((var) & 0xFF000000))
 
#define GET_HIGH_U16_OF_32(var)   (((u16*) &(var))[0])
 
#define GET_HIGH_S16_OF_32(var)   (((s16*) &(var))[0])
 
#define GET_LOW_U16_OF_32(var)   (((u16*) &(var))[1])
 
#define GET_LOW_S16_OF_32(var)   (((s16*) &(var))[1])
 
#define SET_HIGH_U16_OF_32(var, x)   ((((u16*) &(var))[0]) = (x))
 
#define SET_HIGH_S16_OF_32(var, x)   ((((s16*) &(var))[0]) = (x))
 
#define MACRO_COLOR_FLAG(r, g, b, flag)   (r & ~0x3) | (flag & 0x3), (g & ~0x3) | ((flag >> 2) & 0x3), b
 

Enumerations

enum  COURSES {
  COURSE_MARIO_RACEWAY = 0 , COURSE_CHOCO_MOUNTAIN , COURSE_BOWSER_CASTLE , COURSE_BANSHEE_BOARDWALK ,
  COURSE_YOSHI_VALLEY , COURSE_FRAPPE_SNOWLAND , COURSE_KOOPA_BEACH , COURSE_ROYAL_RACEWAY ,
  COURSE_LUIGI_RACEWAY , COURSE_MOO_MOO_FARM , COURSE_TOADS_TURNPIKE , COURSE_KALAMARI_DESERT ,
  COURSE_SHERBET_LAND , COURSE_RAINBOW_ROAD , COURSE_WARIO_STADIUM , COURSE_BLOCK_FORT ,
  COURSE_SKYSCRAPER , COURSE_DOUBLE_DECK , COURSE_DK_JUNGLE , COURSE_BIG_DONUT ,
  COURSE_AWARD_CEREMONY , NUM_COURSES
}
 
enum  TIME_TRIAL_DATA_INDEX {
  TIME_TRIAL_DATA_LUIGI_RACEWAY , TIME_TRIAL_DATA_MOO_MOO_FARM , TIME_TRIAL_DATA_KOOPA_BEACH , TIME_TRIAL_DATA_KALAMARI_DESERT ,
  TIME_TRIAL_DATA_TOADS_TURNPIKE , TIME_TRIAL_DATA_FRAPPE_SNOWLAND , TIME_TRIAL_DATA_CHOCO_MOUNTAIN , TIME_TRIAL_DATA_MARIO_RACEWAY ,
  TIME_TRIAL_DATA_WARIO_STADIUM , TIME_TRIAL_DATA_SHERBET_LAND , TIME_TRIAL_DATA_ROYAL_RACEWAY , TIME_TRIAL_DATA_BOWSER_CASTLE ,
  TIME_TRIAL_DATA_DK_JUNGLE , TIME_TRIAL_DATA_YOSHI_VALLEY , TIME_TRIAL_DATA_BANSHEE_BOARDWALK , TIME_TRIAL_DATA_RAINBOW_ROAD ,
  NUM_TIME_TRIAL_DATA
}
 
enum  SURFACE_TYPE {
  SURFACE_DEFAULT = -1 , AIRBORNE , ASPHALT , DIRT ,
  SAND , STONE , SNOW , BRIDGE ,
  SAND_OFFROAD , GRASS , ICE , WET_SAND ,
  SNOW_OFFROAD , CLIFF , DIRT_OFFROAD , TRAIN_TRACK ,
  CAVE , ROPE_BRIDGE , WOOD_BRIDGE , BOOST_RAMP_WOOD = 0xFC ,
  OUT_OF_BOUNDS , BOOST_RAMP_ASPHALT , RAMP
}
 The different types of surface in the game. More...
 

Detailed Description

Global header for mk64

Macro Definition Documentation

◆ AUDIO_HEAP_INIT_SIZE

#define AUDIO_HEAP_INIT_SIZE   0x2600

◆ AUDIO_HEAP_SIZE

#define AUDIO_HEAP_SIZE   0x48C00

◆ BORDER_HEIGHT

#define BORDER_HEIGHT   1

◆ COURSE_NULL

#define COURSE_NULL   0xFF

◆ DOUBLE_SIZE_ON_64_BIT

#define DOUBLE_SIZE_ON_64_BIT ( size)    ((size) * (sizeof(void*) / 4))

◆ GET_HIGH_S16_OF_32

#define GET_HIGH_S16_OF_32 ( var)    (((s16*) &(var))[0])

◆ GET_HIGH_U16_OF_32

#define GET_HIGH_U16_OF_32 ( var)    (((u16*) &(var))[0])

◆ GET_LOW_S16_OF_32

#define GET_LOW_S16_OF_32 ( var)    (((s16*) &(var))[1])

◆ GET_LOW_U16_OF_32

#define GET_LOW_U16_OF_32 ( var)    (((u16*) &(var))[1])

◆ GFX_GET_OPCODE

#define GFX_GET_OPCODE ( var)    ((s32) ((var) & 0xFF000000))

◆ MACRO_COLOR_FLAG

#define MACRO_COLOR_FLAG ( r,
g,
b,
flag )   (r & ~0x3) | (flag & 0x3), (g & ~0x3) | ((flag >> 2) & 0x3), b

◆ SCREEN_HEIGHT

#define SCREEN_HEIGHT   240

◆ SCREEN_WIDTH

#define SCREEN_WIDTH   320

◆ SET_HIGH_S16_OF_32

#define SET_HIGH_S16_OF_32 ( var,
x )   ((((s16*) &(var))[0]) = (x))

◆ SET_HIGH_U16_OF_32

#define SET_HIGH_U16_OF_32 ( var,
x )   ((((u16*) &(var))[0]) = (x))

◆ STACKSIZE

#define STACKSIZE   0x2000

Enumeration Type Documentation

◆ COURSES

enum COURSES
Enumerator
COURSE_MARIO_RACEWAY 
COURSE_CHOCO_MOUNTAIN 
COURSE_BOWSER_CASTLE 
COURSE_BANSHEE_BOARDWALK 
COURSE_YOSHI_VALLEY 
COURSE_FRAPPE_SNOWLAND 
COURSE_KOOPA_BEACH 
COURSE_ROYAL_RACEWAY 
COURSE_LUIGI_RACEWAY 
COURSE_MOO_MOO_FARM 
COURSE_TOADS_TURNPIKE 
COURSE_KALAMARI_DESERT 
COURSE_SHERBET_LAND 
COURSE_RAINBOW_ROAD 
COURSE_WARIO_STADIUM 
COURSE_BLOCK_FORT 
COURSE_SKYSCRAPER 
COURSE_DOUBLE_DECK 
COURSE_DK_JUNGLE 
COURSE_BIG_DONUT 
COURSE_AWARD_CEREMONY 
NUM_COURSES 

◆ SURFACE_TYPE

The different types of surface in the game.

Enumerator
SURFACE_DEFAULT 
AIRBORNE 
ASPHALT 
DIRT 
SAND 
STONE 
SNOW 
BRIDGE 
SAND_OFFROAD 
GRASS 
ICE 
WET_SAND 
SNOW_OFFROAD 
CLIFF 
DIRT_OFFROAD 
TRAIN_TRACK 
CAVE 
ROPE_BRIDGE 
WOOD_BRIDGE 
BOOST_RAMP_WOOD 
OUT_OF_BOUNDS 
BOOST_RAMP_ASPHALT 
RAMP 

◆ TIME_TRIAL_DATA_INDEX

Enumerator
TIME_TRIAL_DATA_LUIGI_RACEWAY 
TIME_TRIAL_DATA_MOO_MOO_FARM 
TIME_TRIAL_DATA_KOOPA_BEACH 
TIME_TRIAL_DATA_KALAMARI_DESERT 
TIME_TRIAL_DATA_TOADS_TURNPIKE 
TIME_TRIAL_DATA_FRAPPE_SNOWLAND 
TIME_TRIAL_DATA_CHOCO_MOUNTAIN 
TIME_TRIAL_DATA_MARIO_RACEWAY 
TIME_TRIAL_DATA_WARIO_STADIUM 
TIME_TRIAL_DATA_SHERBET_LAND 
TIME_TRIAL_DATA_ROYAL_RACEWAY 
TIME_TRIAL_DATA_BOWSER_CASTLE 
TIME_TRIAL_DATA_DK_JUNGLE 
TIME_TRIAL_DATA_YOSHI_VALLEY 
TIME_TRIAL_DATA_BANSHEE_BOARDWALK 
TIME_TRIAL_DATA_RAINBOW_ROAD 
NUM_TIME_TRIAL_DATA