source: trunk/src/opengl/mesa/GL/xmesa_x.h

Last change on this file was 2938, checked in by sandervl, 26 years ago

created

File size: 3.5 KB
Line 
1
2/**************************************************************************
3
4Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
5All Rights Reserved.
6
7Permission is hereby granted, free of charge, to any person obtaining a
8copy of this software and associated documentation files (the
9"Software"), to deal in the Software without restriction, including
10without limitation the rights to use, copy, modify, merge, publish,
11distribute, sub license, and/or sell copies of the Software, and to
12permit persons to whom the Software is furnished to do so, subject to
13the following conditions:
14
15The above copyright notice and this permission notice (including the
16next paragraph) shall be included in all copies or substantial portions
17of the Software.
18
19THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
22IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
23ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26
27**************************************************************************/
28
29/*
30 * Authors:
31 * Kevin E. Martin <kevin@precisioninsight.com>
32 *
33 * $Header: /home/ktk/tmp/odin/2007/netlabs.cvs/odin32/src/opengl/mesa/GL/xmesa_x.h,v 1.1 2000-02-29 00:43:33 sandervl Exp $
34 */
35
36#ifndef _XMESA_X_H_
37#define _XMESA_X_H_
38
39typedef Display XMesaDisplay;
40typedef Pixmap XMesaPixmap;
41typedef Colormap XMesaColormap;
42typedef Drawable XMesaDrawable;
43typedef Window XMesaWindow;
44typedef GC XMesaGC;
45typedef XVisualInfo *XMesaVisualInfo;
46typedef XImage XMesaImage;
47typedef XPoint XMesaPoint;
48typedef XColor XMesaColor;
49
50#define XMesaDestroyImage XDestroyImage
51
52#define XMesaPutPixel XPutPixel
53#define XMesaGetPixel XGetPixel
54
55#define XMesaSetForeground XSetForeground
56#define XMesaSetBackground XSetBackground
57#define XMesaSetPlaneMask XSetPlaneMask
58#define XMesaSetFunction XSetFunction
59#define XMesaSetDashes XSetDashes
60#define XMesaSetLineAttributes XSetLineAttributes
61#define XMesaSetFillStyle XSetFillStyle
62#define XMesaSetTile XSetTile
63#define XMesaSetStipple XSetStipple
64
65#define XMesaDrawPoint XDrawPoint
66#define XMesaDrawPoints XDrawPoints
67#define XMesaDrawLine XDrawLine
68#define XMesaFillRectangle XFillRectangle
69#define XMesaPutImage XPutImage
70#define XMesaCopyArea XCopyArea
71#define XMesaFillPolygon XFillPolygon
72
73#define XMesaCreatePixmap XCreatePixmap
74#define XMesaFreePixmap XFreePixmap
75#define XMesaFreeGC XFreeGC
76
77#define GET_COLORMAP_SIZE(__v) __v->visinfo->colormap_size
78#define GET_REDMASK(__v) __v->visinfo->red_mask
79#define GET_GREENMASK(__v) __v->visinfo->green_mask
80#define GET_BLUEMASK(__v) __v->visinfo->blue_mask
81#define GET_BITS_PER_PIXEL(__v) bits_per_pixel(__v->display, __v->visinfo)
82#if defined(__cplusplus) || defined(c_plusplus)
83#define GET_VISUAL_CLASS(__v) __v->visinfo->c_class
84#else
85#define GET_VISUAL_CLASS(__v) __v->visinfo->class
86#endif
87#define GET_VISUAL_DEPTH(__v) __v->visinfo->depth
88#define GET_BLACK_PIXEL(__v) BlackPixel(__v->display, __v->visinfo->screen)
89#define CHECK_BYTE_ORDER(__v) host_byte_order()==ImageByteOrder(__v->display)
90#define CHECK_FOR_HPCR(__v) XInternAtom(__v->display, "_HP_RGB_SMOOTH_MAP_LIST", True)
91
92#endif
Note: See TracBrowser for help on using the repository browser.