torcs - 1.2.2

src/libs/tgfclient/img.cpp File Reference


Detailed Description

Images manipulation tools.

Load and store png images with easy interface.

Author:
Eric Espie
Version:
Id
img.cpp,v 1.2 2003/06/24 21:02:25 torcs Exp

#include "png.h"
#include <tgfclient.h>
#include <stdlib.h>
#include <stdio.h>

Include dependency graph for img.cpp:

Include dependency graph

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.


Define Documentation

#define PNG_BYTES_TO_CHECK   4
 


Generated at Thu Feb 26 21:53:11 2004 for torcs by doxygen 1.3.3 written by Dimitri van Heesch, © 1997-1999
TORCS © Eric Espié 1999, 2002.