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 | |
int | GsLoadImage (const void *source_addr, GS_IMAGE *dest) |
int | GsVramAllocFrameBuffer (s16 w, s16 h, s16 psm) |
int | GsVramAllocTextureBuffer (s16 w, s16 h, s16 psm) |
void | GsVramFreeAllTextureBuffer (void) |
void | GsVramFreeAll (void) |
Variables | |
QWORD | GsPrimWorkArea [] |
static unsigned int | vr_addr =0 |
static unsigned int | vr_tex_start =0 |
static unsigned int | vr_2ndtolast_alloc =0 |
int GsLoadImage | ( | const void * | source_addr, |
GS_IMAGE * | dest | ||
) |
Definition at line 20 of file texture.c.
References gif_rd_ad, GS_GIF_IMAGE, GS_GIF_PACKED, gs_setGIF_TAG, gs_setR_BITBLTBUF, gs_setR_TRXDIR, gs_setR_TRXPOS, gs_setR_TRXREG, GS_TEX_16, GS_TEX_24, GS_TEX_32, GS_TEX_4, GS_TEX_8, GsDmaSend(), GsDmaWait(), GsPrimWorkArea, GS_IMAGE::height, max, GS_IMAGE::psm, UNCACHED_SEG, GS_IMAGE::vram_addr, GS_IMAGE::vram_width, GS_IMAGE::width, GS_IMAGE::x, and GS_IMAGE::y.
Definition at line 105 of file texture.c.
References EINVAL, GS_PIXMODE_16, GS_PIXMODE_16S, GS_PIXMODE_24, GS_PIXMODE_32, GS_TEX_4, GS_TEX_4HH, GS_TEX_4HL, GS_TEX_8, GS_TEX_8H, GS_ZBUFF_16, GS_ZBUFF_24, GS_ZBUFF_32, vr_addr, and vr_tex_start.
Referenced by InitGraphics().
Definition at line 156 of file texture.c.
References EINVAL, GS_PIXMODE_16, GS_PIXMODE_16S, GS_PIXMODE_24, GS_PIXMODE_32, GS_TEX_4, GS_TEX_4HH, GS_TEX_4HL, GS_TEX_8, GS_TEX_8H, vr_2ndtolast_alloc, and vr_addr.
void GsVramFreeAll | ( | void | ) |
Definition at line 222 of file texture.c.
References vr_addr, and vr_tex_start.
void GsVramFreeAllTextureBuffer | ( | void | ) |
free texture buffer without freeing frame buffer
Definition at line 206 of file texture.c.
References vr_addr, and vr_tex_start.
|
extern |
Definition at line 18 of file packets.c.
Referenced by GsLoadImage().
|
static |
Definition at line 103 of file texture.c.
Referenced by GsVramAllocTextureBuffer().
|
static |
Definition at line 101 of file texture.c.
Referenced by GsVramAllocFrameBuffer(), GsVramAllocTextureBuffer(), GsVramFreeAll(), and GsVramFreeAllTextureBuffer().
|
static |
Definition at line 102 of file texture.c.
Referenced by GsVramAllocFrameBuffer(), GsVramFreeAll(), and GsVramFreeAllTextureBuffer().