Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
5564 | serge | 1 | |
2 | |||
3 | |||
4 | All Rights Reserved. |
||
5 | |||
6 | |||
7 | copy of this software and associated documentation files (the |
||
8 | "Software"), to deal in the Software without restriction, including |
||
9 | without limitation the rights to use, copy, modify, merge, publish, |
||
10 | distribute, sub license, and/or sell copies of the Software, and to |
||
11 | permit persons to whom the Software is furnished to do so, subject to |
||
12 | the following conditions: |
||
13 | |||
14 | |||
15 | next paragraph) shall be included in all copies or substantial portions |
||
16 | of the Software. |
||
17 | |||
18 | |||
19 | OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
||
20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. |
||
21 | IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR |
||
22 | ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
||
23 | TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
||
24 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
25 | |||
26 | |||
27 | |||
28 | |||
29 | * Authors: |
||
30 | * Kevin E. Martin |
||
31 | * |
||
32 | * When we're building the XMesa driver for stand-alone Mesa we |
||
33 | * include this file when building the xm_*.c files. |
||
34 | * We need to define some types and macros differently when building |
||
35 | * in the Xserver vs. stand-alone Mesa. |
||
36 | */ |
||
37 | |||
38 | |||
39 | #define _XMESA_X_H_ |
||
40 | |||
41 | |||
42 | typedef Pixmap XMesaPixmap; |
||
43 | typedef Colormap XMesaColormap; |
||
44 | typedef Drawable XMesaDrawable; |
||
45 | typedef Window XMesaWindow; |
||
46 | typedef GC XMesaGC; |
||
47 | typedef XVisualInfo *XMesaVisualInfo; |
||
48 | typedef XImage XMesaImage; |
||
49 | typedef XPoint XMesaPoint; |
||
50 | typedef XColor XMesaColor; |
||
51 | |||
52 | |||
53 | |||
54 | |||
55 | #define XMesaGetPixel XGetPixel |
||
56 | |||
57 | |||
58 | #define XMesaSetBackground XSetBackground |
||
59 | #define XMesaSetPlaneMask XSetPlaneMask |
||
60 | #define XMesaSetFunction XSetFunction |
||
61 | #define XMesaSetFillStyle XSetFillStyle |
||
62 | #define XMesaSetTile XSetTile |
||
63 | |||
64 | |||
65 | #define XMesaDrawPoints XDrawPoints |
||
66 | #define XMesaDrawLine XDrawLine |
||
67 | #define XMesaFillRectangle XFillRectangle |
||
68 | #define XMesaGetImage XGetImage |
||
69 | #define XMesaPutImage XPutImage |
||
70 | #define XMesaCopyArea XCopyArea |
||
71 | |||
72 | |||
73 | #define XMesaFreePixmap XFreePixmap |
||
74 | #define XMesaFreeGC XFreeGC |
||
75 | |||
76 | |||
77 | #define GET_REDMASK(__v) __v->mesa_visual.redMask |
||
78 | #define GET_GREENMASK(__v) __v->mesa_visual.greenMask |
||
79 | #define GET_BLUEMASK(__v) __v->mesa_visual.blueMask |
||
80 | #define GET_VISUAL_DEPTH(__v) __v->visinfo->depth |
||
81 | #define GET_BLACK_PIXEL(__v) BlackPixel(__v->display, __v->screen) |
||
82 | #define CHECK_BYTE_ORDER(__v) host_byte_order()==ImageByteOrder(__v->display) |
||
83 | |||
84 | |||
85 |