# dmx_glxvisuals.h

Go to the documentation of this file.

    00001 /*
    00002  * SGI FREE SOFTWARE LICENSE B (Version 2.0, Sept. 18, 2008)
    00003  * Copyright (C) 1991-2000 Silicon Graphics, Inc. All Rights Reserved.
    00004  *
    00005  * Permission is hereby granted, free of charge, to any person obtaining a
    00006  * copy of this software and associated documentation files (the "Software"),
    00007  * to deal in the Software without restriction, including without limitation
    00008  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
    00009  * and/or sell copies of the Software, and to permit persons to whom the
    00010  * Software is furnished to do so, subject to the following conditions:
    00011  *
    00012  * The above copyright notice including the dates of first publication and
    00013  * either this permission notice or a reference to
    00014  * http://oss.sgi.com/projects/FreeB/
    00015  * shall be included in all copies or substantial portions of the Software.
    00016  *
    00017  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
    00018  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    00019  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
    00020  * SILICON GRAPHICS, INC. BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    00021  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
    00022  * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    00023  * SOFTWARE.
    00024  *
    00025  * Except as contained in this notice, the name of Silicon Graphics, Inc.
    00026  * shall not be used in advertising or otherwise to promote the sale, use or
    00027  * other dealings in this Software without prior written authorization from
    00028  * Silicon Graphics, Inc.
    00029  */
    00030
    00031 #ifndef _GLXVISUALS_H
    00032 #define _GLXVISUALS_H
    00033
    00034 #include <GL/glxint.h>
    00035
    00037 typedef struct {
    00038     int x_visual_depth;
    00039     int x_visual_class;
    00040 } dmxGlxVisualPrivate;
    00041
    00042 __GLXvisualConfig *GetGLXVisualConfigs(Display *dpy,
    00043                                        int screen,
    00044                                        int *nconfigs);
    00045
    00046 __GLXFBConfig *GetGLXFBConfigs(Display *dpy,
    00047                                int glxMajorOpcode,
    00048                                int *nconfigs);
    00049
    00050 __GLXvisualConfig *GetGLXVisualConfigsFromFBConfigs(__GLXFBConfig *fbconfigs,
    00051                                                     int nfbconfigs,
    00052                                                     XVisualInfo *visuals,
    00053                                                     int nvisuals,
    00054                                                     __GLXvisualConfig
    00055                                                     *glxConfigs,
    00056                                                     int nGlxConfigs,
    00057                                                     int *nconfigs);
    00058
    00059 #endif