Starshatter_Open
Open source Starshatter engine
Main Page
Classes
Files
File List
File Members
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
22
enum
{
PNG_OK
,
PNG_NOMEM
,
PNG_INVALID
,
PNG_NOFILE
};
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
;
41
bool
alpha_loaded
;
42
};
43
44
// +--------------------------------------------------------------------+
45
46
#endif PngImage_h
nGenEx
PngImage.h
Generated on Tue Jun 5 2012 20:46:25 for Starshatter_Open by
1.8.1