Rice GLES2 (from mupen64plus-ae) plugin. Compile but doesn't works well on the OpenPa...
[mupen64plus-pandora.git] / source / gles2rice / src / liblinux / BMGLibPNG.h
1 #ifndef _BMG_LIBPNG_H_
2 #define _BMG_LIBPNG_H_
3 /*
4 //  header file for the BMGLibPNG functions
5 //
6 //  Copyright 2000, 2001 M. Scott Heiman
7 //  All Rights Reserved
8 //  libPNG is Copyright (c) 1995, 1996 Guy Eric Schalnat, Group 42, Inc.
9 //    (libpng versions 0.5, May 1995, through 0.89c, May 1996)
10 //    Copyright (c) 1996, 1997 Andreas Dilger
11 //    (libpng versions 0.90, December 1996, through 0.96, May 1997)
12 //    Copyright (c) 1998, 1999 Glenn Randers-Pehrson
13 //    (libpng versions 0.97, January 1998, through 1.0.5, October 15, 1999)
14 //
15 // You may use the software for any purpose you see fit. You may modify
16 // it, incorporate it in a commercial application, use it for school,
17 // even turn it in as homework. You must keep the Copyright in the
18 // header and source files. This software is not in the "Public Domain".
19 // You may use this software at your own risk. I have made a reasonable
20 // effort to verify that this software works in the manner I expect it to;
21 // however,...
22 //
23 // THE MATERIAL EMBODIED ON THIS SOFTWARE IS PROVIDED TO YOU "AS-IS" AND
24 // WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING
25 // WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A
26 // PARTICULAR PURPOSE. IN NO EVENT SHALL MICHAEL S. HEIMAN BE LIABLE TO
27 // YOU OR ANYONE ELSE FOR ANY DIRECT, SPECIAL, INCIDENTAL, INDIRECT OR
28 // CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER, INCLUDING
29 // WITHOUT LIMITATION, LOSS OF PROFIT, LOSS OF USE, SAVINGS OR REVENUE,
30 // OR THE CLAIMS OF THIRD PARTIES, WHETHER OR NOT MICHAEL S. HEIMAN HAS
31 // BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSS, HOWEVER CAUSED AND ON
32 // ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE
33 // POSSESSION, USE OR PERFORMANCE OF THIS SOFTWARE.
34 */
35
36 #include "pngrw.h"
37
38 #if defined(__cplusplus)
39 extern "C" {
40 #endif
41
42 //#pragma message ("Exporting BMGLibPNG functions")
43 /* saves the contents of an HBITMAP to a file.  The extension of the file name
44 // determines the file type.  returns 1 if successfull, 0 otherwise */
45 extern
46 BMGError  SaveBitmapToPNGFile( HBITMAP hBitmap,      /* bitmap to be saved */
47                                     const char *filename); /* name of output file */
48
49 /* Creates an HBITMAP to an image file.  The extension of the file name
50 // determines the file type.  returns an HBITMAP if successfull, NULL
51 // otherwise */
52 extern
53 HBITMAP  CreateBitmapFromPNGFile( const char *filename,
54                                             int blend );
55
56 #if defined(__cplusplus)
57  }
58 #endif
59
60 #endif
61