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

gsmemory.cpp File Reference

pgl interface to gs memory manager. More...

#include "GL/ps2gl.h"
#include "ps2s/gsmem.h"

Go to the source code of this file.

Functions

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

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

pgl_slot_handle_t pglAddGsMemSlot (int startingPage, int pageLength, unsigned int pixelMode)
 Adds a memory slot to the list of free slots. More...

void pglLockGsMemSlot (pgl_slot_handle_t slot_handle)
 Prevents a slot from being allocated or freed automatically. More...

void pglUnlockGsMemSlot (pgl_slot_handle_t slot_handle)
 Lets the memory manager automatically allocate/free a slot that was previously locked. More...

void pglRemoveAllGsMemSlots ()
 Removes all gs memory slots. More...

pgl_area_handle_t pglCreateGsMemArea (int width, int height, unsigned int pix_format)
 Create a memory area. More...

void pglDestroyGsMemArea (pgl_area_handle_t mem_area)
 Destroy a memory area (free the memory it occupies). More...

void pglAllocGsMemArea (pgl_area_handle_t mem_area)
 Allocate GS ram by binding to a slot. More...

void pglFreeGsMemArea (pgl_area_handle_t mem_area)
 Free a memory area. More...

void pglSetGsMemAreaWordAddr (pgl_area_handle_t mem_area, unsigned int addr)
 Manually set the starting GS ram word address of this area (mainly for compatibility with existing code). More...

void pglBindGsMemAreaToSlot (pgl_area_handle_t mem_area, pgl_slot_handle_t mem_slot)
 This is the manual equivalent of pglAllocGsMemArea() (except that the slot does not have to be unlocked). More...

void pglUnbindGsMemArea (pgl_area_handle_t mem_area)
 Release the slot bound to this area. More...

void pglLockGsMemArea (pgl_area_handle_t mem_area)
 Prevent this area from being allocated or freed automatically by the memory manager (it may still be operated on manually). More...

void pglUnlockGsMemArea (pgl_area_handle_t mem_area)
 Let the memory manager affect the allocation of this area. More...

int pglGsMemAreaIsAllocated (pgl_area_handle_t mem_area)
unsigned int pglGetGsMemAreaWordAddr (pgl_area_handle_t mem_area)


Detailed Description

pgl interface to gs memory manager.

Definition in file gsmemory.cpp.


ps2gl version cvs