GRRLIB_texSetup.h File Reference

Inline functions for the basic manipulation of textures. More...

#include <malloc.h>
#include <pngu.h>
#include <stdio.h>
#include <string.h>
#include <jpeglib.h>

Functions

INLINE GRRLIB_texImgGRRLIB_CreateEmptyTexture (const uint w, const uint h)
 Create an empty texture.
INLINE void GRRLIB_FlushTex (GRRLIB_texImg *tex)
 Write the contents of a texture in the data cache down to main memory.
INLINE void GRRLIB_FreeTexture (GRRLIB_texImg *tex)
 Free memory allocated for texture.
INLINE void GRRLIB_ClearTex (GRRLIB_texImg *tex)
 Clear a texture to transparent black.

Detailed Description

Inline functions for the basic manipulation of textures.


Function Documentation

INLINE void GRRLIB_ClearTex ( GRRLIB_texImg tex  ) 

Clear a texture to transparent black.

Parameters:
tex Texture to clear.
INLINE GRRLIB_texImg* GRRLIB_CreateEmptyTexture ( const uint  w,
const uint  h 
)

Create an empty texture.

Parameters:
w Width of the new texture to create.
h Height of the new texture to create.
Returns:
A GRRLIB_texImg structure newly created.
INLINE void GRRLIB_FlushTex ( GRRLIB_texImg tex  ) 

Write the contents of a texture in the data cache down to main memory.

For performance the CPU holds a data cache where modifications are stored before they get written down to mainmemory.

Parameters:
tex The texture to flush.
INLINE void GRRLIB_FreeTexture ( GRRLIB_texImg tex  ) 

Free memory allocated for texture.

Parameters:
tex A GRRLIB_texImg structure.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Fri Sep 25 14:44:35 2009 for GRRLIB by  doxygen 1.6.1