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>
Detailed Description
Inline functions for the basic manipulation of textures.
Function Documentation
Clear a texture to transparent black.
- Parameters:
-
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.
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. |
Free memory allocated for texture.
- Parameters:
-