ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/xraster.h
Revision: 3.4
Committed: Mon Jul 14 22:24:00 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R6P1, rad3R6
Changes since 3.3: +13 -1 lines
Log Message:
Instrumented headers against multiple inclusion and for use from C++.
Moved includes in headers out of "C" scope.

File Contents

# Content
1 /* RCSid $Id: xraster.h,v 3.3 2003/06/27 06:53:22 greg Exp $ */
2 /*
3 * xraster.h - header file for X routines using images.
4 */
5 #ifndef _RAD_XRASTER_H_
6 #define _RAD_XRASTER_H_
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 typedef struct {
13 int width, height; /* image size */
14 int ncolors; /* number of colors */
15 union {
16 unsigned short *m; /* monochrome */
17 unsigned char *bz; /* color */
18 } data; /* storage on our side */
19 Pixmap pm; /* storage on server side */
20 Color *cdefs; /* color definitions */
21 int *pmap; /* inverse pixel mapping */
22 int *pixels; /* allocated table entries */
23 } XRASTER;
24
25 extern int *map_rcolors();
26
27 extern Pixmap make_rpixmap();
28
29 #ifdef __cplusplus
30 }
31 #endif
32 #endif /* _RAD_XRASTER_H_ */
33