Image management API. More...
#include "png.h"#include <tgfclient.h>#include <stdlib.h>#include <stdio.h>#include <portability.h>
Go to the source code of this file.
Macros | |
| #define | PNG_BYTES_TO_CHECK 4 |
Functions | |
| unsigned char * | GfImgReadPng (const char *filename, int *widthp, int *heightp, float screen_gamma) |
| Load an image from disk to a buffer in RGBA mode. More... | |
| int | GfImgWritePng (unsigned char *img, const char *filename, int width, int height) |
| Write a buffer to a png image on disk. More... | |
| void | GfImgFreeTex (GLuint tex) |
| Free the texture. More... | |
| GLuint | GfImgReadTex (char *filename) |
| Read a png image into a texture. More... | |