b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#ifndef _GLX_drawable_h_
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define _GLX_drawable_h_
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/*
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync *
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * copy of this software and associated documentation files (the "Software"),
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * to deal in the Software without restriction, including without limitation
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * and/or sell copies of the Software, and to permit persons to whom the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Software is furnished to do so, subject to the following conditions:
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync *
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * The above copyright notice including the dates of first publication and
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * either this permission notice or a reference to
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * http://oss.sgi.com/projects/FreeB/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * shall be included in all copies or substantial portions of the Software.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync *
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * SOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync *
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * shall not be used in advertising or otherwise to promote the sale, use or
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * other dealings in this Software without prior written authorization from
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * Silicon Graphics, Inc.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr pDraw;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXvisualConfig *pGlxVisual;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXscreenInfo *pGlxScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXFBConfig *pFBConfig;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr pScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool idExists;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int refcnt;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync XID *be_xids;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} __GLXpixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr pDraw;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int type;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool idExists;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int refcnt; /* contexts bound */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXFBConfig *pGlxFBConfig;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr pScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} __glXWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXscreenInfo *pGlxScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync __GLXFBConfig *pFBConfig;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr pScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool idExists;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int refcnt;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync XID *be_xids;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} __glXPbuffer;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif /* !__GLX_drawable_h__ */