ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/x11raster.h
Revision: 1.3
Committed: Fri Mar 2 12:22:44 1990 UTC (34 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 1.2: +2 -0 lines
Log Message:
final bug fixes, working version of x11image

File Contents

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