4c221b0da1816acf2ca302b10092df059484468dvboxsync/*
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Permission is hereby granted, free of charge, to any person obtaining a
4c221b0da1816acf2ca302b10092df059484468dvboxsync * copy of this software and associated documentation files (the "Software"),
4c221b0da1816acf2ca302b10092df059484468dvboxsync * to deal in the Software without restriction, including without limitation
4c221b0da1816acf2ca302b10092df059484468dvboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * and/or sell copies of the Software, and to permit persons to whom the
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Software is furnished to do so, subject to the following conditions:
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * The above copyright notice including the dates of first publication and
4c221b0da1816acf2ca302b10092df059484468dvboxsync * either this permission notice or a reference to
4c221b0da1816acf2ca302b10092df059484468dvboxsync * http://oss.sgi.com/projects/FreeB/
4c221b0da1816acf2ca302b10092df059484468dvboxsync * shall be included in all copies or substantial portions of the Software.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
4c221b0da1816acf2ca302b10092df059484468dvboxsync * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
4c221b0da1816acf2ca302b10092df059484468dvboxsync * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
4c221b0da1816acf2ca302b10092df059484468dvboxsync * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4c221b0da1816acf2ca302b10092df059484468dvboxsync * SOFTWARE.
4c221b0da1816acf2ca302b10092df059484468dvboxsync *
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Except as contained in this notice, the name of Silicon Graphics, Inc.
4c221b0da1816acf2ca302b10092df059484468dvboxsync * shall not be used in advertising or otherwise to promote the sale, use or
4c221b0da1816acf2ca302b10092df059484468dvboxsync * other dealings in this Software without prior written authorization from
4c221b0da1816acf2ca302b10092df059484468dvboxsync * Silicon Graphics, Inc.
4c221b0da1816acf2ca302b10092df059484468dvboxsync */
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync#ifndef _GLXVISUALS_H
4c221b0da1816acf2ca302b10092df059484468dvboxsync#define _GLXVISUALS_H
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync#include <GL/glxint.h>
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync/** GLX Visual private area. */
4c221b0da1816acf2ca302b10092df059484468dvboxsynctypedef struct {
4c221b0da1816acf2ca302b10092df059484468dvboxsync int x_visual_depth;
4c221b0da1816acf2ca302b10092df059484468dvboxsync int x_visual_class;
4c221b0da1816acf2ca302b10092df059484468dvboxsync} dmxGlxVisualPrivate;
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync__GLXvisualConfig *GetGLXVisualConfigs(Display *dpy,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int screen,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int *nconfigs);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync__GLXFBConfig *GetGLXFBConfigs(Display *dpy,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int glxMajorOpcode,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int *nconfigs);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync__GLXvisualConfig *GetGLXVisualConfigsFromFBConfigs(__GLXFBConfig *fbconfigs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int nfbconfigs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync XVisualInfo *visuals,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int nvisuals,
4c221b0da1816acf2ca302b10092df059484468dvboxsync __GLXvisualConfig
4c221b0da1816acf2ca302b10092df059484468dvboxsync *glxConfigs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int nGlxConfigs,
4c221b0da1816acf2ca302b10092df059484468dvboxsync int *nconfigs);
4c221b0da1816acf2ca302b10092df059484468dvboxsync
4c221b0da1816acf2ca302b10092df059484468dvboxsync#endif