b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * (C) Copyright IBM Corporation 2003
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * 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 * on the rights to use, copy, modify, merge, publish, distribute, sub
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * license, and/or sell copies of the Software, and to permit persons to whom
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * the Software is furnished to do so, subject to the following conditions:
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * The above copyright notice and this permission notice (including the next
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * paragraph) shall be included in all copies or substantial portions of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * VA LINUX SYSTEM, IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * USE OR OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/**
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * \file glcontextmodes.h
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * \author Ian Romanick <idr@us.ibm.com>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifndef GLCONTEXTMODES_H
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define GLCONTEXTMODES_H
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include "GL/internal/glcore.h"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#if !defined(IN_MINI_GLX)
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern GLint _gl_convert_from_x_visual_type( int visualType );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern GLint _gl_convert_to_x_visual_type( int visualType );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void _gl_copy_visual_to_context_mode( __GLcontextModes * mode,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const __GLXvisualConfig * config );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern int _gl_get_context_mode_data( const __GLcontextModes *mode,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int attribute, int *value_return );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* !defined(IN_MINI_GLX) */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern __GLcontextModes * _gl_context_modes_create( unsigned count,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync size_t minimum_size );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern void _gl_context_modes_destroy( __GLcontextModes * modes );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern __GLcontextModes * _gl_context_modes_find_visual(
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync __GLcontextModes * modes, int vid );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncextern GLboolean _gl_context_modes_are_same( const __GLcontextModes * a,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync const __GLcontextModes * b );
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif /* GLCONTEXTMODES_H */