![]() |
torcs - 1.2.2 | ![]() |
Load and store png images with easy interface.
#include "png.h"
#include <tgfclient.h>
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for img.cpp:
Defines | |
#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. | |
int | GfImgWritePng (unsigned char *img, const char *filename, int width, int height) |
Write a buffer to a png image on disk. | |
void | GfImgFreeTex (GLuint tex) |
Free the texture. | |
GLuint | GfImgReadTex (char *filename) |
Read a png image into a texture. |
|
|