Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Enumerations | Functions
savetexture.hpp File Reference

everything to save images of various formats. More...

Go to the source code of this file.

Enumerations

enum  { IMG_BMP = 0, IMG_TGA = 1, IMG_PNG = 2, NUMIMG }
 

Functions

void saveimage (const char *filename, int format, ImageData &image, bool flip=false)
 
int guessimageformat (const char *filename, int format=IMG_PNG)
 
void savepng (const char *filename, ImageData &image, bool flip=false)
 
void savetga (const char *filename, ImageData &image, bool flip=false)
 

Detailed Description

everything to save images of various formats.

Enumeration Type Documentation

anonymous enum
Enumerator
IMG_BMP 
IMG_TGA 
IMG_PNG 
NUMIMG 

Function Documentation

int guessimageformat ( const char *  filename,
int  format = IMG_PNG 
)
void saveimage ( const char *  filename,
int  format,
ImageData image,
bool  flip = false 
)
void savepng ( const char *  filename,
ImageData image,
bool  flip = false 
)
void savetga ( const char *  filename,
ImageData image,
bool  flip = false 
)