Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

gs memory management

Functions to initialize, allocate, and free gs memory. More...


Modules

GS memory 'areas'
 API for working with GS memory "areas" that are used to allocate GS ram.

GS memory 'slots'
 API for managing the "slots" that partition GS memory in ps2gl.


Functions

void pglPrintGsMemAllocation ()
 prints the current gs memory allocation to stdout.

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


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

int pglHasGsMemBeenInitted ( void )
 

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().

void pglPrintGsMemAllocation ( void )
 

prints the current gs memory allocation to stdout.

Definition at line 39 of file gsmemory.cpp.


ps2gl version 0.2