|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 #if !defined(LOCALGL_H_) |
|
6 #define LOCALGL_H_ |
|
7 |
|
8 #include "GLTypes.h" |
|
9 #include "GLConsts.h" |
|
10 |
|
11 // TODO: use official constant names instead of followed ones. |
|
12 // IMG_texture_compression_pvrtc |
|
13 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_4BPPV1 0x8C00 |
|
14 #define LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1 0x8C01 |
|
15 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_4BPPV1 0x8C02 |
|
16 #define LOCAL_GL_COMPRESSED_RGBA_PVRTC_2BPPV1 0x8C03 |
|
17 |
|
18 // OES_EGL_image_external |
|
19 #define LOCAL_GL_TEXTURE_EXTERNAL 0x8D65 |
|
20 #define LOCAL_GL_TEXTURE_BINDING_EXTERNAL 0x8D67 |
|
21 |
|
22 // EGL_KHR_fence_sync |
|
23 #define LOCAL_EGL_SYNC_FENCE 0x30F9 |
|
24 #define LOCAL_EGL_SYNC_TYPE 0x30F7 |
|
25 #define LOCAL_EGL_SYNC_STATUS 0x30F1 |
|
26 #define LOCAL_EGL_SYNC_CONDITION 0x30F8 |
|
27 #define LOCAL_EGL_SIGNALED 0x30F2 |
|
28 #define LOCAL_EGL_UNSIGNALED 0x30F3 |
|
29 #define LOCAL_EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0 |
|
30 #define LOCAL_EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001 |
|
31 #define LOCAL_EGL_FOREVER 0xFFFFFFFFFFFFFFFFull |
|
32 #define LOCAL_EGL_TIMEOUT_EXPIRED 0x30F5 |
|
33 #define LOCAL_EGL_CONDITION_SATISFIED 0x30F6 |
|
34 #define LOCAL_EGL_SUCCESS 0x3000 |
|
35 |
|
36 // EGL_KHR_gl_texture_2D_image |
|
37 #define LOCAL_EGL_GL_TEXTURE_2D 0x30B1 |
|
38 |
|
39 // EGL_KHR_image_base (not supplied by EGL_KHR_image!) |
|
40 #define LOCAL_EGL_IMAGE_PRESERVED 0x30D2 |
|
41 |
|
42 // AMD_compressed_ATC_texture |
|
43 #define LOCAL_GL_ATC_RGB 0x8C92 |
|
44 #define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA 0x8C93 |
|
45 #define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA 0x87EE |
|
46 |
|
47 // Others |
|
48 #define LOCAL_EGL_PRESERVED_RESOURCES 0x3030 |
|
49 #define LOCAL_EGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 |
|
50 |
|
51 #define LOCAL_GL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 |
|
52 #define LOCAL_GL_CONTEXT_LOST 0x9242 |
|
53 #define LOCAL_GL_CONTEXT_FLAGS_ARB 0x2094 |
|
54 #define LOCAL_GL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 |
|
55 #define LOCAL_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 |
|
56 #define LOCAL_GL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 |
|
57 |
|
58 #endif |