4 * The freeglut library private include file.
6 * Copyright (c) 2012 Stephen J. Baker. All Rights Reserved.
7 * Creation date: Fri Jan 20, 2012
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
16 * The above copyright notice and this permission notice shall be included
17 * in all copies or substantial portions of the Software.
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
20 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
23 * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #ifndef FREEGLUT_INTERNAL_X11_GLX_H
28 #define FREEGLUT_INTERNAL_X11_GLX_H
30 /* If GLX is too old, we will fail during runtime when multisampling
31 is requested, but at least freeglut compiles. */
32 #ifndef GLX_SAMPLE_BUFFERS
33 # define GLX_SAMPLE_BUFFERS 0x80A8
36 # define GLX_SAMPLES 0x80A9
40 #ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB
41 #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2
44 #ifndef GLX_CONTEXT_MAJOR_VERSION_ARB
45 #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091
48 #ifndef GLX_CONTEXT_MINOR_VERSION_ARB
49 #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092
52 #ifndef GLX_CONTEXT_FLAGS_ARB
53 #define GLX_CONTEXT_FLAGS_ARB 0x2094
56 #ifndef GLX_CONTEXT_PROFILE_MASK_ARB
57 #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126
60 #ifndef GLX_CONTEXT_DEBUG_BIT_ARB
61 #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001
64 #ifndef GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB
65 #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002
68 #ifndef GLX_CONTEXT_CORE_PROFILE_BIT_ARB
69 #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
72 #ifndef GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB
73 #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
76 #ifndef GLX_RGBA_FLOAT_TYPE
77 #define GLX_RGBA_FLOAT_TYPE 0x20B9
80 #ifndef GLX_RGBA_FLOAT_BIT
81 #define GLX_RGBA_FLOAT_BIT 0x00000004