ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/x11raster.h
Revision: 2.2
Committed: Sat Feb 22 02:07:28 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.1: +1 -4 lines
Log Message:
Changes and check-in for 3.5 release
Includes new source files and modifications not recorded for many years
See ray/doc/notes/ReleaseNotes for notes between 3.1 and 3.5 release

File Contents

# Content
1 /* RCSid: $Id$ */
2 /*
3 * x11raster.h - header file for X routines using images.
4 *
5 * 3/1/90
6 */
7
8 typedef struct {
9 Display *disp; /* the display */
10 int screen; /* the screen */
11 Visual *visual; /* pointer to visual used */
12 XImage *image; /* the X image */
13 GC gc; /* private graphics context */
14 int ncolors; /* number of colors */
15 XColor *cdefs; /* color definitions */
16 short *pmap; /* inverse pixel mapping */
17 unsigned long *pixels; /* allocated table entries */
18 Colormap cmap; /* installed color map */
19 Pixmap pm; /* storage on server side */
20 } XRASTER;
21
22 extern Colormap newcmap();
23
24 extern unsigned long *map_rcolors();
25
26 extern Pixmap make_rpixmap();
27
28 extern XRASTER *make_raster();
29
30 #define put_raster(d,xdst,ydst,xr) patch_raster(d,0,0,xdst,ydst, \
31 (xr)->image->width,(xr)->image->height,xr)