| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/xmesa_x.h
Go to the documentation of this file.

    00001
    00002 /**************************************************************************
    00003
    00004 Copyright 1998-1999 Precision Insight, Inc., Cedar Park, Texas.
    00005 All Rights Reserved.
    00006
    00007 Permission is hereby granted, free of charge, to any person obtaining a
    00008 copy of this software and associated documentation files (the
    00009 "Software"), to deal in the Software without restriction, including
    00010 without limitation the rights to use, copy, modify, merge, publish,
    00011 distribute, sub license, and/or sell copies of the Software, and to
    00012 permit persons to whom the Software is furnished to do so, subject to
    00013 the following conditions:
    00014
    00015 The above copyright notice and this permission notice (including the
    00016 next paragraph) shall be included in all copies or substantial portions
    00017 of the Software.
    00018
    00019 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    00020 OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
    00021 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
    00022 IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
    00023 ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
    00024 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
    00025 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
    00026
    00027 **************************************************************************/
    00028
    00029 /*
    00030  * Authors:
    00031  *   Kevin E. Martin <kevin@precisioninsight.com>
    00032  *
    00033  * When we're building the XMesa driver for stand-alone Mesa we
    00034  * include this file when building the xm_*.c files.
    00035  * We need to define some types and macros differently when building
    00036  * in the Xserver vs. stand-alone Mesa.
    00037  */
    00038
    00039 #ifndef _XMESA_X_H_
    00040 #define _XMESA_X_H_
    00041
    00042 typedef Display      XMesaDisplay;
    00043 typedef Pixmap       XMesaPixmap;
    00044 typedef Colormap     XMesaColormap;
    00045 typedef Drawable     XMesaDrawable;
    00046 typedef Window       XMesaWindow;
    00047 typedef GC           XMesaGC;
    00048 typedef XVisualInfo *XMesaVisualInfo;
    00049 typedef XImage       XMesaImage;
    00050 typedef XPoint       XMesaPoint;
    00051 typedef XColor       XMesaColor;
    00052
    00053 #define XMesaDestroyImage      XDestroyImage
    00054
    00055 #define XMesaPutPixel          XPutPixel
    00056 #define XMesaGetPixel          XGetPixel
    00057
    00058 #define XMesaSetForeground     XSetForeground
    00059 #define XMesaSetBackground     XSetBackground
    00060 #define XMesaSetPlaneMask      XSetPlaneMask
    00061 #define XMesaSetFunction       XSetFunction
    00062 #define XMesaSetFillStyle      XSetFillStyle
    00063 #define XMesaSetTile           XSetTile
    00064
    00065 #define XMesaDrawPoint         XDrawPoint
    00066 #define XMesaDrawPoints        XDrawPoints
    00067 #define XMesaDrawLine          XDrawLine
    00068 #define XMesaFillRectangle     XFillRectangle
    00069 #define XMesaPutImage          XPutImage
    00070 #define XMesaCopyArea          XCopyArea
    00071
    00072 #define XMesaCreatePixmap      XCreatePixmap
    00073 #define XMesaFreePixmap        XFreePixmap
    00074 #define XMesaFreeGC            XFreeGC
    00075
    00076 #define GET_COLORMAP_SIZE(__v)  __v->visinfo->colormap_size
    00077 #define GET_REDMASK(__v)        __v->mesa_visual.redMask
    00078 #define GET_GREENMASK(__v)      __v->mesa_visual.greenMask
    00079 #define GET_BLUEMASK(__v)       __v->mesa_visual.blueMask
    00080 #define GET_VISUAL_DEPTH(__v)   __v->visinfo->depth
    00081 #define GET_BLACK_PIXEL(__v)    BlackPixel(__v->display, __v->mesa_visual.screen)
    00082 #define CHECK_BYTE_ORDER(__v)   host_byte_order()==ImageByteOrder(__v->display)
    00083 #define CHECK_FOR_HPCR(__v)     XInternAtom(__v->display, "_HP_RGB_SMOOTH_MAP_LIST", True)
    00084
    00085 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines