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