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