| TerraLib 4.1

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

- File List
- File Members

Defines | Typedefs
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/drivers/GL/xmesa_xf86.h File Reference
`#include "scrnintstr.h"`
`#include "pixmapstr.h"`

Go to the source code of this file.

## Defines

#define | XMesaSetGeneric(__d, __gc, __val, __mask)
#define | XMesaSetGenericPtr(__d, __gc, __pval, __mask)
#define | XMesaSetForeground(d, gc, v) XMesaSetGeneric(d,gc,v,GCForeground)
#define | XMesaSetBackground(d, gc, v) XMesaSetGeneric(d,gc,v,GCBackground)
#define | XMesaSetPlaneMask(d, gc, v) XMesaSetGeneric(d,gc,v,GCPlaneMask)
#define | XMesaSetFunction(d, gc, v) XMesaSetGeneric(d,gc,v,GCFunction)
#define | XMesaSetFillStyle(d, gc, v) XMesaSetGeneric(d,gc,v,GCFillStyle)
#define | XMesaSetTile(d, gc, v) XMesaSetGenericPtr(d,gc,v,GCTile)
#define | XMesaDrawPoint(__d, __b, __gc, __x, __y)
#define | XMesaDrawPoints(__d, __b, __gc, __p, __n, __m)
#define | XMesaDrawLine(__d, __b, __gc, __x0, __y0, __x1, __y1)
#define | XMesaFillRectangle(__d, __b, __gc, __x, __y, __w, __h)
#define | XMesaPutImage(__d, __b, __gc, __i, __sx, __sy, __x, __y, __w, __h)
#define | XMesaCopyArea(__d, __sb, __db, __gc, __sx, __sy, __w, __h, __x, __y)
#define | XMesaCreatePixmap(__d, __b, __w, __h, __depth) (*__d->CreatePixmap)(__d, __w, __h, __depth)
#define | XMesaFreePixmap(__d, __b) (*__d->DestroyPixmap)(__b)
#define | XMesaFreeGC(__d, __gc)
#define | GET_COLORMAP_SIZE(__v) __v->ColormapEntries
#define | GET_REDMASK(__v) __v->mesa_visual.redMask
#define | GET_GREENMASK(__v) __v->mesa_visual.greenMask
#define | GET_BLUEMASK(__v) __v->mesa_visual.blueMask
#define | GET_VISUAL_DEPTH(__v) __v->nplanes
#define | GET_BLACK_PIXEL(__v) __v->display->blackPixel
#define | CHECK_BYTE_ORDER(__v) GL_TRUE
#define | CHECK_FOR_HPCR(__v) GL_FALSE

## Typedefs

typedef struct _XMesaImageRec | XMesaImage
typedef ScreenRec | XMesaDisplay
typedef PixmapPtr | XMesaPixmap
typedef ColormapPtr | XMesaColormap
typedef DrawablePtr | XMesaDrawable
typedef WindowPtr | XMesaWindow
typedef GCPtr | XMesaGC
typedef VisualPtr | XMesaVisualInfo
typedef DDXPointRec | XMesaPoint
typedef xColorItem | XMesaColor

## Define Documentation

#define CHECK_BYTE_ORDER | ( |  | __v | ) | GL_TRUE

#define CHECK_FOR_HPCR | ( |  | __v | ) | GL_FALSE

#define GET_BLACK_PIXEL | ( |  | __v | ) | __v->display->blackPixel

#define GET_BLUEMASK | ( |  | __v | ) | __v->mesa_visual.blueMask

#define GET_COLORMAP_SIZE | ( |  | __v | ) | __v->ColormapEntries

#define GET_GREENMASK | ( |  | __v | ) | __v->mesa_visual.greenMask

#define GET_REDMASK | ( |  | __v | ) | __v->mesa_visual.redMask

#define GET_VISUAL_DEPTH | ( |  | __v | ) | __v->nplanes

#define XMesaCopyArea | ( |  | __d,
|  |  | __sb,
|  |  | __db,
|  |  | __gc,
|  |  | __sx,
|  |  | __sy,
|  |  | __w,
|  |  | __h,
|  |  | __x,
|  |  | __y
| ) |  |

Value:

    do { \
        (void) __d; \
        ValidateGC(__db, __gc); \
        (*__gc->ops->CopyArea)((DrawablePtr)__sb, __db, __gc, \
                                        __sx, __sy, __w, __h, __x, __y); \
    } while (0)

#define XMesaCreatePixmap | ( |  | __d,
|  |  | __b,
|  |  | __w,
|  |  | __h,
|  |  | __depth
| ) |  | (*__d->CreatePixmap)(__d, __w, __h, __depth)

#define XMesaDrawLine | ( |  | __d,
|  |  | __b,
|  |  | __gc,
|  |  | __x0,
|  |  | __y0,
|  |  | __x1,
|  |  | __y1
| ) |  |

Value:

    do { \
        XMesaPoint __p[2]; \
        (void) __d; \
        __p[0].x = __x0; \
        __p[0].y = __y0; \
        __p[1].x = __x1; \
        __p[1].y = __y1; \
        ValidateGC(__b, __gc); \
        (*gc->ops->PolyLines)(__b, __gc, CoordModeOrigin, 2, __p); \
    } while (0)

#define XMesaDrawPoint | ( |  | __d,
|  |  | __b,
|  |  | __gc,
|  |  | __x,
|  |  | __y
| ) |  |

Value:

    do { \
        XMesaPoint __p[1]; \
        (void) __d; \
        __p[0].x = __x; \
        __p[0].y = __y; \
        ValidateGC(__b, __gc); \
        (*gc->ops->PolyPoint)(__b, __gc, CoordModeOrigin, 1, __p); \
    } while (0)

#define XMesaDrawPoints | ( |  | __d,
|  |  | __b,
|  |  | __gc,
|  |  | __p,
|  |  | __n,
|  |  | __m
| ) |  |

Value:

    do { \
        (void) __d; \
        ValidateGC(__b, __gc); \
        (*gc->ops->PolyPoint)(__b, __gc, __m, __n, __p); \
    } while (0)

#define XMesaFillRectangle | ( |  | __d,
|  |  | __b,
|  |  | __gc,
|  |  | __x,
|  |  | __y,
|  |  | __w,
|  |  | __h
| ) |  |

Value:

    do { \
        xRectangle __r[1]; \
        (void) __d; \
        ValidateGC((DrawablePtr)__b, __gc); \
        __r[0].x = __x; \
        __r[0].y = __y; \
        __r[0].width = __w; \
        __r[0].height = __h; \
        (*__gc->ops->PolyFillRect)((DrawablePtr)__b, __gc, 1, __r); \
    } while (0)

#define XMesaFreeGC | ( |  | __d,
|  |  | __gc
| ) |  |

Value:

    do { \
        (void) __d; \
        FreeScratchGC(__gc); \
    } while (0)

#define XMesaFreePixmap | ( |  | __d,
|  |  | __b
| ) |  | (*__d->DestroyPixmap)(__b)

#define XMesaPutImage | ( |  | __d,
|  |  | __b,
|  |  | __gc,
|  |  | __i,
|  |  | __sx,
|  |  | __sy,
|  |  | __x,
|  |  | __y,
|  |  | __w,
|  |  | __h
| ) |  |

Value:

    do { \
        /* Assumes: Images are always in ZPixmap format */ \
        (void) __d; \
        if (__sx || __sy) /* The non-trivial case */ \
               XMesaPutImageHelper(__d,__b,__gc,__i,__sx,__sy,__x,__y,__w,__h); \
        ValidateGC(__b, __gc); \
        (*__gc->ops->PutImage)(__b, __gc, ((XMesaDrawable)(__b))->depth, \
                                        __x, __y, __w, __h, 0, ZPixmap, \
                                        ((XMesaImage *)(__i))->data); \
    } while (0)

#define XMesaSetBackground | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGeneric(d,gc,v,GCBackground)

#define XMesaSetFillStyle | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGeneric(d,gc,v,GCFillStyle)

#define XMesaSetForeground | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGeneric(d,gc,v,GCForeground)

#define XMesaSetFunction | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGeneric(d,gc,v,GCFunction)

#define XMesaSetGeneric | ( |  | __d,
|  |  | __gc,
|  |  | __val,
|  |  | __mask
| ) |  |

Value:

    do { \
        CARD32 __v[1]; \
        (void) __d; \
        __v[0] = __val; \
        dixChangeGC(NullClient, __gc, __mask, __v, NULL); \
    } while (0)

#define XMesaSetGenericPtr | ( |  | __d,
|  |  | __gc,
|  |  | __pval,
|  |  | __mask
| ) |  |

Value:

    do { \
        ChangeGCVal __v[1]; \
        (void) __d; \
        __v[0].ptr = __pval; \
        dixChangeGC(NullClient, __gc, __mask, NULL, __v); \
    } while (0)

#define XMesaSetPlaneMask | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGeneric(d,gc,v,GCPlaneMask)

#define XMesaSetTile | ( |  | d,
|  |  | gc,
|  |  | v
| ) |  | XMesaSetGenericPtr(d,gc,v,GCTile)

## Typedef Documentation

typedef xColorItem XMesaColor

typedef ColormapPtr XMesaColormap

typedef ScreenRec XMesaDisplay

typedef DrawablePtr XMesaDrawable

typedef GCPtr XMesaGC

typedef struct _XMesaImageRec XMesaImage

typedef PixmapPtr XMesaPixmap

typedef DDXPointRec XMesaPoint

typedef VisualPtr XMesaVisualInfo

typedef WindowPtr XMesaWindow

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines