![]() |
torcs - 1.2.2 | ![]() |
Files | |
file | img.cpp |
Images manipulation tools. | |
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. |
|
Free the texture.
|
|
Load an image from disk to a buffer in RGBA mode.
|
|
Read a png image into a texture.
|
Here is the call graph for this function:
|
Write a buffer to a png image on disk.
|
Here is the call graph for this function: