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

render_util.h File Reference

Exposes error checking and file handling functions. More...

Go to the source code of this file.

Functions

void DumpMemory (void *baseaddr, int bytes)
 Dump a block of memory to standard output.

int Render_GetBlockSpace_Data ()
 Find the space remaining in the current data buffer block.

int Render_GetBlockSpace_Curr ()
 Find the space remaining in the current chain buffer block.

void Render_CheckNextBlock_Data ()
 Check if there is a free block following the current data buffer block.

void Render_CheckNextBlock_Curr ()
 Check if there is a free block following the current chain buffer block.

void * Render_ReadFile (char *filename, unsigned int *bytes)
 Open the given file and read it into memory.


Detailed Description

Exposes error checking and file handling functions.


Function Documentation

DumpMemory void *  baseaddr,
int  bytes
 

Dump a block of memory to standard output.

For debug use.

Parameters:
*baseaddr Pointer to the start of the block.
bytes Size of the block (bytes).
Returns:
Nothing.

Render_CheckNextBlock_Curr  ) 
 

Check if there is a free block following the current chain buffer block.

If there are no more blocks following the current block, this function prints an error message and exits immediately with a status of -1.

Returns:
Nothing.

Render_CheckNextBlock_Data  ) 
 

Check if there is a free block following the current data buffer block.

If there are no more blocks following the current block, this function prints an error message and exits immediately with a status of -1.

Returns:
Nothing.

Render_GetBlockSpace_Curr  ) 
 

Find the space remaining in the current chain buffer block.

Returns:
Number of bytes remaining in the current chain buffer block.

Render_GetBlockSpace_Data  ) 
 

Find the space remaining in the current data buffer block.

Returns:
Number of bytes remaining in the current data buffer block.

Render_ReadFile char *  filename,
unsigned int *  bytes
 

Open the given file and read it into memory.

The pointer returned by this function is aligned to a 128-bit boundary. It should be freed before the application terminates.

Parameters:
*filename Pointer to a string containing a filename.
*bytes Returns the size of the file in bytes.
Returns:
Pointer to the start of the file data.


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