ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/meta/imPfuncs.h
Revision: 1.1
Committed: Sat Feb 22 02:07:26 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
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

# User Rev Content
1 greg 1.1 /* RCSid: $Id$ */
2     /*
3     * imPfuncs - imPress functions
4     *
5     * Written by William LeFebvre, LCSE, Rice University
6     *
7     * This program can be freely redistributed to anyone, with the following
8     * provisions: that this comment remain intact, and that no money is
9     * charged or collected for that redistribution.
10     */
11    
12     /*
13     * These functions are part of the imPress functional interface routines.
14     */
15    
16     #define im_putbyte(c) putc((c) & 0377, imout)
17     #define im_putword(w) (im_putbyte((w) >> 8), im_putbyte(w))
18    
19     #define im_b(code, b) (putc(code, imout), im_putbyte(b))
20    
21     /* function definitions for imPress commands */
22    
23     #define imBrule(wa, wb, wc) im_www(imP_BRULE, wa, wb, wc)
24     #define imCircArc(wa, wb, wc) im_www(imP_CIRC_ARC, wa, wb, wc)
25     #define imCircSegm(wa, wb, wc, wd, we) \
26     im_wwwww(imP_CIRC_SEGM, wa, wb, wc, wd, we)
27     #define imCrLf() putc(imP_CRLF, imout)
28     #define imDrawPath(b) im_b(imP_DRAW_PATH, b)
29     #define imEllipseArc(wa, wb, wc, wd, we) \
30     im_wwwww(imP_ELLIPSE_ARC, wa, wb, wc, wd, we)
31     #define imEndPage() putc(imP_ENDPAGE, imout)
32     #define imEof() putc(imP_EOF, imout)
33     #define imFillPath(b) im_b(imP_FILL_PATH, b)
34     #define imMminus() putc(imP_MMINUS, imout)
35     #define imMmove(w) im_w(imP_MMOVE, w)
36     #define imMplus() putc(imP_MPLUS, imout)
37     #define imMplus() putc(imP_MPLUS, imout)
38     #define imNoOp() putc(imP_NO_OP, imout)
39     #define imPage() putc(imP_PAGE, imout)
40     #define imPop() putc(imP_POP, imout)
41     #define imPush() putc(imP_PUSH, imout)
42     #define imSetAbsH(w) im_w(imP_SET_ABS_H, w)
43     #define imSetAbsV(w) im_w(imP_SET_ABS_V, w)
44     #define imSetAdvDirs(b2, b1) im_21(imP_SET_ADV_DIRS, b2, b1)
45     #define imSetBol(w) im_w(imP_SET_BOL, w)
46     #define imSetFamily(b) im_b(imP_SET_FAMILY, b)
47     #define imSetHVSystem(b2o, b2a, b3) im_223(imP_SET_HV_SYSTEM, b2o, b2a, b3)
48     #define imSetIl(w) im_w(imP_SET_IL, w)
49     #define imSetMagnification(b) im_b(imP_SET_MAGN, b)
50     #define imSetPen(b) im_b(imP_SET_PEN, b)
51     #define imSetPum(b1) im_b(imP_SET_PUM, b1)
52     #define imSetPushMask(w) im_w(imP_SET_PUSH_MASK, w)
53     #define imSetRelH(w) im_w(imP_SET_REL_H, w)
54     #define imSetRelV(w) im_w(imP_SET_REL_V, w)
55     #define imSetSp(w) im_w(imP_SET_SP, w)
56     #define imSetTexture(b7a, b7b) im_77(imP_SET_TEXTURE, b7a, b7b)
57     #define imSmove(w) im_w(imP_SMOVE, w)
58     #define imSp() putc(imP_SP, imout)
59     #define imSp1() putc(imP_SP1, imout)
60    
61     /* Push mask defines: */
62    
63     #define imPM_PEN_TEXTURE 0x100
64     #define imPM_SP 0x080
65     #define imPM_IL 0x040
66     #define imPM_BOL 0x020
67     #define imPM_FAMILY 0x010
68     #define imPM_HV_POS 0x008
69     #define imPM_ADV_DIRS 0x004
70     #define imPM_ORIGIN 0x002
71     #define imPM_ORIENTATION 0x001
72    
73     extern FILE *imout;