ps2sdk
1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
|
Go to the source code of this file.
Functions | |
static s8 | twh (s16 val) |
int | GsSetXYOffset1 (u16 x, u16 y) |
int | GsSetXYOffset2 (u16 x, u16 y) |
int | GsSetScissor1 (u16 upper_x, u16 upper_y, u16 lower_x, u16 lower_y) |
int | GsSetScissor2 (u16 upper_x, u16 upper_y, u16 lower_x, u16 lower_y) |
int | GsSetFrame1 (u16 framebuffer_addr, u8 framebuffer_width, u8 psm, u32 draw_mask) |
int | GsSetFrame2 (u16 framebuffer_addr, u8 framebuffer_width, u8 psm, u32 draw_mask) |
int | GsTextureFlush (void) |
int | GsSetPixelTest1 (u8 enable_alpha_test, u8 alpha_test_method, u8 alpha_reference, u8 alpha_fail_method, u8 enable_dest_alpha_test, u8 dest_alpha_test_mode, u8 enable_zbuff_test, u8 alpha_zbuff_method) |
int | GsSetPixelTest2 (u8 enable_alpha_test, u8 alpha_test_method, u8 alpha_reference, u8 alpha_fail_method, u8 enable_dest_alpha_test, u8 dest_alpha_test_mode, u8 enable_zbuff_test, u8 alpha_zbuff_method) |
int | GsSelectTexure1 (u16 tex_addr, u8 addr_width, u8 tex_pixmode, u16 tex_width, u16 tex_height, u16 clut_addr, u8 clut_pixmode, u8 clut_storagemode, u8 clut_offset) |
int | GsSelectTexure2 (u16 tex_addr, u8 addr_width, u8 tex_pixmode, u16 tex_width, u16 tex_height, u16 clut_addr, u8 clut_pixmode, u8 clut_storagemode, u8 clut_offset) |
void | GsSetFogColor (u8 r, u8 g, u8 b) |
void | GsEnableColorClamp (u16 enable) |
Variables | |
QWORD | GsPrimWorkArea [] |
void GsEnableColorClamp | ( | u16 | enable | ) |
Definition at line 190 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_COLCLAMP, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
int GsSelectTexure1 | ( | u16 | tex_addr, |
u8 | addr_width, | ||
u8 | tex_pixmode, | ||
u16 | tex_width, | ||
u16 | tex_height, | ||
u16 | clut_addr, | ||
u8 | clut_pixmode, | ||
u8 | clut_storagemode, | ||
u8 | clut_offset | ||
) |
Definition at line 153 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_TEX0_1, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, twh(), and UNCACHED_SEG.
int GsSelectTexure2 | ( | u16 | tex_addr, |
u8 | addr_width, | ||
u8 | tex_pixmode, | ||
u16 | tex_width, | ||
u16 | tex_height, | ||
u16 | clut_addr, | ||
u8 | clut_pixmode, | ||
u8 | clut_storagemode, | ||
u8 | clut_offset | ||
) |
Definition at line 166 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_TEX0_2, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, twh(), and UNCACHED_SEG.
Definition at line 179 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_FOGCOLOR, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Definition at line 88 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_FRAME_1, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsPutDrawEnv1().
Definition at line 101 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_FRAME_2, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsPutDrawEnv2().
int GsSetPixelTest1 | ( | u8 | enable_alpha_test, |
u8 | alpha_test_method, | ||
u8 | alpha_reference, | ||
u8 | alpha_fail_method, | ||
u8 | enable_dest_alpha_test, | ||
u8 | dest_alpha_test_mode, | ||
u8 | enable_zbuff_test, | ||
u8 | alpha_zbuff_method | ||
) |
Definition at line 127 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_TEST_1, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsEnableAlphaTransparency1(), and GsEnableZbuffer1().
int GsSetPixelTest2 | ( | u8 | enable_alpha_test, |
u8 | alpha_test_method, | ||
u8 | alpha_reference, | ||
u8 | alpha_fail_method, | ||
u8 | enable_dest_alpha_test, | ||
u8 | dest_alpha_test_mode, | ||
u8 | enable_zbuff_test, | ||
u8 | alpha_zbuff_method | ||
) |
Definition at line 140 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_TEST_2, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsEnableAlphaTransparency2(), and GsEnableZbuffer2().
Definition at line 62 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_SCISSOR_1, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsPutDrawEnv1().
Definition at line 75 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_SCISSOR_2, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
Referenced by GsPutDrawEnv2().
Definition at line 36 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_XYOFFSET_1, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, UNCACHED_SEG, x, and y.
Referenced by GsPutDrawEnv1().
Definition at line 49 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_XYOFFSET_2, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, UNCACHED_SEG, x, and y.
Referenced by GsPutDrawEnv2().
int GsTextureFlush | ( | void | ) |
Definition at line 114 of file lowlevel.c.
References gif_rd_ad, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_TEXFLUSH, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, and UNCACHED_SEG.
|
extern |
Definition at line 18 of file packets.c.
Referenced by GsEnableColorClamp(), GsSelectTexure1(), GsSelectTexure2(), GsSetFogColor(), GsSetFrame1(), GsSetFrame2(), GsSetPixelTest1(), GsSetPixelTest2(), GsSetScissor1(), GsSetScissor2(), GsSetXYOffset1(), GsSetXYOffset2(), and GsTextureFlush().