PS2GL
OpenGL*-like API for the PS2
Loading...
Searching...
No Matches
gs memory management
+ Collaboration diagram for gs memory management:

Modules

 GS memory 'slots'
 
 GS memory 'areas'
 

Functions

void pglPrintGsMemAllocation ()
 
int pglHasGsMemBeenInitted ()
 

Detailed Description

Functions to initialize, allocate, and free gs memory. ps2gl manages gs memory through the use of memory slots and memory areas. The basic idea is that the app partitions gs memory into slots (probably once at the beginning of a level) which are then used to allocate frame buffers, depth buffers, textures, etc.

See the memory slot and memory area "modules" for more details.

Function Documentation

◆ pglPrintGsMemAllocation()

void pglPrintGsMemAllocation ( void  )

#include <src/gsmemory.cpp>

prints the current gs memory allocation to stdout

Definition at line 40 of file gsmemory.cpp.

◆ pglHasGsMemBeenInitted()

int pglHasGsMemBeenInitted ( void  )

#include <src/gsmemory.cpp>

returns whether gs memory has been initialized (by adding one or more slots).

Returns
1 if true, 0 if false

Definition at line 50 of file gsmemory.cpp.

Referenced by glutInit().