1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/gl/GLDefs.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,58 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#if !defined(LOCALGL_H_) 1.9 +#define LOCALGL_H_ 1.10 + 1.11 +#include "GLTypes.h" 1.12 +#include "GLConsts.h" 1.13 + 1.14 +// TODO: use official constant names instead of followed ones. 1.15 +// IMG_texture_compression_pvrtc 1.16 +#define LOCAL_GL_COMPRESSED_RGB_PVRTC_4BPPV1 0x8C00 1.17 +#define LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1 0x8C01 1.18 +#define LOCAL_GL_COMPRESSED_RGBA_PVRTC_4BPPV1 0x8C02 1.19 +#define LOCAL_GL_COMPRESSED_RGBA_PVRTC_2BPPV1 0x8C03 1.20 + 1.21 +// OES_EGL_image_external 1.22 +#define LOCAL_GL_TEXTURE_EXTERNAL 0x8D65 1.23 +#define LOCAL_GL_TEXTURE_BINDING_EXTERNAL 0x8D67 1.24 + 1.25 +// EGL_KHR_fence_sync 1.26 +#define LOCAL_EGL_SYNC_FENCE 0x30F9 1.27 +#define LOCAL_EGL_SYNC_TYPE 0x30F7 1.28 +#define LOCAL_EGL_SYNC_STATUS 0x30F1 1.29 +#define LOCAL_EGL_SYNC_CONDITION 0x30F8 1.30 +#define LOCAL_EGL_SIGNALED 0x30F2 1.31 +#define LOCAL_EGL_UNSIGNALED 0x30F3 1.32 +#define LOCAL_EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0 1.33 +#define LOCAL_EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001 1.34 +#define LOCAL_EGL_FOREVER 0xFFFFFFFFFFFFFFFFull 1.35 +#define LOCAL_EGL_TIMEOUT_EXPIRED 0x30F5 1.36 +#define LOCAL_EGL_CONDITION_SATISFIED 0x30F6 1.37 +#define LOCAL_EGL_SUCCESS 0x3000 1.38 + 1.39 +// EGL_KHR_gl_texture_2D_image 1.40 +#define LOCAL_EGL_GL_TEXTURE_2D 0x30B1 1.41 + 1.42 +// EGL_KHR_image_base (not supplied by EGL_KHR_image!) 1.43 +#define LOCAL_EGL_IMAGE_PRESERVED 0x30D2 1.44 + 1.45 +// AMD_compressed_ATC_texture 1.46 +#define LOCAL_GL_ATC_RGB 0x8C92 1.47 +#define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA 0x8C93 1.48 +#define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA 0x87EE 1.49 + 1.50 +// Others 1.51 +#define LOCAL_EGL_PRESERVED_RESOURCES 0x3030 1.52 +#define LOCAL_EGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_EXT 0x3138 1.53 + 1.54 +#define LOCAL_GL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256 1.55 +#define LOCAL_GL_CONTEXT_LOST 0x9242 1.56 +#define LOCAL_GL_CONTEXT_FLAGS_ARB 0x2094 1.57 +#define LOCAL_GL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 1.58 +#define LOCAL_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 1.59 +#define LOCAL_GL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004 1.60 + 1.61 +#endif