65fea56f17cd614bc8908264df980a62e1931468vboxsync#ifdef HAVE_DIX_CONFIG_H
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include <dix-config.h>
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#ifndef _GLX_drawable_h_
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define _GLX_drawable_h_
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/*
65fea56f17cd614bc8908264df980a62e1931468vboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
65fea56f17cd614bc8908264df980a62e1931468vboxsync * copy of this software and associated documentation files (the "Software"),
65fea56f17cd614bc8908264df980a62e1931468vboxsync * to deal in the Software without restriction, including without limitation
65fea56f17cd614bc8908264df980a62e1931468vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * and/or sell copies of the Software, and to permit persons to whom the
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Software is furnished to do so, subject to the following conditions:
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * The above copyright notice including the dates of first publication and
65fea56f17cd614bc8908264df980a62e1931468vboxsync * either this permission notice or a reference to
65fea56f17cd614bc8908264df980a62e1931468vboxsync * http://oss.sgi.com/projects/FreeB/
65fea56f17cd614bc8908264df980a62e1931468vboxsync * shall be included in all copies or substantial portions of the Software.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
65fea56f17cd614bc8908264df980a62e1931468vboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
65fea56f17cd614bc8908264df980a62e1931468vboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
65fea56f17cd614bc8908264df980a62e1931468vboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
65fea56f17cd614bc8908264df980a62e1931468vboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
65fea56f17cd614bc8908264df980a62e1931468vboxsync * SOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync *
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
65fea56f17cd614bc8908264df980a62e1931468vboxsync * shall not be used in advertising or otherwise to promote the sale, use or
65fea56f17cd614bc8908264df980a62e1931468vboxsync * other dealings in this Software without prior written authorization from
65fea56f17cd614bc8908264df980a62e1931468vboxsync * Silicon Graphics, Inc.
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* We just need to avoid clashing with DRAWABLE_{WINDOW,PIXMAP} */
65fea56f17cd614bc8908264df980a62e1931468vboxsyncenum {
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLX_DRAWABLE_WINDOW,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLX_DRAWABLE_PIXMAP,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLX_DRAWABLE_PBUFFER,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLX_DRAWABLE_ANY
65fea56f17cd614bc8908264df980a62e1931468vboxsync};
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncstruct __GLXdrawable {
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*destroy) (__GLXdrawable * private);
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLboolean(*swapBuffers) (ClientPtr client, __GLXdrawable *);
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*copySubBuffer) (__GLXdrawable * drawable,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int x, int y, int w, int h);
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*waitX) (__GLXdrawable *);
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*waitGL) (__GLXdrawable *);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync DrawablePtr pDraw;
65fea56f17cd614bc8908264df980a62e1931468vboxsync XID drawId;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync /*
65fea56f17cd614bc8908264df980a62e1931468vboxsync ** Either GLX_DRAWABLE_PIXMAP, GLX_DRAWABLE_WINDOW or
65fea56f17cd614bc8908264df980a62e1931468vboxsync ** GLX_DRAWABLE_PBUFFER.
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync int type;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync /*
65fea56f17cd614bc8908264df980a62e1931468vboxsync ** Configuration of the visual to which this drawable was created.
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync __GLXconfig *config;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLenum target;
65fea56f17cd614bc8908264df980a62e1931468vboxsync GLenum format;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync /*
65fea56f17cd614bc8908264df980a62e1931468vboxsync ** Event mask
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long eventMask;
65fea56f17cd614bc8908264df980a62e1931468vboxsync};
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* !__GLX_drawable_h__ */