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#ifndef _GLXVISUALS_H
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define _GLXVISUALS_H
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include <GL/glxint.h>
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/** GLX Visual private area. */
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct {
65fea56f17cd614bc8908264df980a62e1931468vboxsync int x_visual_depth;
65fea56f17cd614bc8908264df980a62e1931468vboxsync int x_visual_class;
65fea56f17cd614bc8908264df980a62e1931468vboxsync} dmxGlxVisualPrivate;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync__GLXvisualConfig *GetGLXVisualConfigs(Display * dpy,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int screen, int *nconfigs);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync__GLXFBConfig *GetGLXFBConfigs(Display * dpy,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int glxMajorOpcode, int *nconfigs);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync__GLXvisualConfig *GetGLXVisualConfigsFromFBConfigs(__GLXFBConfig * fbconfigs,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int nfbconfigs,
65fea56f17cd614bc8908264df980a62e1931468vboxsync XVisualInfo * visuals,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int nvisuals,
65fea56f17cd614bc8908264df980a62e1931468vboxsync __GLXvisualConfig
65fea56f17cd614bc8908264df980a62e1931468vboxsync * glxConfigs,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int nGlxConfigs,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int *nconfigs);
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif