diff options
author | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
---|---|---|
committer | David Walter Seikel | 2013-01-13 17:24:39 +1000 |
commit | 393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch) | |
tree | 6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h | |
parent | Add a note about rasters suggested start up code. (diff) | |
download | SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2 SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz |
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h new file mode 100644 index 0000000..66f8472 --- /dev/null +++ b/libraries/irrlicht-1.8/source/Irrlicht/libpng/contrib/visupng/PngFile.h | |||
@@ -0,0 +1,30 @@ | |||
1 | /*------------------------------------------*/ | ||
2 | /* PNGFILE.H -- Header File for pngfile.c*/ | ||
3 | /*------------------------------------------*/ | ||
4 | |||
5 | /* Copyright 2000, Willem van Schaik.*/ | ||
6 | |||
7 | /* This code is released under the libpng license.*/ | ||
8 | /* For conditions of distribution and use, see the disclaimer*/ | ||
9 | /* and license in png.h*/ | ||
10 | |||
11 | #include <stdio.h> | ||
12 | #include <stdlib.h> | ||
13 | #include <string.h> | ||
14 | #include <windows.h> | ||
15 | |||
16 | void PngFileInitialize (HWND hwnd) ; | ||
17 | BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; | ||
18 | BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ; | ||
19 | |||
20 | BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData, | ||
21 | int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor); | ||
22 | BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData, | ||
23 | int iWidth, int iHeight, png_color BkgColor); | ||
24 | |||
25 | #ifndef PNG_STDIO_SUPPORTED | ||
26 | static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length); | ||
27 | static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length); | ||
28 | static void png_flush(png_structp png_ptr); | ||
29 | #endif | ||
30 | |||