1 | /*
|
---|
2 | * $XFree86: xc/include/extensions/render.h,v 1.4 2001/08/16 08:03:25 keithp Exp $
|
---|
3 | *
|
---|
4 | * Copyright © 2000 SuSE, Inc.
|
---|
5 | *
|
---|
6 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
7 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
8 | * the above copyright notice appear in all copies and that both that
|
---|
9 | * copyright notice and this permission notice appear in supporting
|
---|
10 | * documentation, and that the name of SuSE not be used in advertising or
|
---|
11 | * publicity pertaining to distribution of the software without specific,
|
---|
12 | * written prior permission. SuSE makes no representations about the
|
---|
13 | * suitability of this software for any purpose. It is provided "as is"
|
---|
14 | * without express or implied warranty.
|
---|
15 | *
|
---|
16 | * SuSE DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
|
---|
17 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL SuSE
|
---|
18 | * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
---|
19 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
---|
20 | * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
---|
21 | * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
22 | *
|
---|
23 | * Author: Keith Packard, SuSE, Inc.
|
---|
24 | */
|
---|
25 |
|
---|
26 | #ifndef _RENDER_H_
|
---|
27 | #define _RENDER_H_
|
---|
28 |
|
---|
29 | typedef unsigned long Glyph;
|
---|
30 | typedef unsigned long GlyphSet;
|
---|
31 | typedef unsigned long Picture;
|
---|
32 | typedef unsigned long PictFormat;
|
---|
33 |
|
---|
34 | #define RENDER_NAME "RENDER"
|
---|
35 | #define RENDER_MAJOR 0
|
---|
36 | #define RENDER_MINOR 2
|
---|
37 |
|
---|
38 | #define X_RenderQueryVersion 0
|
---|
39 | #define X_RenderQueryPictFormats 1
|
---|
40 | #define X_RenderQueryPictIndexValues 2
|
---|
41 | #define X_RenderQueryDithers 3
|
---|
42 | #define X_RenderCreatePicture 4
|
---|
43 | #define X_RenderChangePicture 5
|
---|
44 | #define X_RenderSetPictureClipRectangles 6
|
---|
45 | #define X_RenderFreePicture 7
|
---|
46 | #define X_RenderComposite 8
|
---|
47 | #define X_RenderScale 9
|
---|
48 | #define X_RenderTrapezoids 10
|
---|
49 | #define X_RenderTriangles 11
|
---|
50 | #define X_RenderTriStrip 12
|
---|
51 | #define X_RenderTriFan 13
|
---|
52 | #define X_RenderColorTrapezoids 14
|
---|
53 | #define X_RenderColorTriangles 15
|
---|
54 | #define X_RenderTransform 16
|
---|
55 | #define X_RenderCreateGlyphSet 17
|
---|
56 | #define X_RenderReferenceGlyphSet 18
|
---|
57 | #define X_RenderFreeGlyphSet 19
|
---|
58 | #define X_RenderAddGlyphs 20
|
---|
59 | #define X_RenderAddGlyphsFromPicture 21
|
---|
60 | #define X_RenderFreeGlyphs 22
|
---|
61 | #define X_RenderCompositeGlyphs8 23
|
---|
62 | #define X_RenderCompositeGlyphs16 24
|
---|
63 | #define X_RenderCompositeGlyphs32 25
|
---|
64 | #define X_RenderFillRectangles 26
|
---|
65 |
|
---|
66 | #define BadPictFormat 0
|
---|
67 | #define BadPicture 1
|
---|
68 | #define BadPictOp 2
|
---|
69 | #define BadGlyphSet 3
|
---|
70 | #define BadGlyph 4
|
---|
71 | #define RenderNumberErrors (BadGlyph+1)
|
---|
72 |
|
---|
73 | #define PictTypeIndexed 0
|
---|
74 | #define PictTypeDirect 1
|
---|
75 |
|
---|
76 | #define PictOpMinimum 0
|
---|
77 | #define PictOpClear 0
|
---|
78 | #define PictOpSrc 1
|
---|
79 | #define PictOpDst 2
|
---|
80 | #define PictOpOver 3
|
---|
81 | #define PictOpOverReverse 4
|
---|
82 | #define PictOpIn 5
|
---|
83 | #define PictOpInReverse 6
|
---|
84 | #define PictOpOut 7
|
---|
85 | #define PictOpOutReverse 8
|
---|
86 | #define PictOpAtop 9
|
---|
87 | #define PictOpAtopReverse 10
|
---|
88 | #define PictOpXor 11
|
---|
89 | #define PictOpAdd 12
|
---|
90 | #define PictOpSaturate 13
|
---|
91 | #define PictOpMaximum 13
|
---|
92 |
|
---|
93 | /*
|
---|
94 | * Operators only available in version 0.2
|
---|
95 | */
|
---|
96 | #define PictOpDisjointMinimum 0x10
|
---|
97 | #define PictOpDisjointClear 0x10
|
---|
98 | #define PictOpDisjointSrc 0x11
|
---|
99 | #define PictOpDisjointDst 0x12
|
---|
100 | #define PictOpDisjointOver 0x13
|
---|
101 | #define PictOpDisjointOverReverse 0x14
|
---|
102 | #define PictOpDisjointIn 0x15
|
---|
103 | #define PictOpDisjointInReverse 0x16
|
---|
104 | #define PictOpDisjointOut 0x17
|
---|
105 | #define PictOpDisjointOutReverse 0x18
|
---|
106 | #define PictOpDisjointAtop 0x19
|
---|
107 | #define PictOpDisjointAtopReverse 0x1a
|
---|
108 | #define PictOpDisjointXor 0x1b
|
---|
109 | #define PictOpDisjointMaximum 0x1b
|
---|
110 |
|
---|
111 | #define PictOpConjointMinimum 0x20
|
---|
112 | #define PictOpConjointClear 0x20
|
---|
113 | #define PictOpConjointSrc 0x21
|
---|
114 | #define PictOpConjointDst 0x22
|
---|
115 | #define PictOpConjointOver 0x23
|
---|
116 | #define PictOpConjointOverReverse 0x24
|
---|
117 | #define PictOpConjointIn 0x25
|
---|
118 | #define PictOpConjointInReverse 0x26
|
---|
119 | #define PictOpConjointOut 0x27
|
---|
120 | #define PictOpConjointOutReverse 0x28
|
---|
121 | #define PictOpConjointAtop 0x29
|
---|
122 | #define PictOpConjointAtopReverse 0x2a
|
---|
123 | #define PictOpConjointXor 0x2b
|
---|
124 | #define PictOpConjointMaximum 0x2b
|
---|
125 |
|
---|
126 | #define PolyEdgeSharp 0
|
---|
127 | #define PolyEdgeSmooth 1
|
---|
128 |
|
---|
129 | #define PolyModePrecise 0
|
---|
130 | #define PolyModeImprecise 1
|
---|
131 |
|
---|
132 | #define CPRepeat (1 << 0)
|
---|
133 | #define CPAlphaMap (1 << 1)
|
---|
134 | #define CPAlphaXOrigin (1 << 2)
|
---|
135 | #define CPAlphaYOrigin (1 << 3)
|
---|
136 | #define CPClipXOrigin (1 << 4)
|
---|
137 | #define CPClipYOrigin (1 << 5)
|
---|
138 | #define CPClipMask (1 << 6)
|
---|
139 | #define CPGraphicsExposure (1 << 7)
|
---|
140 | #define CPSubwindowMode (1 << 8)
|
---|
141 | #define CPPolyEdge (1 << 9)
|
---|
142 | #define CPPolyMode (1 << 10)
|
---|
143 | #define CPDither (1 << 11)
|
---|
144 | #define CPComponentAlpha (1 << 12)
|
---|
145 | #define CPLastBit 11
|
---|
146 |
|
---|
147 | #endif /* _RENDER_H_ */
|
---|