|
coastline 0.0.4
|
The graphics binary interface types the gu routines fill in for the RSP microcode. More...
#include <PR/ultratypes.h>

Go to the source code of this file.
Classes | |
| union | Mtx |
| A 4 by 4 matrix in s15.16 fixed point, with the integer halves before the fractions. More... | |
| struct | Light_t |
| A directional light with its colour, a copy of the colour and its direction. More... | |
| union | Light |
| A directional light, aligned for the RSP. More... | |
| struct | LookAt |
| The two directions the RSP uses to generate texture coordinates for reflection mapping. More... | |
| struct | Hilite_t |
| The texture coordinates of the two specular highlights. More... | |
| union | Hilite |
| The coordinates of two specular highlights, aligned for the RSP. More... | |
| struct | Vtx_t |
| A vertex with a texture coordinate and a color. More... | |
| struct | Vtx_tn |
| A vertex with a texture coordinate and a normal, for lighting. More... | |
| union | Vtx |
| A vertex for the RSP, with a colour or with a normal. More... | |
| struct | Gwords |
| The two words of a display list command. More... | |
| union | Gfx |
| A display list command for the Fast3D microcode. More... | |
| struct | Vp_t |
| The scale and translation of a viewport, in 10.2 fixed point, each with the depth third. More... | |
| union | Vp |
| A viewport, aligned for the RSP. More... | |
| struct | Ambient_t |
| An ambient light: its color, twice. More... | |
| union | Ambient |
| An ambient light, aligned for the RSP. More... | |
| struct | Lights1 |
| An ambient light and one directional light. More... | |
Macros | |
| #define | GBI_WORD1(x) |
| The second word of a command for x, an address or an operand. | |
| #define | G_MTX 0x01 |
| #define | G_VTX 0x04 |
| #define | G_DL 0x06 |
| #define | G_TRI2 0xB1 |
| #define | G_ENDDL 0xB8 |
| #define | G_TRI1 0xBF |
| #define | G_LOADTLUT 0xF0 |
| #define | G_TEXTURE 0xBB |
| #define | G_POPMTX 0xBD |
| #define | G_SETGEOMETRYMODE 0xB7 |
| #define | G_CLEARGEOMETRYMODE 0xB6 |
| #define | G_MOVEWORD 0xBC |
| #define | G_SETOTHERMODE_L 0xB9 |
| #define | G_SETOTHERMODE_H 0xBA |
| #define | G_RDPPIPESYNC 0xE7 |
| #define | G_RDPTILESYNC 0xE8 |
| #define | G_SETTILE 0xF5 |
| #define | G_SETENVCOLOR 0xFB |
| #define | G_SETFOGCOLOR 0xF8 |
| #define | G_SETBLENDCOLOR 0xF9 |
| #define | G_SETPRIMDEPTH 0xEE |
| #define | G_SETCOMBINE 0xFC |
| #define | G_RDPHALF_2 0xB3 |
| #define | G_RDPHALF_1 0xB4 |
| #define | G_TEXRECT 0xE4 |
| #define | G_TEXRECTFLIP 0xE5 |
| #define | G_RDPLOADSYNC 0xE6 |
| #define | G_SETTILESIZE 0xF2 |
| #define | G_LOADBLOCK 0xF3 |
| #define | G_SETPRIMCOLOR 0xFA |
| #define | G_SETTIMG 0xFD |
| #define | G_LOADTILE 0xF4 |
| #define | G_FILLRECT 0xF6 |
| #define | G_SETFILLCOLOR 0xF7 |
| #define | G_SETSCISSOR 0xED |
| #define | G_SETCIMG 0xFF |
| #define | G_SETZIMG 0xFE |
| #define | G_RDPFULLSYNC 0xE9 |
| #define | G_FILLRECT_INT_COORDS 0xE1 |
| Fill a rectangle with integer coordinates in the Windows renderer. | |
| #define | G_SETSCISSOR_INT_COORDS 0xE2 |
| Set a scissor rectangle with integer coordinates in the Windows renderer. | |
| #define | G_MTX_MODELVIEW 0x00 |
| #define | G_MTX_PROJECTION 0x01 |
| #define | G_MTX_MUL 0x00 |
| #define | G_MTX_LOAD 0x02 |
| #define | G_MTX_NOPUSH 0x00 |
| #define | G_MTX_PUSH 0x04 |
| #define | G_ZBUFFER 0x00000001 |
| #define | G_SHADE 0x00000004 |
| #define | G_SHADING_SMOOTH 0x00000200 |
| #define | G_CULL_FRONT 0x00001000 |
| #define | G_CULL_BACK 0x00002000 |
| #define | G_CULL_BOTH 0x00003000 |
| #define | G_FOG 0x00010000 |
| #define | G_LIGHTING 0x00020000 |
| #define | G_TEXTURE_GEN 0x00040000 |
| #define | G_TEXTURE_GEN_LINEAR 0x00080000 |
| #define | G_LOD 0x00100000 |
| #define | G_CLIPPING 0x00800000 |
| #define | G_MDSFT_ALPHACOMPARE 0 |
| #define | G_MDSFT_ZSRCSEL 2 |
| #define | G_MDSFT_RENDERMODE 3 |
| #define | G_MDSFT_ALPHADITHER 4 |
| #define | G_MDSFT_RGBDITHER 6 |
| #define | G_MDSFT_COMBKEY 8 |
| #define | G_MDSFT_TEXTCONV 9 |
| #define | G_MDSFT_TEXTFILT 12 |
| #define | G_MDSFT_TEXTLUT 14 |
| #define | G_MDSFT_TEXTLOD 16 |
| #define | G_MDSFT_TEXTDETAIL 17 |
| #define | G_MDSFT_TEXTPERSP 19 |
| #define | G_MDSFT_CYCLETYPE 20 |
| #define | G_CYC_1CYCLE (0 << G_MDSFT_CYCLETYPE) |
| #define | G_CYC_FILL (3 << G_MDSFT_CYCLETYPE) |
| #define | G_CYC_2CYCLE (1 << G_MDSFT_CYCLETYPE) |
| #define | G_CYC_COPY (2 << G_MDSFT_CYCLETYPE) |
| #define | G_CD_NOISE (2 << G_MDSFT_RGBDITHER) |
| #define | G_CD_DISABLE (3 << G_MDSFT_RGBDITHER) |
| #define | G_AC_NONE (0 << G_MDSFT_ALPHACOMPARE) |
| #define | G_AC_THRESHOLD (1 << G_MDSFT_ALPHACOMPARE) |
| #define | G_AC_DITHER (3 << G_MDSFT_ALPHACOMPARE) |
| #define | G_ZS_PIXEL (0 << G_MDSFT_ZSRCSEL) |
| #define | G_ZS_PRIM (1 << G_MDSFT_ZSRCSEL) |
| #define | G_SC_NON_INTERLACE 0 |
| #define | G_TL_TILE (0 << G_MDSFT_TEXTLOD) |
| #define | G_TL_LOD (1 << G_MDSFT_TEXTLOD) |
| #define | G_TD_CLAMP (0 << G_MDSFT_TEXTDETAIL) |
| #define | G_TC_FILT (6 << G_MDSFT_TEXTCONV) |
| #define | G_CK_NONE (0 << G_MDSFT_COMBKEY) |
| #define | G_TT_NONE (0 << G_MDSFT_TEXTLUT) |
| #define | G_TP_NONE (0 << G_MDSFT_TEXTPERSP) |
| #define | G_TP_PERSP (1 << G_MDSFT_TEXTPERSP) |
| #define | G_TF_POINT (0 << G_MDSFT_TEXTFILT) |
| #define | G_TF_BILERP (2 << G_MDSFT_TEXTFILT) |
| #define | G_CD_BAYER (1 << G_MDSFT_RGBDITHER) |
| #define | G_AD_PATTERN (0 << G_MDSFT_ALPHADITHER) |
| #define | G_TT_RGBA16 (2 << G_MDSFT_TEXTLUT) |
| #define | G_TT_IA16 (3 << G_MDSFT_TEXTLUT) |
| #define | AA_EN 0x0008 |
| #define | Z_CMP 0x0010 |
| #define | Z_UPD 0x0020 |
| #define | IM_RD 0x0040 |
| #define | CLR_ON_CVG 0x0080 |
| #define | CVG_DST_CLAMP 0x0000 |
| #define | CVG_DST_WRAP 0x0100 |
| #define | CVG_DST_FULL 0x0200 |
| #define | CVG_DST_SAVE 0x0300 |
| #define | ZMODE_OPA 0x0000 |
| #define | ZMODE_XLU 0x0800 |
| #define | ZMODE_DEC 0x0C00 |
| #define | CVG_X_ALPHA 0x1000 |
| #define | ALPHA_CVG_SEL 0x2000 |
| #define | FORCE_BL 0x4000 |
| #define | G_BL_CLR_IN 0 |
| #define | G_BL_CLR_MEM 1 |
| #define | G_BL_A_IN 0 |
| #define | G_BL_A_MEM 1 |
| #define | G_BL_A_FOG 1 |
| #define | G_BL_CLR_FOG 3 |
| #define | G_BL_A_SHADE 2 |
| #define | G_BL_1MA 0 |
| #define | G_BL_1 2 |
| #define | G_BL_0 3 |
| #define | GBL_c1(m1a, m1b, m2a, m2b) |
| The blender equation of the first cycle of a render mode. | |
| #define | GBL_c2(m1a, m1b, m2a, m2b) |
| The blender equation of the second cycle of a render mode. | |
| #define | G_RM_OPA_SURF (CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)) |
| The opaque surface without antialiasing or depth, for the first cycle. | |
| #define | G_RM_OPA_SURF2 (CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)) |
| The opaque surface without antialiasing or depth, for the second cycle. | |
| #define | G_RM_XLU_SURF |
| The translucent surface without antialiasing, for the first cycle. | |
| #define | G_RM_XLU_SURF2 |
| The translucent surface without antialiasing, for the second cycle. | |
| #define | G_CCMUX_COMBINED 0 |
| #define | G_CCMUX_TEXEL0 1 |
| #define | G_CCMUX_TEXEL1 2 |
| #define | G_CCMUX_PRIMITIVE 3 |
| #define | G_CCMUX_SHADE 4 |
| #define | G_CCMUX_ENVIRONMENT 5 |
| #define | G_CCMUX_TEXEL0_ALPHA 8 |
| #define | G_CCMUX_PRIMITIVE_ALPHA 10 |
| #define | G_CCMUX_SHADE_ALPHA 11 |
| #define | G_CCMUX_ENV_ALPHA 12 |
| #define | G_CCMUX_LOD_FRACTION 13 |
| #define | G_CCMUX_1 6 |
| #define | G_CCMUX_0 31 |
| #define | G_ACMUX_COMBINED 0 |
| #define | G_ACMUX_LOD_FRACTION 0 |
| #define | G_ACMUX_TEXEL0 1 |
| #define | G_ACMUX_TEXEL1 2 |
| #define | G_ACMUX_PRIMITIVE 3 |
| #define | G_ACMUX_SHADE 4 |
| #define | G_ACMUX_ENVIRONMENT 5 |
| #define | G_ACMUX_1 6 |
| #define | G_ACMUX_0 7 |
| #define | G_IM_FMT_RGBA 0 |
| #define | G_IM_FMT_CI 2 |
| #define | G_IM_FMT_IA 3 |
| #define | G_IM_FMT_I 4 |
| #define | G_IM_SIZ_4b 0 |
| #define | G_IM_SIZ_8b 1 |
| #define | G_IM_SIZ_16b 2 |
| #define | G_IM_SIZ_8b_LOAD_BLOCK G_IM_SIZ_16b |
| #define | G_IM_SIZ_8b_INCR 1 |
| #define | G_IM_SIZ_8b_SHIFT 1 |
| #define | G_IM_SIZ_8b_BYTES 1 |
| #define | G_IM_SIZ_8b_LINE_BYTES 1 |
| #define | G_IM_SIZ_16b_LOAD_BLOCK G_IM_SIZ_16b |
| #define | G_IM_SIZ_16b_INCR 0 |
| #define | G_IM_SIZ_16b_SHIFT 0 |
| #define | G_IM_SIZ_16b_BYTES 2 |
| #define | G_IM_SIZ_16b_LINE_BYTES 2 |
| #define | G_TX_RENDERTILE 0 |
| #define | G_TX_LOADTILE 7 |
| #define | G_TX_WRAP 0 |
| #define | G_TX_MIRROR 1 |
| #define | G_TX_CLAMP 2 |
| #define | G_TX_NOLOD 0 |
| #define | G_ON 1 |
| #define | G_OFF 0 |
| #define | G_TEXTURE_IMAGE_FRAC 2 |
| #define | G_TX_DXT_FRAC 11 |
| #define | G_TX_LDBLK_MAX_TXL 2047 |
| The most texels one load block takes, less one. | |
| #define | TXL2WORDS_4b(txls) |
| The 64-bit words of a row of a 4-bit texture, at least one. | |
| #define | CALC_DXT_4b(width) |
| The step of the row counter of a load block for a 4-bit texture of a width. | |
| #define | TXL2WORDS(txls, b_txl) |
| The 64-bit words of a row of a texture with texels of b_txl bytes, at least one. | |
| #define | CALC_DXT(width, b_txl) |
| The step of the row counter of a load block for a texture with texels of b_txl bytes. | |
| #define | G_MW_CLIP 0x04 |
| #define | G_MWO_CLIP_RNX 0x04 |
| #define | G_MWO_CLIP_RNY 0x0C |
| #define | G_MWO_CLIP_RPX 0x14 |
| #define | G_MWO_CLIP_RPY 0x1C |
| #define | FRUSTRATIO_1 1 |
| #define | FRUSTRATIO_6 6 |
| #define | G_MOVEMEM 0x03 |
| #define | G_MV_L0 0x86 |
| #define | G_MW_NUMLIGHT 0x02 |
| #define | G_MWO_NUMLIGHT 0x00 |
| #define | NUMLIGHTS_1 1 |
| #define | NUMLIGHTS_4 4 |
| #define | LIGHT_1 1 |
| #define | LIGHT_2 2 |
| #define | G_MV_LOOKATY 0x82 |
| #define | G_MV_LOOKATX 0x84 |
| #define | G_MV_MATRIX_1 0x9E |
| #define | G_MV_MATRIX_2 0x98 |
| #define | G_MV_MATRIX_3 0x9A |
| #define | G_MV_MATRIX_4 0x9C |
| #define | G_MW_SEGMENT 0x06 |
| #define | G_MW_LIGHTCOL 0x0A |
| #define | G_MW_PERSPNORM 0x0E |
| #define | G_MV_VIEWPORT 0x80 |
| #define | G_MW_FOG 0x08 |
| #define | G_MWO_FOG 0x00 |
| #define | NUML(n) |
| The word gSPNumLights() sends for a number of directional lights. | |
| #define | gDisplayListWords(pkt, c0, c1) |
| Write a command of two words at pkt, which is evaluated once. | |
| #define | gDPNoParam(pkt, cmd) |
| Write command cmd with no parameters. | |
| #define | gImmp1(pkt, cmd, data) |
| Write command cmd with data as its second word. | |
| #define | gMoveWd(pkt, index, offset, data) |
| Write data to the word at offset in the microcode state of index. | |
| #define | gSPSetOtherMode(pkt, cmd, sft, len, data) |
| Replace len bits of an other mode word from bit sft with data. | |
| #define | gSPMatrix(pkt, m, p) |
| Load or multiply matrix m by the G_MTX_* flags of p. | |
| #define | gSPPopMatrix(pkt, n) |
| Pop the modelview matrix; n is the matrix stack. | |
| #define | gSPDisplayList(pkt, dl) |
| Call display list dl. | |
| #define | gSPEndDisplayList(pkt) |
| End the display list. | |
| #define | gSPVertex(pkt, v, n, v0) |
| Load n vertices into the vertex buffer of the F3DEX microcode from index v0. | |
| #define | gSP2Triangles(pkt, v00, v01, v02, flag0, v10, v11, v12, flag1) |
| Draw two triangles of the vertex buffer. | |
| #define | gSPSetGeometryMode(pkt, word) |
| Set the geometry mode bits of word. | |
| #define | gSPClearGeometryMode(pkt, word) |
| Clear the geometry mode bits of word. | |
| #define | gSPTexture(pkt, s, t, level, tile, on) |
| Set the texture scale s and t, the levels of detail, the tile, and whether texturing is on. | |
| #define | gSPClipRatio(pkt, r) |
| Set the ratio of the clipping box to the screen with four commands. | |
| #define | gSPNumLights(pkt, n) |
| Set the number of directional lights. | |
| #define | gSPLightColor(pkt, n, col) |
| Set the colour of light n, from 1, as its two copies. | |
| #define | gSPPerspNormalize(pkt, s) |
| Set the normalisation of the perspective, which gu's perspective routines return. | |
| #define | gSPViewport(pkt, v) |
| Load a viewport. | |
| #define | gSPFogPosition(pkt, min, max) |
| Set the depths the fog starts and ends at, from 0 at the near plane to 1000 at the far. | |
| #define | gSPSegment(pkt, segment, base) |
| Set the base of a segment. | |
| #define | gSPLookAt(pkt, la) |
| Load the look-at of the reflections, its x then its y. | |
| #define | gSPForceMatrix(pkt, m) |
| Load a matrix as the product of the model view and the projection, a row pair at a time. | |
| #define | gSPLight(pkt, l, n) |
| Load a light into light slot n, from 1. | |
| #define | gDPPipeSync(pkt) |
| Wait for the RDP pipeline to drain before a mode changes. | |
| #define | gDPTileSync(pkt) |
| Wait for the tile descriptors to settle before a tile changes. | |
| #define | gDPSetCycleType(pkt, type) |
| Set the G_CYC_* cycle type. | |
| #define | gDPSetTextureFilter(pkt, type) |
| Set the G_TF_* texture filter. | |
| #define | gDPSetTextureLOD(pkt, type) |
| Set the G_TL_* texture level of detail. | |
| #define | gDPSetTextureDetail(pkt, type) |
| Set the G_TD_* texture detail. | |
| #define | gDPSetTextureConvert(pkt, type) |
| Set the G_TC_* texture conversion. | |
| #define | gDPSetCombineKey(pkt, type) |
| Set the G_CK_* chroma key. | |
| #define | gDPSetColorDither(pkt, mode) |
| Set the G_CD_* colour dither. | |
| #define | gDPSetAlphaDither(pkt, mode) |
| Set the G_AD_* alpha dither. | |
| #define | gDPSetAlphaCompare(pkt, type) |
| Set the G_AC_* alpha compare. | |
| #define | gDPSetDepthSource(pkt, src) |
| Set the G_ZS_* depth source. | |
| #define | gDPSetBlendColor(pkt, r, g, b, a) |
| Set the blend colour. | |
| #define | gDPSetPrimDepth(pkt, z, dz) |
| Set the depth of a primitive whose depth source is G_ZS_PRIM. | |
| #define | gDPSetScissor(pkt, mode, ulx, uly, lrx, lry) |
| Set the scissor rectangle: integer coordinates on Windows, 10.2 fixed point on N64. | |
| #define | gDPSetRenderMode(pkt, c0, c1) |
| Set the render mode from the modes of the first and second cycles. | |
| #define | gDPSetEnvColor(pkt, r, g, b, a) |
| Set the environment colour. | |
| #define | gDPSetFogColor(pkt, r, g, b, a) |
| Set the fog colour. | |
| #define | gDPSetTile( pkt, fmt, siz, line, tmem, tile, palette, cmt, maskt, shiftt, cms, masks, shifts) |
| Set the format, texel size, row length, address, palette, and wrapping of a tile. | |
| #define | gDPSetCombineLERP( pkt, a0, b0, c0, d0, Aa0, Ab0, Ac0, Ad0, a1, b1, c1, d1, Aa1, Ab1, Ac1, Ad1) |
| Set the colour combiner from the a, b, c and d inputs of (a - b) * c + d for each cycle. | |
| #define | gDPLoadSync(pkt) |
| Wait for a texture load to finish. | |
| #define | gDPFullSync(pkt) |
| Wait for the RDP to finish the frame and raise its interrupt. | |
| #define | gDPSetDepthImage(pkt, i) |
| Set the depth buffer to i. | |
| #define | gDPSetColorImage(pkt, f, s, w, i) |
| Set the colour buffer to i, of format f, texel size s, and width w. | |
| #define | GPACK_RGBA5551(r, g, b, a) |
| A colour of RGBA 5551 from components of 8 bits and an alpha of 1 bit. | |
| #define | GPACK_ZDZ(z, dz) |
| A depth and its slope, as the depth buffer stores them. | |
| #define | G_MAXFIXED 0x3FFF |
| The farthest depth. | |
| #define | gDPSetFillColor(pkt, d) |
| Set the fill colour, a 32-bit word of one or two packed pixels. | |
| #define | gDPFillRectangle(pkt, ulx, uly, lrx, lry) |
| Fill a rectangle, its corners inclusive, with the fill colour. | |
| #define | gDPSetTextureLUT(pkt, type) |
| Set the G_TT_* texture palette. | |
| #define | gDPSetTexturePersp(pkt, type) |
| Set the G_TP_* texture perspective correction. | |
| #define | gDPSetPrimColor(pkt, m, l, r, g, b, a) |
| Set the primitive colour with the minimum level of detail m and its fraction l. | |
| #define | gDPSetTextureImage(pkt, f, s, w, i) |
| Set the texture image to i, of format f, texel size s, and width w. | |
| #define | gDPLoadBlock(pkt, tile, uls, ult, lrs, dxt) |
| Load texels uls to lrs of the texture image through a tile, with row step dxt. | |
| #define | gDPSetTileSize(pkt, t, uls, ult, lrs, lrt) |
| Set the extent of tile t, in 10.2 fixed point. | |
| #define | gDPLoadTLUTCmd(pkt, tile, count) |
| Load count + 1 colors of a palette through a tile. | |
| #define | gDPLoadTLUT_pal256(pkt, dram) |
| Load a palette of 256 colors into the upper half of the texture memory. | |
| #define | gDPLoadTLUT_pal16(pkt, pal, dram) |
| Load a palette of 16 colors into one of the sixteen palettes of the upper texture memory. | |
| #define | gDPSetHilite1Tile(pkt, tile, hilite, width, height) |
| Place a tile of a size at the first specular highlight. | |
| #define | gDPLoadTile(pkt, t, uls, ult, lrs, lrt) |
| Load a rectangle of texels. | |
| #define | gDPLoadTextureBlock_4b( pkt, timg, fmt, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt) |
| Load a 4-bit texture into the texture memory and set up the render tile to draw it. | |
| #define | gDPLoadTextureBlock( pkt, timg, fmt, siz, width, height, pal, cms, cmt, masks, maskt, shifts, shiftt) |
| Load an 8-bit or 16-bit texture into the texture memory and set up the render tile. | |
| #define | gDPLoadTextureTile_4b(pkt, timg, fmt, width, height, uls, ult, lrs, lrt, pal, cms, cmt, masks, maskt, shifts, shiftt) |
| Load a rectangle of a 4-bit texture into the texture memory and set up the render tile. | |
| #define | gSPTextureRectangle(pkt, xl, yl, xh, yh, tile, s, t, dsdx, dtdy) |
| Draw a textured rectangle in screen coordinates of 10.2 fixed point. | |
The graphics binary interface types the gu routines fill in for the RSP microcode.
| #define GBI_WORD1 | ( | x | ) |
| #define G_MTX 0x01 |
Load or multiply a matrix.
| #define G_VTX 0x04 |
Load vertices.
| #define G_DL 0x06 |
Call or branch to a display list.
| #define G_TRI2 0xB1 |
Draw two triangles.
| #define G_ENDDL 0xB8 |
End a display list.
| #define G_TRI1 0xBF |
Draw one triangle.
| #define G_LOADTLUT 0xF0 |
Load a palette into texture memory.
| #define G_TEXTURE 0xBB |
Set the texture scale and tile.
| #define G_POPMTX 0xBD |
Pop the modelview matrix.
| #define G_SETGEOMETRYMODE 0xB7 |
Set bits of the geometry mode.
| #define G_CLEARGEOMETRYMODE 0xB6 |
Clear bits of the geometry mode.
| #define G_MOVEWORD 0xBC |
Write a word of the microcode state.
| #define G_SETOTHERMODE_L 0xB9 |
Set bits of the low other mode word.
| #define G_SETOTHERMODE_H 0xBA |
Set bits of the high other mode word.
| #define G_RDPPIPESYNC 0xE7 |
Wait for the RDP pipeline to drain.
| #define G_RDPTILESYNC 0xE8 |
Wait for the tile descriptors to settle.
| #define G_SETTILE 0xF5 |
Set a tile descriptor.
| #define G_SETENVCOLOR 0xFB |
Set the environment colour.
| #define G_SETFOGCOLOR 0xF8 |
Set the fog colour.
| #define G_SETBLENDCOLOR 0xF9 |
Set the blend colour.
| #define G_SETPRIMDEPTH 0xEE |
Set the primitive depth.
| #define G_SETCOMBINE 0xFC |
Set the colour combiner.
| #define G_RDPHALF_2 0xB3 |
The second extra word of a long command.
| #define G_RDPHALF_1 0xB4 |
The first extra word of a long command.
| #define G_TEXRECT 0xE4 |
Draw a textured rectangle.
| #define G_TEXRECTFLIP 0xE5 |
Draw a textured rectangle with s and t exchanged.
| #define G_RDPLOADSYNC 0xE6 |
Wait for a texture load to finish.
| #define G_SETTILESIZE 0xF2 |
Set the extent of a tile.
| #define G_LOADBLOCK 0xF3 |
Load a run of texels into texture memory.
| #define G_SETPRIMCOLOR 0xFA |
Set the primitive colour.
| #define G_SETTIMG 0xFD |
Set the texture image.
| #define G_LOADTILE 0xF4 |
Load a rectangle of texels into texture memory.
| #define G_FILLRECT 0xF6 |
Fill a rectangle.
| #define G_SETFILLCOLOR 0xF7 |
Set the fill colour.
| #define G_SETSCISSOR 0xED |
Set the scissor box.
| #define G_SETCIMG 0xFF |
Set the colour image.
| #define G_SETZIMG 0xFE |
Set the depth image.
| #define G_RDPFULLSYNC 0xE9 |
Wait for the RDP to finish and raise its interrupt.
| #define G_FILLRECT_INT_COORDS 0xE1 |
Fill a rectangle with integer coordinates in the Windows renderer.
| #define G_SETSCISSOR_INT_COORDS 0xE2 |
Set a scissor rectangle with integer coordinates in the Windows renderer.
| #define G_MTX_MODELVIEW 0x00 |
The modelview matrix.
| #define G_MTX_PROJECTION 0x01 |
The projection matrix.
| #define G_MTX_MUL 0x00 |
Multiply the current matrix.
| #define G_MTX_LOAD 0x02 |
Replace the current matrix.
| #define G_MTX_NOPUSH 0x00 |
Do not push the current matrix first.
| #define G_MTX_PUSH 0x04 |
Push the current matrix first.
| #define G_ZBUFFER 0x00000001 |
Compute depth.
| #define G_SHADE 0x00000004 |
Compute the shade colour.
| #define G_SHADING_SMOOTH 0x00000200 |
Interpolate the shade across a triangle.
| #define G_CULL_FRONT 0x00001000 |
Discard triangles facing the camera.
| #define G_CULL_BACK 0x00002000 |
Discard triangles facing away.
| #define G_CULL_BOTH 0x00003000 |
Discard every triangle.
| #define G_FOG 0x00010000 |
Compute fog.
| #define G_LIGHTING 0x00020000 |
Light vertices from their normals.
| #define G_TEXTURE_GEN 0x00040000 |
Generate texture coordinates from normals.
| #define G_TEXTURE_GEN_LINEAR 0x00080000 |
Generate them linearly.
| #define G_LOD 0x00100000 |
Compute the level of detail.
| #define G_CLIPPING 0x00800000 |
Clip triangles to the frustum.
| #define G_MDSFT_ALPHACOMPARE 0 |
The alpha compare.
| #define G_MDSFT_ZSRCSEL 2 |
The source of the depth.
| #define G_MDSFT_RENDERMODE 3 |
The render mode.
| #define G_MDSFT_ALPHADITHER 4 |
The alpha dither.
| #define G_MDSFT_RGBDITHER 6 |
The colour dither.
| #define G_MDSFT_COMBKEY 8 |
The chroma key.
| #define G_MDSFT_TEXTCONV 9 |
The texture conversion.
| #define G_MDSFT_TEXTFILT 12 |
The texture filter.
| #define G_MDSFT_TEXTLUT 14 |
The texture palette.
| #define G_MDSFT_TEXTLOD 16 |
The texture level of detail.
| #define G_MDSFT_TEXTDETAIL 17 |
The texture detail.
| #define G_MDSFT_TEXTPERSP 19 |
The texture perspective correction.
| #define G_MDSFT_CYCLETYPE 20 |
The cycle type.
| #define G_CYC_1CYCLE (0 << G_MDSFT_CYCLETYPE) |
One cycle per pixel.
| #define G_CYC_FILL (3 << G_MDSFT_CYCLETYPE) |
Fill with the fill colour.
| #define G_CYC_2CYCLE (1 << G_MDSFT_CYCLETYPE) |
Two cycles per pixel.
| #define G_CYC_COPY (2 << G_MDSFT_CYCLETYPE) |
Copy texels to the frame buffer.
| #define G_CD_NOISE (2 << G_MDSFT_RGBDITHER) |
Dither the colour with noise.
| #define G_CD_DISABLE (3 << G_MDSFT_RGBDITHER) |
Do not dither the colour.
| #define G_AC_NONE (0 << G_MDSFT_ALPHACOMPARE) |
Do not compare alpha.
| #define G_AC_THRESHOLD (1 << G_MDSFT_ALPHACOMPARE) |
Compare alpha with the blend alpha.
| #define G_AC_DITHER (3 << G_MDSFT_ALPHACOMPARE) |
Compare alpha with a random value.
| #define G_ZS_PIXEL (0 << G_MDSFT_ZSRCSEL) |
Take the depth of each pixel.
| #define G_ZS_PRIM (1 << G_MDSFT_ZSRCSEL) |
Take the primitive depth.
| #define G_SC_NON_INTERLACE 0 |
Draw every line.
| #define G_TL_TILE (0 << G_MDSFT_TEXTLOD) |
Take the tile of the command.
| #define G_TL_LOD (1 << G_MDSFT_TEXTLOD) |
Pick the tile by level of detail.
| #define G_TD_CLAMP (0 << G_MDSFT_TEXTDETAIL) |
Clamp the level of detail.
| #define G_TC_FILT (6 << G_MDSFT_TEXTCONV) |
Filter without colour conversion.
| #define G_CK_NONE (0 << G_MDSFT_COMBKEY) |
No chroma key.
| #define G_TT_NONE (0 << G_MDSFT_TEXTLUT) |
No palette.
| #define G_TP_NONE (0 << G_MDSFT_TEXTPERSP) |
No perspective correction.
| #define G_TP_PERSP (1 << G_MDSFT_TEXTPERSP) |
Perspective correction.
| #define G_TF_POINT (0 << G_MDSFT_TEXTFILT) |
Point sampling.
| #define G_TF_BILERP (2 << G_MDSFT_TEXTFILT) |
Bilinear filtering.
| #define G_CD_BAYER (1 << G_MDSFT_RGBDITHER) |
Dither the colour with a Bayer matrix.
| #define G_AD_PATTERN (0 << G_MDSFT_ALPHADITHER) |
Dither alpha with a pattern.
| #define G_TT_RGBA16 (2 << G_MDSFT_TEXTLUT) |
A palette of 16-bit RGBA colours.
| #define G_TT_IA16 (3 << G_MDSFT_TEXTLUT) |
A palette of 16-bit intensity and alpha.
| #define AA_EN 0x0008 |
Antialias.
| #define Z_CMP 0x0010 |
Compare depth.
| #define Z_UPD 0x0020 |
Write depth.
| #define IM_RD 0x0040 |
Read the colour image.
| #define CLR_ON_CVG 0x0080 |
Write colour only when coverage overflows.
| #define CVG_DST_CLAMP 0x0000 |
Clamp the coverage.
| #define CVG_DST_WRAP 0x0100 |
Wrap the coverage.
| #define CVG_DST_FULL 0x0200 |
Force full coverage.
| #define CVG_DST_SAVE 0x0300 |
Preserve the stored coverage.
| #define ZMODE_OPA 0x0000 |
Opaque depth.
| #define ZMODE_XLU 0x0800 |
Translucent depth.
| #define ZMODE_DEC 0x0C00 |
Decal depth.
| #define CVG_X_ALPHA 0x1000 |
Multiply coverage by alpha.
| #define ALPHA_CVG_SEL 0x2000 |
Take alpha from coverage.
| #define FORCE_BL 0x4000 |
Blend every pixel.
| #define G_BL_CLR_IN 0 |
The colour of the pixel.
| #define G_BL_CLR_MEM 1 |
The colour in memory.
| #define G_BL_A_IN 0 |
The alpha of the pixel.
| #define G_BL_A_MEM 1 |
The alpha in memory.
| #define G_BL_A_FOG 1 |
The alpha of the fog colour.
| #define G_BL_CLR_FOG 3 |
The fog colour.
| #define G_BL_A_SHADE 2 |
The shade alpha.
| #define G_BL_1MA 0 |
One minus the first alpha.
| #define G_BL_1 2 |
One.
| #define G_BL_0 3 |
Zero.
| #define GBL_c1 | ( | m1a, | |
| m1b, | |||
| m2a, | |||
| m2b ) |
| #define GBL_c2 | ( | m1a, | |
| m1b, | |||
| m2a, | |||
| m2b ) |
| #define G_RM_OPA_SURF (CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c1(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)) |
The opaque surface without antialiasing or depth, for the first cycle.
| #define G_RM_OPA_SURF2 (CVG_DST_CLAMP | FORCE_BL | ZMODE_OPA | GBL_c2(G_BL_CLR_IN, G_BL_0, G_BL_CLR_IN, G_BL_1)) |
The opaque surface without antialiasing or depth, for the second cycle.
| #define G_RM_XLU_SURF |
The translucent surface without antialiasing, for the first cycle.
| #define G_RM_XLU_SURF2 |
The translucent surface without antialiasing, for the second cycle.
| #define G_CCMUX_COMBINED 0 |
The output of the first cycle.
| #define G_CCMUX_TEXEL0 1 |
The colour of texel 0.
| #define G_CCMUX_TEXEL1 2 |
The colour of texel 1.
| #define G_CCMUX_PRIMITIVE 3 |
The primitive colour.
| #define G_CCMUX_SHADE 4 |
The shade colour.
| #define G_CCMUX_ENVIRONMENT 5 |
The environment colour.
| #define G_CCMUX_TEXEL0_ALPHA 8 |
The alpha of texel 0.
| #define G_CCMUX_PRIMITIVE_ALPHA 10 |
The primitive alpha.
| #define G_CCMUX_SHADE_ALPHA 11 |
The shade alpha.
| #define G_CCMUX_ENV_ALPHA 12 |
The environment alpha.
| #define G_CCMUX_LOD_FRACTION 13 |
The fraction of the level of detail.
| #define G_CCMUX_1 6 |
One.
| #define G_CCMUX_0 31 |
Zero.
| #define G_ACMUX_COMBINED 0 |
The alpha output of the first cycle.
| #define G_ACMUX_LOD_FRACTION 0 |
The fraction of the level of detail.
| #define G_ACMUX_TEXEL0 1 |
The alpha of texel 0.
| #define G_ACMUX_TEXEL1 2 |
The alpha of texel 1.
| #define G_ACMUX_PRIMITIVE 3 |
The primitive alpha.
| #define G_ACMUX_SHADE 4 |
The shade alpha.
| #define G_ACMUX_ENVIRONMENT 5 |
The environment alpha.
| #define G_ACMUX_1 6 |
One.
| #define G_ACMUX_0 7 |
Zero.
| #define G_IM_FMT_RGBA 0 |
RGBA texels.
| #define G_IM_FMT_CI 2 |
Palette indices.
| #define G_IM_FMT_IA 3 |
Intensity and alpha.
| #define G_IM_FMT_I 4 |
Intensity.
| #define G_IM_SIZ_4b 0 |
Texels of 4 bits.
| #define G_IM_SIZ_8b 1 |
Texels of 8 bits.
| #define G_IM_SIZ_16b 2 |
Texels of 16 bits.
| #define G_IM_SIZ_8b_LOAD_BLOCK G_IM_SIZ_16b |
8-bit texels load as 16-bit texels.
| #define G_IM_SIZ_8b_INCR 1 |
The rounding of an 8-bit texel count.
| #define G_IM_SIZ_8b_SHIFT 1 |
The shift of an 8-bit texel count.
| #define G_IM_SIZ_8b_BYTES 1 |
The bytes of an 8-bit texel.
| #define G_IM_SIZ_8b_LINE_BYTES 1 |
The bytes of an 8-bit texel in a row.
| #define G_IM_SIZ_16b_LOAD_BLOCK G_IM_SIZ_16b |
16-bit texels load unchanged.
| #define G_IM_SIZ_16b_INCR 0 |
The rounding of a 16-bit texel count.
| #define G_IM_SIZ_16b_SHIFT 0 |
The shift of a 16-bit texel count.
| #define G_IM_SIZ_16b_BYTES 2 |
The bytes of a 16-bit texel.
| #define G_IM_SIZ_16b_LINE_BYTES 2 |
The bytes of a 16-bit texel in a row.
| #define G_TX_RENDERTILE 0 |
The tile drawing uses.
| #define G_TX_LOADTILE 7 |
The tile loads use.
| #define G_TX_WRAP 0 |
Repeat the texture.
| #define G_TX_MIRROR 1 |
Mirror the texture.
| #define G_TX_CLAMP 2 |
Clamp to the edge texel.
| #define G_TX_NOLOD 0 |
No level of detail.
| #define G_ON 1 |
On.
| #define G_OFF 0 |
Off.
| #define G_TEXTURE_IMAGE_FRAC 2 |
The fraction bits of an image coordinate.
| #define G_TX_DXT_FRAC 11 |
The fraction bits of the row step of a load block.
| #define G_TX_LDBLK_MAX_TXL 2047 |
The most texels one load block takes, less one.
| #define TXL2WORDS_4b | ( | txls | ) |
The 64-bit words of a row of a 4-bit texture, at least one.
| #define CALC_DXT_4b | ( | width | ) |
The step of the row counter of a load block for a 4-bit texture of a width.
| #define TXL2WORDS | ( | txls, | |
| b_txl ) |
The 64-bit words of a row of a texture with texels of b_txl bytes, at least one.
| #define CALC_DXT | ( | width, | |
| b_txl ) |
The step of the row counter of a load block for a texture with texels of b_txl bytes.
| #define G_MW_CLIP 0x04 |
The index of the clipping ratio.
| #define G_MWO_CLIP_RNX 0x04 |
The offset of the negative x ratio.
| #define G_MWO_CLIP_RNY 0x0C |
The offset of the negative y ratio.
| #define G_MWO_CLIP_RPX 0x14 |
The offset of the positive x ratio.
| #define G_MWO_CLIP_RPY 0x1C |
The offset of the positive y ratio.
| #define FRUSTRATIO_1 1 |
A clipping box the size of the screen.
| #define FRUSTRATIO_6 6 |
A clipping box six times the size of the screen.
| #define G_MOVEMEM 0x03 |
Load a block of the microcode state.
| #define G_MV_L0 0x86 |
The block of light 0.
| #define G_MW_NUMLIGHT 0x02 |
The index of the light count.
| #define G_MWO_NUMLIGHT 0x00 |
The offset of the light count.
| #define NUMLIGHTS_1 1 |
One directional light.
| #define NUMLIGHTS_4 4 |
Four directional lights.
| #define LIGHT_1 1 |
The first light.
| #define LIGHT_2 2 |
The second light.
| #define G_MV_LOOKATY 0x82 |
The block of the y look-at vector.
| #define G_MV_LOOKATX 0x84 |
The block of the x look-at vector.
| #define G_MV_MATRIX_1 0x9E |
The block of the first quarter of a matrix.
| #define G_MV_MATRIX_2 0x98 |
The block of the second quarter of a matrix.
| #define G_MV_MATRIX_3 0x9A |
The block of the third quarter of a matrix.
| #define G_MV_MATRIX_4 0x9C |
The block of the fourth quarter of a matrix.
| #define G_MW_SEGMENT 0x06 |
The index of the segment table.
| #define G_MW_LIGHTCOL 0x0A |
The index of the light colours.
| #define G_MW_PERSPNORM 0x0E |
The index of the perspective normalisation.
| #define G_MV_VIEWPORT 0x80 |
The block of the viewport.
| #define G_MW_FOG 0x08 |
The index of the fog parameters.
| #define G_MWO_FOG 0x00 |
The offset of the fog parameters.
| #define NUML | ( | n | ) |
The word gSPNumLights() sends for a number of directional lights.
| #define gDisplayListWords | ( | pkt, | |
| c0, | |||
| c1 ) |
Write a command of two words at pkt, which is evaluated once.
| #define gDPNoParam | ( | pkt, | |
| cmd ) |
Write command cmd with no parameters.
| #define gImmp1 | ( | pkt, | |
| cmd, | |||
| data ) |
Write command cmd with data as its second word.
| #define gMoveWd | ( | pkt, | |
| index, | |||
| offset, | |||
| data ) |
Write data to the word at offset in the microcode state of index.
| #define gSPSetOtherMode | ( | pkt, | |
| cmd, | |||
| sft, | |||
| len, | |||
| data ) |
Replace len bits of an other mode word from bit sft with data.
| #define gSPMatrix | ( | pkt, | |
| m, | |||
| p ) |
Load or multiply matrix m by the G_MTX_* flags of p.
| #define gSPPopMatrix | ( | pkt, | |
| n ) |
| #define gSPDisplayList | ( | pkt, | |
| dl ) |
Call display list dl.
| #define gSPEndDisplayList | ( | pkt | ) |
End the display list.
| #define gSPVertex | ( | pkt, | |
| v, | |||
| n, | |||
| v0 ) |
Load n vertices into the vertex buffer of the F3DEX microcode from index v0.
| #define gSP2Triangles | ( | pkt, | |
| v00, | |||
| v01, | |||
| v02, | |||
| flag0, | |||
| v10, | |||
| v11, | |||
| v12, | |||
| flag1 ) |
Draw two triangles of the vertex buffer.
| #define gSPSetGeometryMode | ( | pkt, | |
| word ) |
Set the geometry mode bits of word.
| #define gSPClearGeometryMode | ( | pkt, | |
| word ) |
Clear the geometry mode bits of word.
| #define gSPTexture | ( | pkt, | |
| s, | |||
| t, | |||
| level, | |||
| tile, | |||
| on ) |
Set the texture scale s and t, the levels of detail, the tile, and whether texturing is on.
| #define gSPClipRatio | ( | pkt, | |
| r ) |
Set the ratio of the clipping box to the screen with four commands.
| #define gSPNumLights | ( | pkt, | |
| n ) |
Set the number of directional lights.
| #define gSPLightColor | ( | pkt, | |
| n, | |||
| col ) |
Set the colour of light n, from 1, as its two copies.
| #define gSPPerspNormalize | ( | pkt, | |
| s ) |
Set the normalisation of the perspective, which gu's perspective routines return.
| #define gSPViewport | ( | pkt, | |
| v ) |
Load a viewport.
| #define gSPFogPosition | ( | pkt, | |
| min, | |||
| max ) |
| #define gSPSegment | ( | pkt, | |
| segment, | |||
| base ) |
Set the base of a segment.
| #define gSPLookAt | ( | pkt, | |
| la ) |
Load the look-at of the reflections, its x then its y.
| #define gSPForceMatrix | ( | pkt, | |
| m ) |
Load a matrix as the product of the model view and the projection, a row pair at a time.
| #define gSPLight | ( | pkt, | |
| l, | |||
| n ) |
| #define gDPPipeSync | ( | pkt | ) |
Wait for the RDP pipeline to drain before a mode changes.
| #define gDPTileSync | ( | pkt | ) |
Wait for the tile descriptors to settle before a tile changes.
| #define gDPSetCycleType | ( | pkt, | |
| type ) |
Set the G_CYC_* cycle type.
| #define gDPSetTextureFilter | ( | pkt, | |
| type ) |
Set the G_TF_* texture filter.
| #define gDPSetTextureLOD | ( | pkt, | |
| type ) |
Set the G_TL_* texture level of detail.
| #define gDPSetTextureDetail | ( | pkt, | |
| type ) |
Set the G_TD_* texture detail.
| #define gDPSetTextureConvert | ( | pkt, | |
| type ) |
Set the G_TC_* texture conversion.
| #define gDPSetCombineKey | ( | pkt, | |
| type ) |
Set the G_CK_* chroma key.
| #define gDPSetColorDither | ( | pkt, | |
| mode ) |
Set the G_CD_* colour dither.
| #define gDPSetAlphaDither | ( | pkt, | |
| mode ) |
Set the G_AD_* alpha dither.
| #define gDPSetAlphaCompare | ( | pkt, | |
| type ) |
Set the G_AC_* alpha compare.
| #define gDPSetDepthSource | ( | pkt, | |
| src ) |
Set the G_ZS_* depth source.
| #define gDPSetBlendColor | ( | pkt, | |
| r, | |||
| g, | |||
| b, | |||
| a ) |
Set the blend colour.
| #define gDPSetPrimDepth | ( | pkt, | |
| z, | |||
| dz ) |
Set the depth of a primitive whose depth source is G_ZS_PRIM.
| #define gDPSetScissor | ( | pkt, | |
| mode, | |||
| ulx, | |||
| uly, | |||
| lrx, | |||
| lry ) |
Set the scissor rectangle: integer coordinates on Windows, 10.2 fixed point on N64.
| #define gDPSetRenderMode | ( | pkt, | |
| c0, | |||
| c1 ) |
Set the render mode from the modes of the first and second cycles.
| #define gDPSetEnvColor | ( | pkt, | |
| r, | |||
| g, | |||
| b, | |||
| a ) |
Set the environment colour.
| #define gDPSetFogColor | ( | pkt, | |
| r, | |||
| g, | |||
| b, | |||
| a ) |
Set the fog colour.
| #define gDPSetTile | ( | pkt, | |
| fmt, | |||
| siz, | |||
| line, | |||
| tmem, | |||
| tile, | |||
| palette, | |||
| cmt, | |||
| maskt, | |||
| shiftt, | |||
| cms, | |||
| masks, | |||
| shifts ) |
Set the format, texel size, row length, address, palette, and wrapping of a tile.
| #define gDPSetCombineLERP | ( | pkt, | |
| a0, | |||
| b0, | |||
| c0, | |||
| d0, | |||
| Aa0, | |||
| Ab0, | |||
| Ac0, | |||
| Ad0, | |||
| a1, | |||
| b1, | |||
| c1, | |||
| d1, | |||
| Aa1, | |||
| Ab1, | |||
| Ac1, | |||
| Ad1 ) |
Set the colour combiner from the a, b, c and d inputs of (a - b) * c + d for each cycle.
| #define gDPLoadSync | ( | pkt | ) |
Wait for a texture load to finish.
| #define gDPFullSync | ( | pkt | ) |
Wait for the RDP to finish the frame and raise its interrupt.
| #define gDPSetDepthImage | ( | pkt, | |
| i ) |
Set the depth buffer to i.
| #define gDPSetColorImage | ( | pkt, | |
| f, | |||
| s, | |||
| w, | |||
| i ) |
Set the colour buffer to i, of format f, texel size s, and width w.
| #define GPACK_RGBA5551 | ( | r, | |
| g, | |||
| b, | |||
| a ) |
A colour of RGBA 5551 from components of 8 bits and an alpha of 1 bit.
| #define GPACK_ZDZ | ( | z, | |
| dz ) |
A depth and its slope, as the depth buffer stores them.
| #define G_MAXFIXED 0x3FFF |
The farthest depth.
| #define gDPSetFillColor | ( | pkt, | |
| d ) |
Set the fill colour, a 32-bit word of one or two packed pixels.
| #define gDPFillRectangle | ( | pkt, | |
| ulx, | |||
| uly, | |||
| lrx, | |||
| lry ) |
Fill a rectangle, its corners inclusive, with the fill colour.
| #define gDPSetTextureLUT | ( | pkt, | |
| type ) |
Set the G_TT_* texture palette.
| #define gDPSetTexturePersp | ( | pkt, | |
| type ) |
Set the G_TP_* texture perspective correction.
| #define gDPSetPrimColor | ( | pkt, | |
| m, | |||
| l, | |||
| r, | |||
| g, | |||
| b, | |||
| a ) |
Set the primitive colour with the minimum level of detail m and its fraction l.
| #define gDPSetTextureImage | ( | pkt, | |
| f, | |||
| s, | |||
| w, | |||
| i ) |
Set the texture image to i, of format f, texel size s, and width w.
| #define gDPLoadBlock | ( | pkt, | |
| tile, | |||
| uls, | |||
| ult, | |||
| lrs, | |||
| dxt ) |
Load texels uls to lrs of the texture image through a tile, with row step dxt.
| #define gDPSetTileSize | ( | pkt, | |
| t, | |||
| uls, | |||
| ult, | |||
| lrs, | |||
| lrt ) |
Set the extent of tile t, in 10.2 fixed point.
| #define gDPLoadTLUTCmd | ( | pkt, | |
| tile, | |||
| count ) |
Load count + 1 colors of a palette through a tile.
| #define gDPLoadTLUT_pal256 | ( | pkt, | |
| dram ) |
Load a palette of 256 colors into the upper half of the texture memory.
| #define gDPLoadTLUT_pal16 | ( | pkt, | |
| pal, | |||
| dram ) |
Load a palette of 16 colors into one of the sixteen palettes of the upper texture memory.
| #define gDPSetHilite1Tile | ( | pkt, | |
| tile, | |||
| hilite, | |||
| width, | |||
| height ) |
Place a tile of a size at the first specular highlight.
| #define gDPLoadTile | ( | pkt, | |
| t, | |||
| uls, | |||
| ult, | |||
| lrs, | |||
| lrt ) |
Load a rectangle of texels.
The coordinates are in 10.2 fixed point.
| #define gDPLoadTextureBlock_4b | ( | pkt, | |
| timg, | |||
| fmt, | |||
| width, | |||
| height, | |||
| pal, | |||
| cms, | |||
| cmt, | |||
| masks, | |||
| maskt, | |||
| shifts, | |||
| shiftt ) |
Load a 4-bit texture into the texture memory and set up the render tile to draw it.
| #define gDPLoadTextureBlock | ( | pkt, | |
| timg, | |||
| fmt, | |||
| siz, | |||
| width, | |||
| height, | |||
| pal, | |||
| cms, | |||
| cmt, | |||
| masks, | |||
| maskt, | |||
| shifts, | |||
| shiftt ) |
Load an 8-bit or 16-bit texture into the texture memory and set up the render tile.
| #define gDPLoadTextureTile_4b | ( | pkt, | |
| timg, | |||
| fmt, | |||
| width, | |||
| height, | |||
| uls, | |||
| ult, | |||
| lrs, | |||
| lrt, | |||
| pal, | |||
| cms, | |||
| cmt, | |||
| masks, | |||
| maskt, | |||
| shifts, | |||
| shiftt ) |
Load a rectangle of a 4-bit texture into the texture memory and set up the render tile.
| #define gSPTextureRectangle | ( | pkt, | |
| xl, | |||
| yl, | |||
| xh, | |||
| yh, | |||
| tile, | |||
| s, | |||
| t, | |||
| dsdx, | |||
| dtdy ) |
Draw a textured rectangle in screen coordinates of 10.2 fixed point.