Typedefs |
typedef unsigned int | pgl_slot_handle_t |
typedef unsigned int | pgl_area_handle_t |
Functions |
int | pglInit (int immBufferVertexSize) |
| Initialize the ps2gl library.
|
int | pglHasLibraryBeenInitted (void) |
| Has pglInit() been called?
|
void | pglFinish (void) |
| Do any necessary clean up when finished using ps2gl.
|
void | pglWaitForVU1 (void) |
| Wait for dma transfers to vif1 to end.
|
void | pglWaitForVSync (void) |
| Wait for the vertical retrace.
|
void | pglSwapBuffers (void) |
| Signals the end of the current rendering loop and swaps anything double-buffered (display, draw buffers).
|
void | pglPrintGsMemAllocation (void) |
| prints the current gs memory allocation to stdout.
|
int | pglHasGsMemBeenInitted (void) |
| returns whether gs memory has been initialized (by adding one or more slots).
|
pgl_slot_handle_t | pglAddGsMemSlot (int startingPage, int pageLength, unsigned int pixelMode) |
| Adds a memory slot to the list of free slots.
|
void | pglLockGsMemSlot (pgl_slot_handle_t slot_handle) |
| Prevents a slot from being allocated or freed automatically.
|
void | pglUnlockGsMemSlot (pgl_slot_handle_t slot_handle) |
| Lets the memory manager automatically allocate/free a slot that was previously locked.
|
void | pglRemoveAllGsMemSlots () |
| Removes all gs memory slots.
|
pgl_area_handle_t | pglCreateGsMemArea (int width, int height, unsigned int pix_format) |
| Create a memory area.
|
void | pglDestroyGsMemArea (pgl_area_handle_t mem_area) |
| Destroy a memory area (free the memory it occupies).
|
void | pglAllocGsMemArea (pgl_area_handle_t mem_area) |
| Allocate GS ram by binding to a slot.
|
void | pglFreeGsMemArea (pgl_area_handle_t mem_area) |
| Free a memory area.
|
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).
|
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).
|
void | pglUnbindGsMemArea (pgl_area_handle_t mem_area) |
| Release the slot bound to this area.
|
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).
|
void | pglUnlockGsMemArea (pgl_area_handle_t mem_area) |
| Let the memory manager affect the allocation of this area.
|
int | pglGsMemAreaIsAllocated (pgl_area_handle_t mem_area) |
unsigned int | pglGetGsMemAreaWordAddr (pgl_area_handle_t mem_area) |
void | pglSetDisplayBuffers (pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem) |
| Tell ps2gl what areas in GS ram to display.
|
void | pglSetDrawBuffers (pgl_area_handle_t frame0_mem, pgl_area_handle_t frame1_mem, pgl_area_handle_t depth_mem) |
| Set the area(s) in gs mem to draw.
|
void | pglTextureFromGsMemArea (pgl_area_handle_t tex_area_handle) |
| Texture from the given memory area.
|
void | pglNormalPointer (GLint size, GLenum type, GLsizei stride, const GLvoid *ptr) |