Mario Kart 64
|
#include <PR/ultratypes.h>
Go to the source code of this file.
Data Structures | |
struct | uObjBg_t |
struct | uObjScaleBg_t |
union | uObjBg |
struct | uObjSprite_t |
union | uObjSprite |
struct | uObjMtx_t |
union | uObjMtx |
struct | uObjSubMtx_t |
union | uObjSubMtx |
struct | uObjTxtrBlock_t |
struct | uObjTxtrTile_t |
struct | uObjTxtrTLUT_t |
union | uObjTxtr |
struct | uObjTxSprite |
Macros | |
#define | GS_CALC_DXT(line) (((1 << G_TX_DXT_FRAC) - 1) / (line) + 1) |
#define | GS_PIX2TMEM(pix, siz) ((pix) >> (4 - (siz))) |
#define | GS_PIX2DXT(pix, siz) GS_CALC_DXT(GS_PIX2TMEM((pix), (siz))) |
#define | G_BGLT_LOADBLOCK 0x0033 |
#define | G_BGLT_LOADTILE 0xfff4 |
#define | G_BG_FLAG_FLIPS 0x01 |
#define | G_BG_FLAG_FLIPT 0x10 |
#define | G_OBJ_FLAG_FLIPS 1 << 0 /* inversion to S-direction */ |
#define | G_OBJ_FLAG_FLIPT 1 << 4 /* nversion to T-direction */ |
#define | G_OBJLT_TXTRBLOCK 0x00001033 |
#define | G_OBJLT_TXTRTILE 0x00fc1034 |
#define | G_OBJLT_TLUT 0x00000030 |
#define | GS_TB_TSIZE(pix, siz) (GS_PIX2TMEM((pix), (siz)) - 1) |
#define | GS_TB_TLINE(pix, siz) (GS_CALC_DXT(GS_PIX2TMEM((pix), (siz)))) |
#define | GS_TT_TWIDTH(pix, siz) ((GS_PIX2TMEM((pix), (siz)) << 2) - 1) |
#define | GS_TT_THEIGHT(pix, siz) (((pix) << 2) - 1) |
#define | GS_PAL_HEAD(head) ((head) + 256) |
#define | GS_PAL_NUM(num) ((num) - 1) |
#define | G_BG_1CYC 0x01 |
#define | G_BG_COPY 0x02 |
#define | G_OBJ_RECTANGLE 0x03 |
#define | G_OBJ_SPRITE 0x04 |
#define | G_OBJ_MOVEMEM 0x05 |
#define | G_SELECT_DL 0xb0 |
#define | G_OBJ_RENDERMODE 0xb1 |
#define | G_OBJ_RECTANGLE_R 0xb2 |
#define | G_OBJ_LOADTXTR 0xc1 |
#define | G_OBJ_LDTX_SPRITE 0xc2 |
#define | G_OBJ_LDTX_RECT 0xc3 |
#define | G_OBJ_LDTX_RECT_R 0xc4 |
#define | G_RDPHALF_0 0xe4 |
#define | gSPBgRectangle(pkt, m, mptr) gDma0p((pkt), (m), (mptr), 0) |
#define | gsSPBgRectangle(m, mptr) gsDma0p((m), (mptr), 0) |
#define | gSPBgRectCopy(pkt, mptr) gSPBgRectangle((pkt), G_BG_COPY, (mptr)) |
#define | gsSPBgRectCopy(mptr) gsSPBgRectangle(G_BG_COPY, (mptr)) |
#define | gSPBgRect1Cyc(pkt, mptr) gSPBgRectangle((pkt), G_BG_1CYC, (mptr)) |
#define | gsSPBgRect1Cyc(mptr) gsSPBgRectangle(G_BG_1CYC, (mptr)) |
#define | gSPObjSprite(pkt, mptr) gDma0p((pkt), G_OBJ_SPRITE, (mptr), 0) |
#define | gsSPObjSprite(mptr) gsDma0p(G_OBJ_SPRITE, (mptr), 0) |
#define | gSPObjRectangle(pkt, mptr) gDma0p((pkt), G_OBJ_RECTANGLE, (mptr), 0) |
#define | gsSPObjRectangle(mptr) gsDma0p(G_OBJ_RECTANGLE, (mptr), 0) |
#define | gSPObjRectangleR(pkt, mptr) gDma0p((pkt), G_OBJ_RECTANGLE_R, (mptr), 0) |
#define | gsSPObjRectangleR(mptr) gsDma0p(G_OBJ_RECTANGLE_R, (mptr), 0) |
#define | gSPObjMatrix(pkt, mptr) gDma1p((pkt), G_OBJ_MOVEMEM, (mptr), 0, 23) |
#define | gsSPObjMatrix(mptr) gsDma1p(G_OBJ_MOVEMEM, (mptr), 0, 23) |
#define | gSPObjSubMatrix(pkt, mptr) gDma1p((pkt), G_OBJ_MOVEMEM, (mptr), 2, 7) |
#define | gsSPObjSubMatrix(mptr) gsDma1p(G_OBJ_MOVEMEM, (mptr), 2, 7) |
#define | gSPObjLoadTxtr(pkt, tptr) gDma0p((pkt), G_OBJ_LOADTXTR, (tptr), 23) |
#define | gsSPObjLoadTxtr(tptr) gsDma0p(G_OBJ_LOADTXTR, (tptr), 23) |
#define | gSPObjLoadTxSprite(pkt, tptr) gDma0p((pkt), G_OBJ_LDTX_SPRITE, (tptr), 47) |
#define | gsSPObjLoadTxSprite(tptr) gsDma0p(G_OBJ_LDTX_SPRITE, (tptr), 47) |
#define | gSPObjLoadTxRect(pkt, tptr) gDma0p((pkt), G_OBJ_LDTX_RECT, (tptr), 47) |
#define | gsSPObjLoadTxRect(tptr) gsDma0p(G_OBJ_LDTX_RECT, (tptr), 47) |
#define | gSPObjLoadTxRectR(pkt, tptr) gDma0p((pkt), G_OBJ_LDTX_RECT_R, (tptr), 47) |
#define | gsSPObjLoadTxRectR(tptr) gsDma0p(G_OBJ_LDTX_RECT_R, (tptr), 47) |
#define | gSPSelectDL(pkt, mptr, sid, flag, mask) |
#define | gsSPSelectDL(mptr, sid, flag, mask) |
#define | gSPSelectBranchDL(pkt, mptr, sid, flag, mask) |
#define | gsSPSelectBranchDL(mptr, sid, flag, mask) |
#define | G_MW_GENSTAT 0x08 /* Note that it is the same value of G_MW_FOG */ |
#define | gSPSetStatus(pkt, sid, val) gMoveWd((pkt), G_MW_GENSTAT, (sid), (val)) |
#define | gsSPSetStatus(sid, val) gsMoveWd(G_MW_GENSTAT, (sid), (val)) |
#define | G_OBJRM_NOTXCLAMP 0x01 |
#define | G_OBJRM_XLU 0x02 /* Ignored */ |
#define | G_OBJRM_ANTIALIAS 0x04 /* Ignored */ |
#define | G_OBJRM_BILERP 0x08 |
#define | G_OBJRM_SHRINKSIZE_1 0x10 |
#define | G_OBJRM_SHRINKSIZE_2 0x20 |
#define | G_OBJRM_WIDEN 0x40 |
#define | gSPObjRenderMode(pkt, mode) gImmp1((pkt), G_OBJ_RENDERMODE, (mode)) |
#define | gsSPObjRenderMode(mode) gsImmp1(G_OBJ_RENDERMODE, (mode)) |
#define | RM_RA_SPRITE(clk) |
#define | G_RM_SPRITE G_RM_OPA_SURF |
#define | G_RM_SPRITE2 G_RM_OPA_SURF2 |
#define | G_RM_RA_SPRITE RM_RA_SPRITE(1) |
#define | G_RM_RA_SPRITE2 RM_RA_SPRITE(2) |
#define | G_RM_AA_SPRITE G_RM_AA_TEX_TERR |
#define | G_RM_AA_SPRITE2 G_RM_AA_TEX_TERR2 |
#define | G_RM_XLU_SPRITE G_RM_XLU_SURF |
#define | G_RM_XLU_SPRITE2 G_RM_XLU_SURF2 |
#define | G_RM_AA_XLU_SPRITE G_RM_AA_XLU_SURF |
#define | G_RM_AA_XLU_SPRITE2 G_RM_AA_XLU_SURF2 |
Functions | |
void | guS2DInitBg (uObjBg *) |
void | guS2DEmuSetScissor (u32, u32, u32, u32, u8) |
void | guS2DEmuBgRect1Cyc (Gfx **, uObjBg *) |
#define G_BG_1CYC 0x01 |
#define G_BG_COPY 0x02 |
#define G_BG_FLAG_FLIPS 0x01 |
#define G_BG_FLAG_FLIPT 0x10 |
#define G_BGLT_LOADBLOCK 0x0033 |
#define G_BGLT_LOADTILE 0xfff4 |
#define G_MW_GENSTAT 0x08 /* Note that it is the same value of G_MW_FOG */ |
#define G_OBJ_FLAG_FLIPS 1 << 0 /* inversion to S-direction */ |
#define G_OBJ_FLAG_FLIPT 1 << 4 /* nversion to T-direction */ |
#define G_OBJ_LDTX_RECT 0xc3 |
#define G_OBJ_LDTX_RECT_R 0xc4 |
#define G_OBJ_LDTX_SPRITE 0xc2 |
#define G_OBJ_LOADTXTR 0xc1 |
#define G_OBJ_MOVEMEM 0x05 |
#define G_OBJ_RECTANGLE 0x03 |
#define G_OBJ_RECTANGLE_R 0xb2 |
#define G_OBJ_RENDERMODE 0xb1 |
#define G_OBJ_SPRITE 0x04 |
#define G_OBJLT_TLUT 0x00000030 |
#define G_OBJLT_TXTRBLOCK 0x00001033 |
#define G_OBJLT_TXTRTILE 0x00fc1034 |
#define G_OBJRM_ANTIALIAS 0x04 /* Ignored */ |
#define G_OBJRM_BILERP 0x08 |
#define G_OBJRM_NOTXCLAMP 0x01 |
#define G_OBJRM_SHRINKSIZE_1 0x10 |
#define G_OBJRM_SHRINKSIZE_2 0x20 |
#define G_OBJRM_WIDEN 0x40 |
#define G_OBJRM_XLU 0x02 /* Ignored */ |
#define G_RDPHALF_0 0xe4 |
#define G_RM_AA_SPRITE G_RM_AA_TEX_TERR |
#define G_RM_AA_SPRITE2 G_RM_AA_TEX_TERR2 |
#define G_RM_AA_XLU_SPRITE G_RM_AA_XLU_SURF |
#define G_RM_AA_XLU_SPRITE2 G_RM_AA_XLU_SURF2 |
#define G_RM_RA_SPRITE RM_RA_SPRITE(1) |
#define G_RM_RA_SPRITE2 RM_RA_SPRITE(2) |
#define G_RM_SPRITE G_RM_OPA_SURF |
#define G_RM_SPRITE2 G_RM_OPA_SURF2 |
#define G_RM_XLU_SPRITE G_RM_XLU_SURF |
#define G_RM_XLU_SPRITE2 G_RM_XLU_SURF2 |
#define G_SELECT_DL 0xb0 |
#define GS_CALC_DXT | ( | line | ) | (((1 << G_TX_DXT_FRAC) - 1) / (line) + 1) |
#define GS_PAL_HEAD | ( | head | ) | ((head) + 256) |
#define GS_PAL_NUM | ( | num | ) | ((num) - 1) |
#define GS_PIX2DXT | ( | pix, | |
siz ) GS_CALC_DXT(GS_PIX2TMEM((pix), (siz))) |
#define GS_PIX2TMEM | ( | pix, | |
siz ) ((pix) >> (4 - (siz))) |
#define GS_TB_TLINE | ( | pix, | |
siz ) (GS_CALC_DXT(GS_PIX2TMEM((pix), (siz)))) |
#define GS_TB_TSIZE | ( | pix, | |
siz ) (GS_PIX2TMEM((pix), (siz)) - 1) |
#define GS_TT_THEIGHT | ( | pix, | |
siz ) (((pix) << 2) - 1) |
#define GS_TT_TWIDTH | ( | pix, | |
siz ) ((GS_PIX2TMEM((pix), (siz)) << 2) - 1) |
#define gSPBgRect1Cyc | ( | pkt, | |
mptr ) gSPBgRectangle((pkt), G_BG_1CYC, (mptr)) |
#define gSPBgRectangle | ( | pkt, | |
m, | |||
mptr ) gDma0p((pkt), (m), (mptr), 0) |
#define gSPBgRectCopy | ( | pkt, | |
mptr ) gSPBgRectangle((pkt), G_BG_COPY, (mptr)) |
#define gSPObjLoadTxRect | ( | pkt, | |
tptr ) gDma0p((pkt), G_OBJ_LDTX_RECT, (tptr), 47) |
#define gSPObjLoadTxRectR | ( | pkt, | |
tptr ) gDma0p((pkt), G_OBJ_LDTX_RECT_R, (tptr), 47) |
#define gSPObjLoadTxSprite | ( | pkt, | |
tptr ) gDma0p((pkt), G_OBJ_LDTX_SPRITE, (tptr), 47) |
#define gSPObjLoadTxtr | ( | pkt, | |
tptr ) gDma0p((pkt), G_OBJ_LOADTXTR, (tptr), 23) |
#define gSPObjMatrix | ( | pkt, | |
mptr ) gDma1p((pkt), G_OBJ_MOVEMEM, (mptr), 0, 23) |
#define gSPObjRectangle | ( | pkt, | |
mptr ) gDma0p((pkt), G_OBJ_RECTANGLE, (mptr), 0) |
#define gSPObjRectangleR | ( | pkt, | |
mptr ) gDma0p((pkt), G_OBJ_RECTANGLE_R, (mptr), 0) |
#define gSPObjRenderMode | ( | pkt, | |
mode ) gImmp1((pkt), G_OBJ_RENDERMODE, (mode)) |
#define gSPObjSprite | ( | pkt, | |
mptr ) gDma0p((pkt), G_OBJ_SPRITE, (mptr), 0) |
#define gSPObjSubMatrix | ( | pkt, | |
mptr ) gDma1p((pkt), G_OBJ_MOVEMEM, (mptr), 2, 7) |
#define gSPSelectBranchDL | ( | pkt, | |
mptr, | |||
sid, | |||
flag, | |||
mask ) |
#define gSPSelectDL | ( | pkt, | |
mptr, | |||
sid, | |||
flag, | |||
mask ) |
#define gSPSetStatus | ( | pkt, | |
sid, | |||
val ) gMoveWd((pkt), G_MW_GENSTAT, (sid), (val)) |
#define gsSPBgRect1Cyc | ( | mptr | ) | gsSPBgRectangle(G_BG_1CYC, (mptr)) |
#define gsSPBgRectangle | ( | m, | |
mptr ) gsDma0p((m), (mptr), 0) |
#define gsSPBgRectCopy | ( | mptr | ) | gsSPBgRectangle(G_BG_COPY, (mptr)) |
#define gsSPObjLoadTxRect | ( | tptr | ) | gsDma0p(G_OBJ_LDTX_RECT, (tptr), 47) |
#define gsSPObjLoadTxRectR | ( | tptr | ) | gsDma0p(G_OBJ_LDTX_RECT_R, (tptr), 47) |
#define gsSPObjLoadTxSprite | ( | tptr | ) | gsDma0p(G_OBJ_LDTX_SPRITE, (tptr), 47) |
#define gsSPObjLoadTxtr | ( | tptr | ) | gsDma0p(G_OBJ_LOADTXTR, (tptr), 23) |
#define gsSPObjMatrix | ( | mptr | ) | gsDma1p(G_OBJ_MOVEMEM, (mptr), 0, 23) |
#define gsSPObjRectangle | ( | mptr | ) | gsDma0p(G_OBJ_RECTANGLE, (mptr), 0) |
#define gsSPObjRectangleR | ( | mptr | ) | gsDma0p(G_OBJ_RECTANGLE_R, (mptr), 0) |
#define gsSPObjRenderMode | ( | mode | ) | gsImmp1(G_OBJ_RENDERMODE, (mode)) |
#define gsSPObjSprite | ( | mptr | ) | gsDma0p(G_OBJ_SPRITE, (mptr), 0) |
#define gsSPObjSubMatrix | ( | mptr | ) | gsDma1p(G_OBJ_MOVEMEM, (mptr), 2, 7) |
#define gsSPSelectBranchDL | ( | mptr, | |
sid, | |||
flag, | |||
mask ) |
#define gsSPSelectDL | ( | mptr, | |
sid, | |||
flag, | |||
mask ) |
#define gsSPSetStatus | ( | sid, | |
val ) gsMoveWd(G_MW_GENSTAT, (sid), (val)) |
#define RM_RA_SPRITE | ( | clk | ) |
|
extern |
|
extern |
u64 gspS2DEX2_fifoDataEnd[] |
|
extern |
u64 gspS2DEX2_fifoTextEnd[] |
|
extern |
u64 gspS2DEX2_xbusDataEnd[] |
|
extern |
u64 gspS2DEX2_xbusTextEnd[] |
|
extern |
u64 gspS2DEX_fifo_dDataEnd[] |
|
extern |
u64 gspS2DEX_fifo_dTextEnd[] |
|
extern |
u64 gspS2DEX_fifoDataEnd[] |
|
extern |
u64 gspS2DEX_fifoTextEnd[] |
|
extern |