| 1 | /* |
| 2 | * fg_internal_x11.h |
| 3 | * |
| 4 | * The freeglut library private include file. |
| 5 | * |
| 6 | * Copyright (c) 2012 Stephen J. Baker. All Rights Reserved. |
| 7 | * Creation date: Fri Jan 20, 2012 |
| 8 | * |
| 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: |
| 15 | * |
| 16 | * The above copyright notice and this permission notice shall be included |
| 17 | * in all copies or substantial portions of the Software. |
| 18 | * |
| 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. |
| 25 | */ |
| 26 | |
| 27 | #ifndef FREEGLUT_INTERNAL_X11_GLX_H |
| 28 | #define FREEGLUT_INTERNAL_X11_GLX_H |
| 29 | |
| 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 |
| 34 | #endif |
| 35 | #ifndef GLX_SAMPLES |
| 36 | # define GLX_SAMPLES 0x80A9 |
| 37 | #endif |
| 38 | |
| 39 | |
| 40 | #ifndef GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB |
| 41 | #define GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB 0x20B2 |
| 42 | #endif |
| 43 | |
| 44 | #ifndef GLX_CONTEXT_MAJOR_VERSION_ARB |
| 45 | #define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
| 46 | #endif |
| 47 | |
| 48 | #ifndef GLX_CONTEXT_MINOR_VERSION_ARB |
| 49 | #define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 |
| 50 | #endif |
| 51 | |
| 52 | #ifndef GLX_CONTEXT_FLAGS_ARB |
| 53 | #define GLX_CONTEXT_FLAGS_ARB 0x2094 |
| 54 | #endif |
| 55 | |
| 56 | #ifndef GLX_CONTEXT_PROFILE_MASK_ARB |
| 57 | #define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 |
| 58 | #endif |
| 59 | |
| 60 | #ifndef GLX_CONTEXT_DEBUG_BIT_ARB |
| 61 | #define GLX_CONTEXT_DEBUG_BIT_ARB 0x0001 |
| 62 | #endif |
| 63 | |
| 64 | #ifndef GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB |
| 65 | #define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x0002 |
| 66 | #endif |
| 67 | |
| 68 | #ifndef GLX_CONTEXT_CORE_PROFILE_BIT_ARB |
| 69 | #define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 |
| 70 | #endif |
| 71 | |
| 72 | #ifndef GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB |
| 73 | #define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 |
| 74 | #endif |
| 75 | |
| 76 | #ifndef GLX_RGBA_FLOAT_TYPE |
| 77 | #define GLX_RGBA_FLOAT_TYPE 0x20B9 |
| 78 | #endif |
| 79 | |
| 80 | #ifndef GLX_RGBA_FLOAT_BIT |
| 81 | #define GLX_RGBA_FLOAT_BIT 0x00000004 |
| 82 | #endif |
| 83 | |
| 84 | #endif |
| 85 | |