Main Page | Data Structures | File List | Data Fields | Globals

render_buffer.h File Reference

Exposes data and DMA chain buffer-related functions. More...

Go to the source code of this file.

Functions

void Render_AllocateBuffers (int sps2descriptor)
 Initialise the data and DMA chain buffers.

void Render_FreeBuffers ()
 Free the memory allocated for the data and DMA chain buffers.

void Render_SwapChainBuffers ()
 Swap the double-buffered DMA chain buffers.

void * Render_NextQW_Data ()
 Advance the global data buffer pointer by 1 quadword.

void * Render_NextQW_Curr ()
 Advance the global chain buffer pointer by 1 quadword.

void * Render_GotoNextBlock_Data (int qwords)
 Skip to the next page in the data buffer.

sps2DMATag_t * Render_LinkNextBlock_Data (int qwords, sps2DMATag_t *dmatagaddr)
void Render_LinkNextBlock_Curr (int qwords)


Detailed Description

Exposes data and DMA chain buffer-related functions.


Function Documentation

Render_AllocateBuffers int  sps2descriptor  ) 
 

Initialise the data and DMA chain buffers.

This function should be called before using the other renderer API functions. The total amount of memory allocated is equal to DATABUFFER_SIZE + (2 * CHAINBUFFER_SIZE).

Parameters:
sps2descriptor An SPS2 device descriptor.
Returns:
Nothing.

Render_FreeBuffers  ) 
 

Free the memory allocated for the data and DMA chain buffers.

This function should be called before the application terminates.

Returns:
Nothing.

Render_GotoNextBlock_Data int  qwords  ) 
 

Skip to the next page in the data buffer.

Returns:
A pointer to the next free block of continugous memory

Render_NextQW_Curr  ) 
 

Advance the global chain buffer pointer by 1 quadword.

This function should be called after adding a quadword to the global DMA chain buffer.

Returns:
A pointer to the next free location in the DMA chain buffer.

Render_NextQW_Data  ) 
 

Advance the global data buffer pointer by 1 quadword.

This function should be called after adding a quadword to the global data buffer.

Returns:
A pointer to the next free location in the data buffer.

Render_SwapChainBuffers  ) 
 

Swap the double-buffered DMA chain buffers.

This function should be called after kicking the current DMA list with Render_KickDMA.

Returns:
Nothing.


Generated on Wed Apr 28 20:49:12 2004 for KISS Renderer by doxygen 1.3.6-20040222