Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
PngImage.h
Go to the documentation of this file.
1 /* Project nGenEx
2  Destroyer Studios LLC
3  Copyright © 1997-2004. All Rights Reserved.
4 
5  SUBSYSTEM: nGenEx.lib
6  FILE: PngImage.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  PNG image file loader
13 */
14 
15 #ifndef PngImage_h
16 #define PngImage_h
17 
18 #include "png.h"
19 
20 // +--------------------------------------------------------------------+
21 
23 
24 // +--------------------------------------------------------------------+
25 
26 struct PngImage
27 {
28  static const char* TYPENAME() { return "PngImage"; }
29 
30  PngImage();
31  ~PngImage();
32 
33  int Load(char *filename);
34  int LoadBuffer(unsigned char* buf, int len);
35  int CreateImage(png_structp png_ptr, png_infop info_ptr);
36 
37  DWORD* image;
38  DWORD width;
39  DWORD height;
40  DWORD bpp;
42 };
43 
44 // +--------------------------------------------------------------------+
45 
46 #endif PngImage_h