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 | graph_vram_allocate (int width, int height, int psm, int alignment) |
void | graph_vram_free (int address) |
void | graph_vram_clear (void) |
int | graph_vram_size (int width, int height, int psm, int alignment) |
Variables | |
static int | graph_vram_pointer = 0 |
int graph_vram_allocate | ( | int | width, |
int | height, | ||
int | psm, | ||
int | alignment | ||
) |
Allocates vram and returns vram base pointer
Definition at line 7 of file graph_vram.c.
References GRAPH_VRAM_MAX_WORDS, graph_vram_pointer, and graph_vram_size().
Referenced by draw_init_env(), init_gs(), init_texture(), and main().
void graph_vram_clear | ( | void | ) |
void graph_vram_free | ( | int | address | ) |
Frees in FIFO order...
Definition at line 30 of file graph_vram.c.
References graph_vram_pointer.
Referenced by main().
int graph_vram_size | ( | int | width, |
int | height, | ||
int | psm, | ||
int | alignment | ||
) |
Calculate the size in vram of a texture or buffer
Definition at line 44 of file graph_vram.c.
References GS_PSM_16, GS_PSM_16S, GS_PSM_24, GS_PSM_32, GS_PSM_4, GS_PSM_4HH, GS_PSM_4HL, GS_PSM_8, GS_PSM_8H, GS_PSMZ_16, GS_PSMZ_16S, GS_PSMZ_24, and GS_PSMZ_32.
Referenced by graph_vram_allocate().
|
static |
Definition at line 5 of file graph_vram.c.
Referenced by graph_vram_allocate(), graph_vram_clear(), and graph_vram_free().