Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
savetexture.hpp
Go to the documentation of this file.
1 
4 #pragma once
5 
6 struct ImageData;
7 
8 enum
9 {
10  IMG_BMP = 0,
11  IMG_TGA = 1,
12  IMG_PNG = 2,
14 };
15 
16 extern void saveimage(const char *filename, int format, ImageData &image, bool flip = false);
17 extern int guessimageformat(const char *filename, int format = IMG_PNG);
18 
19 extern void savepng(const char *filename, ImageData &image, bool flip = false);
20 extern void savetga(const char *filename, ImageData &image, bool flip = false);
21 
22 
Definition: savetexture.hpp:13
Definition: savetexture.hpp:12
Structure holding the Raw Pixel Data and minimum image info.
Definition: image.hpp:20
int guessimageformat(const char *filename, int format=IMG_PNG)
Definition: savetexture.cpp:235
void saveimage(const char *filename, int format, ImageData &image, bool flip=false)
Definition: savetexture.cpp:246
Definition: savetexture.hpp:10
void format(tagval *args, int numargs)
Definition: command.cpp:2584
void savepng(const char *filename, ImageData &image, bool flip=false)
Definition: savetexture.cpp:48
Definition: savetexture.hpp:11
void flip()
Definition: octaedit.cpp:2697
void savetga(const char *filename, ImageData &image, bool flip=false)
Definition: savetexture.cpp:160