From 8898ad9b25fca6afe2374d293a981db02a83d7e9 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 31 May 2012 14:46:27 +0000 Subject: Committing the documentation to svn to have it accessible online --- Doc/doxygen/html/_pcx_8h_source.html | 185 +++++++++++++++++++++++++++++++++++ 1 file changed, 185 insertions(+) create mode 100644 Doc/doxygen/html/_pcx_8h_source.html (limited to 'Doc/doxygen/html/_pcx_8h_source.html') diff --git a/Doc/doxygen/html/_pcx_8h_source.html b/Doc/doxygen/html/_pcx_8h_source.html new file mode 100644 index 0000000..aa7142e --- /dev/null +++ b/Doc/doxygen/html/_pcx_8h_source.html @@ -0,0 +1,185 @@ + + + + + +Starshatter_Open: D:/SRC/StarshatterSVN/nGenEx/Pcx.h Source File + + + + + + + + + + + + + +
+
+ + + + + + +
+
Starshatter_Open +
+
Open source Starshatter engine
+
+
+ + + + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+
+
Pcx.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: PCX.h
+
7  AUTHOR: John DiCamillo
+
8 
+
9 
+
10  OVERVIEW
+
11  ========
+
12  PCX image file loader
+
13 */
+
14 
+
15 #ifndef PCX_H
+
16 #define PCX_H
+
17 
+
18 // +--------------------------------------------------------------------+
+
19 
+ +
21 
+
22 struct PcxHeader
+
23 {
+
24  char manufacturer; // Always set to 10
+
25  char version; // Always 5 for 256-color files
+
26  char encoding; // Always set to 1
+
27  char bits_per_pixel; // Should be 8 for 256-color files
+
28  short xmin,ymin; // Coordinates for top left corner
+
29  short xmax,ymax; // Width and height of image
+
30  short hres; // Horizontal resolution of image
+
31  short vres; // Vertical resolution of image
+
32  char palette16[48]; // EGA palette; not used for 256-color files
+
33  char reserved; // Reserved for future use
+
34  char color_planes; // Color planes
+
35  short bytes_per_line; // Number of bytes in 1 line of pixels
+
36  short palette_type; // Should be 2 for color palette
+
37  char filler[58]; // Nothing but junk
+
38 };
+
39 
+
40 // +--------------------------------------------------------------------+
+
41 
+
42 struct PcxImage
+
43 {
+
44  static const char* TYPENAME() { return "PcxImage"; }
+
45 
+
46  PcxImage(short w, short h, unsigned long* hibits);
+
47  PcxImage(short w, short h, unsigned char* bits, unsigned char* colors);
+
48 
+
49  PcxImage();
+
50  ~PcxImage();
+
51 
+
52  int Load(char *filename);
+
53  int Save(char *filename);
+
54 
+
55  int LoadBuffer(unsigned char* buf, int len);
+
56 
+ +
58  unsigned char* bitmap;
+
59  unsigned long* himap;
+
60  unsigned char pal[768];
+
61  unsigned long imagebytes;
+
62  unsigned short width, height;
+
63 };
+
64 
+
65 // +--------------------------------------------------------------------+
+
66 
+
67 
+
68 #endif
+
+
+ + + + -- cgit v1.1