PS2SDK
PS2 Homebrew Libraries
|
#include <tamtypes.h>
Go to the source code of this file.
Macros | |
#define | GS_REG_PRIM 0x00 |
#define | GS_REG_RGBAQ 0x01 |
#define | GS_REG_ST 0x02 |
#define | GS_REG_UV 0x03 |
#define | GS_REG_XYZF2 0x04 |
#define | GS_REG_XYZ2 0x05 |
#define | GS_REG_TEX0 0x06 |
#define | GS_REG_TEX0_1 0x06 |
#define | GS_REG_TEX0_2 0x07 |
#define | GS_REG_CLAMP 0x08 |
#define | GS_REG_CLAMP_1 0x08 |
#define | GS_REG_CLAMP_2 0x09 |
#define | GS_REG_FOG 0x0A |
#define | GS_REG_XYZF3 0x0C |
#define | GS_REG_XYZ3 0x0D |
#define | GS_REG_TEX1 0x14 |
#define | GS_REG_TEX1_1 0x14 |
#define | GS_REG_TEX1_2 0x15 |
#define | GS_REG_TEX2 0x16 |
#define | GS_REG_TEX2_1 0x16 |
#define | GS_REG_TEX2_2 0x17 |
#define | GS_REG_XYOFFSET 0x18 |
#define | GS_REG_XYOFFSET_1 0x18 |
#define | GS_REG_XYOFFSET_2 0x19 |
#define | GS_REG_PRMODECONT 0x1A |
#define | GS_REG_PRMODE 0x1B |
#define | GS_REG_TEXCLUT 0x1C |
#define | GS_REG_SCANMSK 0x22 |
#define | GS_REG_MIPTBP1 0x34 |
#define | GS_REG_MIPTBP1_1 0x34 |
#define | GS_REG_MIPTBP1_2 0x35 |
#define | GS_REG_MIPTBP2 0x36 |
#define | GS_REG_MIPTBP2_1 0x36 |
#define | GS_REG_MIPTBP2_2 0x37 |
#define | GS_REG_TEXA 0x3B |
#define | GS_REG_FOGCOL 0x3D |
#define | GS_REG_TEXFLUSH 0x3F |
#define | GS_REG_SCISSOR 0x40 |
#define | GS_REG_SCISSOR_1 0x40 |
#define | GS_REG_SCISSOR_2 0x41 |
#define | GS_REG_ALPHA 0x42 |
#define | GS_REG_ALPHA_1 0x42 |
#define | GS_REG_ALPHA_2 0x43 |
#define | GS_REG_DIMX 0x44 |
#define | GS_REG_DTHE 0x45 |
#define | GS_REG_COLCLAMP 0x46 |
#define | GS_REG_TEST 0x47 |
#define | GS_REG_TEST_1 0x47 |
#define | GS_REG_TEST_2 0x48 |
#define | GS_REG_PABE 0x49 |
#define | GS_REG_FBA 0x4A |
#define | GS_REG_FBA_1 0x4A |
#define | GS_REG_FBA_2 0x4B |
#define | GS_REG_FRAME 0x4C |
#define | GS_REG_FRAME_1 0x4C |
#define | GS_REG_FRAME_2 0x4D |
#define | GS_REG_ZBUF 0x4E |
#define | GS_REG_ZBUF_1 0x4E |
#define | GS_REG_ZBUF_2 0x4F |
#define | GS_REG_BITBLTBUF 0x50 |
#define | GS_REG_TRXPOS 0x51 |
#define | GS_REG_TRXREG 0x52 |
#define | GS_REG_TRXDIR 0x53 |
#define | GS_REG_HWREG 0x54 |
#define | GS_REG_SIGNAL 0x60 |
#define | GS_REG_FINISH 0x61 |
#define | GS_REG_LABEL 0x62 |
#define | GS_REG_NOP 0x7F |
#define | GS_PRIM_POINT 0x00 |
#define | GS_PRIM_LINE 0x01 |
#define | GS_PRIM_LINE_STRIP 0x02 |
#define | GS_PRIM_TRIANGLE 0x03 |
#define | GS_PRIM_TRIANGLE_STRIP 0x04 |
#define | GS_PRIM_TRIANGLE_FAN 0x05 |
#define | GS_PRIM_SPRITE 0x06 |
#define | GS_DISABLE 0x00 |
#define | GS_ENABLE 0x01 |
#define | GS_SET_ALPHA(A, B, C, D, ALPHA) |
#define | GS_SET_BITBLTBUF(SBA, SBW, SPSM, DBA, DBW, DPSM) |
#define | GS_SET_CLAMP(WMS, WMT, MINU, MAXU, MINV, MAXV) |
#define | GS_SET_COLCLAMP(CLAMP) |
#define | GS_SET_DIMX(D00, D01, D02, D03, D10, D11, D12, D13, D20, D21, D22, D23, D30, D31, D32, D33) |
#define | GS_SET_DTHE(ENABLE) |
#define | GS_SET_FBA(ALPHA) |
#define | GS_SET_FINISH(A) |
#define | GS_SET_FOG(FOG) |
#define | GS_SET_FOGCOL(R, G, B) |
#define | GS_SET_FRAME(FBA, FBW, PSM, FMSK) |
#define | GS_SET_FMSK16(R, G, B, A) |
#define | GS_SET_HWREG(A) |
#define | GS_SET_LABEL(ID, MSK) |
#define | GS_SET_MIPTBP1(TBA1, TBW1, TBA2, TBW2, TBA3, TBW3) |
#define | GS_SET_MIPTBP2(TBA4, TBW4, TBA5, TBW5, TBA6, TBW6) |
#define | GS_SET_NOP(A) |
#define | GS_SET_PABE(ENABLE) |
#define | GS_SET_PRIM(PRIM, IIP, TME, FGE, ABE, AA1, FST, CTXT, FIX) |
#define | GS_SET_PRMODE(IIP, TME, FGE, ABE, AA1, FST, CTXT, FIX) |
#define | GS_SET_PRMODECONT(CTRL) |
#define | GS_SET_RGBAQ(R, G, B, A, Q) |
#define | GS_SET_SCANMSK(MSK) |
#define | GS_SET_SCISSOR(X0, X1, Y0, Y1) |
#define | GS_SET_SIGNAL(ID, MSK) |
#define | GS_SET_ST(S, T) |
#define | GS_SET_TEST(ATEN, ATMETH, ATREF, ATFAIL, DATEN, DATMD, ZTEN, ZTMETH) |
#define | GS_SET_TEX0_SMALL(TBA, TBW, PSM, TW, TH, TCC, TFNCT) |
#define | GS_SET_TEX0(TBA, TBW, PSM, TW, TH, TCC, TFNCT, CBA, CPSM, CSM, CSA, CLD) |
#define | GS_SET_TEX1(LCM, MXL, MMAG, MMIN, MTBA, L, K) |
#define | GS_SET_TEX2(PSM, CBA, CPSM, CSM, CSA, CLD) |
#define | GS_SET_TEXA(A0, AM, A1) |
#define | GS_SET_TEXCLUT(CBW, CU, CV) |
#define | GS_SET_TRXDIR(DIR) |
#define | GS_SET_TEXFLUSH(A) |
#define | GS_SET_TRXPOS(SX, SY, DX, DY, DIR) |
#define | GS_SET_TRXREG(W, H) |
#define | GS_SET_UV(U, V) |
#define | GS_SET_XYOFFSET(X, Y) |
#define | GS_SET_XYZ(X, Y, Z) |
#define | GS_SET_XYZF(X, Y, Z, F) |
#define | GS_SET_ZBUF(ZBA, ZSM, ZMSK) |
GS General Purpose Registers
Definition in file gs_gp.h.
#define GS_REG_PRIM 0x00 |
#define GS_REG_ST 0x02 |
#define GS_REG_UV 0x03 |
#define GS_REG_XYZF2 0x04 |
#define GS_REG_XYZ2 0x05 |
#define GS_REG_TEX0 0x06 |
Texture information setting.
Definition at line 25 of file gs_gp.h.
Referenced by draw_texturebuffer(), and packet2_utils_gs_add_texbuff_clut().
#define GS_REG_TEX0_1 0x06 |
#define GS_REG_TEX0_2 0x07 |
#define GS_REG_CLAMP 0x08 |
Texture wrap mode.
Definition at line 31 of file gs_gp.h.
Referenced by draw_setup_environment(), and draw_texture_wrapping().
#define GS_REG_XYZF3 0x0C |
#define GS_REG_XYZ3 0x0D |
#define GS_REG_TEX1 0x14 |
Texture information setting.
Definition at line 43 of file gs_gp.h.
Referenced by draw_texture_sampling(), and packet2_utils_gs_add_lod().
#define GS_REG_TEX1_1 0x14 |
#define GS_REG_TEX1_2 0x15 |
#define GS_REG_TEX2 0x16 |
Texture information setting.
Definition at line 49 of file gs_gp.h.
Referenced by draw_clutbuffer().
#define GS_REG_TEX2_1 0x16 |
#define GS_REG_TEX2_2 0x17 |
#define GS_REG_XYOFFSET 0x18 |
Offset value setting.
Definition at line 55 of file gs_gp.h.
Referenced by draw_primitive_xyoffset(), and draw_setup_environment().
#define GS_REG_XYOFFSET_1 0x18 |
#define GS_REG_XYOFFSET_2 0x19 |
#define GS_REG_PRMODECONT 0x1A |
Specification of primitive attribute setting method.
Definition at line 61 of file gs_gp.h.
Referenced by draw_clear(), draw_primitive_override(), and draw_setup_environment().
#define GS_REG_PRMODE 0x1B |
Setting for attributes of drawing primitives.
Definition at line 63 of file gs_gp.h.
Referenced by draw_clear(), and draw_primitive_override_setting().
#define GS_REG_TEXCLUT 0x1C |
Clut position specification.
Definition at line 65 of file gs_gp.h.
Referenced by draw_clut_offset().
#define GS_REG_SCANMSK 0x22 |
Raster address mask setting.
Definition at line 67 of file gs_gp.h.
Referenced by draw_scan_masking().
#define GS_REG_MIPTBP1 0x34 |
Mipmap information setting for levels 1 - 3.
Definition at line 69 of file gs_gp.h.
Referenced by draw_mipmap1().
#define GS_REG_MIPTBP1_1 0x34 |
#define GS_REG_MIPTBP1_2 0x35 |
#define GS_REG_MIPTBP2 0x36 |
Mipmap information setting for levels 4 - 6.
Definition at line 75 of file gs_gp.h.
Referenced by draw_mipmap2().
#define GS_REG_MIPTBP2_1 0x36 |
#define GS_REG_MIPTBP2_2 0x37 |
#define GS_REG_TEXA 0x3B |
Texture alpha value setting.
Definition at line 81 of file gs_gp.h.
Referenced by draw_setup_environment(), and draw_texture_expand_alpha().
#define GS_REG_FOGCOL 0x3D |
Distant fog color setting.
Definition at line 83 of file gs_gp.h.
Referenced by draw_fog_color(), and draw_setup_environment().
#define GS_REG_TEXFLUSH 0x3F |
Texture page buffer disabling.
Definition at line 85 of file gs_gp.h.
Referenced by draw_texture_flush().
#define GS_REG_SCISSOR 0x40 |
Setting for scissoring area.
Definition at line 87 of file gs_gp.h.
Referenced by draw_scissor_area(), and draw_setup_environment().
#define GS_REG_SCISSOR_1 0x40 |
#define GS_REG_SCISSOR_2 0x41 |
#define GS_REG_ALPHA 0x42 |
Alpha blending setting.
Definition at line 93 of file gs_gp.h.
Referenced by draw_alpha_blending(), and draw_setup_environment().
#define GS_REG_ALPHA_1 0x42 |
#define GS_REG_ALPHA_2 0x43 |
#define GS_REG_DIMX 0x44 |
Dither matrix setting.
Definition at line 99 of file gs_gp.h.
Referenced by draw_dither_matrix(), and draw_setup_environment().
#define GS_REG_DTHE 0x45 |
Dither control.
Definition at line 101 of file gs_gp.h.
Referenced by draw_dithering(), and draw_setup_environment().
#define GS_REG_COLCLAMP 0x46 |
Color clamp control.
Definition at line 103 of file gs_gp.h.
Referenced by draw_color_clamping(), and draw_setup_environment().
#define GS_REG_TEST 0x47 |
Pixel test control.
Definition at line 105 of file gs_gp.h.
Referenced by draw_disable_tests(), draw_enable_tests(), draw_pixel_test(), and draw_setup_environment().
#define GS_REG_PABE 0x49 |
Alpha blending control in units of pixels.
Definition at line 111 of file gs_gp.h.
Referenced by draw_pixel_alpha_control(), and draw_setup_environment().
#define GS_REG_FBA 0x4A |
Alpha correction value.
Definition at line 113 of file gs_gp.h.
Referenced by draw_alpha_correction(), and draw_setup_environment().
#define GS_REG_FBA_1 0x4A |
#define GS_REG_FBA_2 0x4B |
#define GS_REG_FRAME 0x4C |
Frame buffer setting.
Definition at line 119 of file gs_gp.h.
Referenced by draw_framebuffer(), and draw_setup_environment().
#define GS_REG_FRAME_1 0x4C |
#define GS_REG_FRAME_2 0x4D |
#define GS_REG_ZBUF 0x4E |
Z-Buffer setting.
Definition at line 125 of file gs_gp.h.
Referenced by draw_setup_environment(), and draw_zbuffer().
#define GS_REG_BITBLTBUF 0x50 |
Setting for transmissions between buffers.
Definition at line 131 of file gs_gp.h.
Referenced by draw_texture_transfer().
#define GS_REG_TRXPOS 0x51 |
Specification of transmission area in buffers.
Definition at line 133 of file gs_gp.h.
Referenced by draw_texture_transfer().
#define GS_REG_TRXREG 0x52 |
Specification of transmission area in buffers.
Definition at line 135 of file gs_gp.h.
Referenced by draw_texture_transfer().
#define GS_REG_TRXDIR 0x53 |
Activation of transmission area in buffers.
Definition at line 137 of file gs_gp.h.
Referenced by draw_texture_transfer().
#define GS_REG_HWREG 0x54 |
#define GS_REG_FINISH 0x61 |
Finish event occurence request.
Definition at line 143 of file gs_gp.h.
Referenced by draw_finish(), and packet2_utils_gs_add_draw_finish_giftag().
#define GS_PRIM_TRIANGLE_STRIP 0x04 |
#define GS_PRIM_SPRITE 0x06 |
Sprite primitive
Definition at line 163 of file gs_gp.h.
Referenced by GsClearDrawEnv1(), and GsClearDrawEnv2().
#define GS_SET_ALPHA | ( | A, | |
B, | |||
C, | |||
D, | |||
ALPHA ) |
#define GS_SET_BITBLTBUF | ( | SBA, | |
SBW, | |||
SPSM, | |||
DBA, | |||
DBW, | |||
DPSM ) |
#define GS_SET_CLAMP | ( | WMS, | |
WMT, | |||
MINU, | |||
MAXU, | |||
MINV, | |||
MAXV ) |
#define GS_SET_COLCLAMP | ( | CLAMP | ) |
#define GS_SET_DIMX | ( | D00, | |
D01, | |||
D02, | |||
D03, | |||
D10, | |||
D11, | |||
D12, | |||
D13, | |||
D20, | |||
D21, | |||
D22, | |||
D23, | |||
D30, | |||
D31, | |||
D32, | |||
D33 ) |
#define GS_SET_DTHE | ( | ENABLE | ) |
#define GS_SET_FOG | ( | FOG | ) |
#define GS_SET_FOGCOL | ( | R, | |
G, | |||
B ) |
#define GS_SET_FRAME | ( | FBA, | |
FBW, | |||
PSM, | |||
FMSK ) |
#define GS_SET_FMSK16 | ( | R, | |
G, | |||
B, | |||
A ) |
#define GS_SET_HWREG | ( | A | ) |
#define GS_SET_LABEL | ( | ID, | |
MSK ) |
#define GS_SET_MIPTBP1 | ( | TBA1, | |
TBW1, | |||
TBA2, | |||
TBW2, | |||
TBA3, | |||
TBW3 ) |
#define GS_SET_MIPTBP2 | ( | TBA4, | |
TBW4, | |||
TBA5, | |||
TBW5, | |||
TBA6, | |||
TBW6 ) |
#define GS_SET_PABE | ( | ENABLE | ) |
#define GS_SET_PRIM | ( | PRIM, | |
IIP, | |||
TME, | |||
FGE, | |||
ABE, | |||
AA1, | |||
FST, | |||
CTXT, | |||
FIX ) |
#define GS_SET_PRMODE | ( | IIP, | |
TME, | |||
FGE, | |||
ABE, | |||
AA1, | |||
FST, | |||
CTXT, | |||
FIX ) |
#define GS_SET_PRMODECONT | ( | CTRL | ) |
#define GS_SET_RGBAQ | ( | R, | |
G, | |||
B, | |||
A, | |||
Q ) |
#define GS_SET_SCISSOR | ( | X0, | |
X1, | |||
Y0, | |||
Y1 ) |
#define GS_SET_SIGNAL | ( | ID, | |
MSK ) |
#define GS_SET_ST | ( | S, | |
T ) |
#define GS_SET_TEST | ( | ATEN, | |
ATMETH, | |||
ATREF, | |||
ATFAIL, | |||
DATEN, | |||
DATMD, | |||
ZTEN, | |||
ZTMETH ) |
#define GS_SET_TEX0_SMALL | ( | TBA, | |
TBW, | |||
PSM, | |||
TW, | |||
TH, | |||
TCC, | |||
TFNCT ) |
#define GS_SET_TEX0 | ( | TBA, | |
TBW, | |||
PSM, | |||
TW, | |||
TH, | |||
TCC, | |||
TFNCT, | |||
CBA, | |||
CPSM, | |||
CSM, | |||
CSA, | |||
CLD ) |
#define GS_SET_TEX1 | ( | LCM, | |
MXL, | |||
MMAG, | |||
MMIN, | |||
MTBA, | |||
L, | |||
K ) |
#define GS_SET_TEX2 | ( | PSM, | |
CBA, | |||
CPSM, | |||
CSM, | |||
CSA, | |||
CLD ) |
#define GS_SET_TEXA | ( | A0, | |
AM, | |||
A1 ) |
#define GS_SET_TEXCLUT | ( | CBW, | |
CU, | |||
CV ) |
#define GS_SET_TRXPOS | ( | SX, | |
SY, | |||
DX, | |||
DY, | |||
DIR ) |
#define GS_SET_TRXREG | ( | W, | |
H ) |
#define GS_SET_UV | ( | U, | |
V ) |
#define GS_SET_XYOFFSET | ( | X, | |
Y ) |
#define GS_SET_XYZ | ( | X, | |
Y, | |||
Z ) |
#define GS_SET_XYZF | ( | X, | |
Y, | |||
Z, | |||
F ) |