Starshatter_Open
Open source Starshatter engine
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
D3DXImage.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: D3DXImage.h
7  AUTHOR: John DiCamillo
8 
9 
10  OVERVIEW
11  ========
12  D3DX image file loader
13 */
14 
15 #ifndef D3DXImage_h
16 #define D3DXImage_h
17 
18 #include "Types.h"
19 
20 // +--------------------------------------------------------------------+
21 
22 struct D3DXImage
23 {
24  static const char* TYPENAME() { return "D3DXImage"; }
25 
26  D3DXImage();
27  D3DXImage(WORD w, WORD h, DWORD* img);
28  ~D3DXImage();
29 
30  bool Load(char *filename);
31  bool Save(char *filename);
32 
33  bool LoadBuffer(BYTE* buf, int len);
34 
35  DWORD* image;
36  DWORD width;
37  DWORD height;
38  DWORD format;
39 };
40 
41 // +--------------------------------------------------------------------+
42 
43 #endif D3DXImage_h