2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2010-04-26 19:09:44 -07:00
|
|
|
|
|
|
|
#if !defined(LOCALGL_H_)
|
|
|
|
#define LOCALGL_H_
|
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
#include "GLTypes.h"
|
|
|
|
#include "GLConsts.h"
|
2012-09-25 05:49:28 -07:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// TODO: use official constant names instead of followed ones.
|
2012-09-25 05:49:28 -07:00
|
|
|
// IMG_texture_compression_pvrtc
|
|
|
|
#define LOCAL_GL_COMPRESSED_RGB_PVRTC_4BPPV1 0x8C00
|
|
|
|
#define LOCAL_GL_COMPRESSED_RGB_PVRTC_2BPPV1 0x8C01
|
|
|
|
#define LOCAL_GL_COMPRESSED_RGBA_PVRTC_4BPPV1 0x8C02
|
|
|
|
#define LOCAL_GL_COMPRESSED_RGBA_PVRTC_2BPPV1 0x8C03
|
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// OES_EGL_image_external
|
|
|
|
#define LOCAL_GL_TEXTURE_EXTERNAL 0x8D65
|
2012-07-19 21:14:14 -07:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// EGL_KHR_fence_sync
|
|
|
|
#define LOCAL_EGL_SYNC_FENCE 0x30F9
|
|
|
|
#define LOCAL_EGL_SYNC_TYPE 0x30F7
|
|
|
|
#define LOCAL_EGL_SYNC_STATUS 0x30F1
|
|
|
|
#define LOCAL_EGL_SYNC_CONDITION 0x30F8
|
|
|
|
#define LOCAL_EGL_SIGNALED 0x30F2
|
|
|
|
#define LOCAL_EGL_UNSIGNALED 0x30F3
|
|
|
|
#define LOCAL_EGL_SYNC_PRIOR_COMMANDS_COMPLETE 0x30F0
|
|
|
|
#define LOCAL_EGL_SYNC_FLUSH_COMMANDS_BIT 0x0001
|
|
|
|
#define LOCAL_EGL_FOREVER 0xFFFFFFFFFFFFFFFFull
|
|
|
|
#define LOCAL_EGL_TIMEOUT_EXPIRED 0x30F5
|
|
|
|
#define LOCAL_EGL_CONDITION_SATISFIED 0x30F6
|
|
|
|
#define LOCAL_EGL_SUCCESS 0x3000
|
2012-07-19 21:14:14 -07:00
|
|
|
|
2012-05-31 18:30:08 -07:00
|
|
|
// EGL_KHR_gl_texture_2D_image
|
2013-08-13 07:35:03 -07:00
|
|
|
#define LOCAL_EGL_GL_TEXTURE_2D 0x30B1
|
2012-07-20 12:20:51 -07:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// EGL_KHR_image_base (not supplied by EGL_KHR_image!)
|
|
|
|
#define LOCAL_EGL_IMAGE_PRESERVED 0x30D2
|
2012-06-12 14:39:43 -07:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// AMD_compressed_ATC_texture
|
|
|
|
#define LOCAL_GL_ATC_RGB 0x8C92
|
|
|
|
#define LOCAL_GL_ATC_RGBA_EXPLICIT_ALPHA 0x8C93
|
|
|
|
#define LOCAL_GL_ATC_RGBA_INTERPOLATED_ALPHA 0x87EE
|
2013-02-13 15:26:24 -08:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
// Others
|
|
|
|
#define LOCAL_EGL_PRESERVED_RESOURCES 0x3030
|
|
|
|
#define LOCAL_EGL_CONTEXT_RESET_NOTIFICATION_STRATEGY_EXT 0x3138
|
2013-02-13 15:26:24 -08:00
|
|
|
|
2013-08-13 07:35:03 -07:00
|
|
|
#define LOCAL_GL_CONTEXT_RESET_NOTIFICATION_STRATEGY_ARB 0x8256
|
|
|
|
#define LOCAL_GL_CONTEXT_LOST 0x9242
|
|
|
|
#define LOCAL_GL_CONTEXT_FLAGS_ARB 0x2094
|
|
|
|
#define LOCAL_GL_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001
|
|
|
|
#define LOCAL_GL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002
|
|
|
|
#define LOCAL_GL_CONTEXT_ROBUST_ACCESS_BIT_ARB 0x00000004
|
2013-05-07 20:58:22 -07:00
|
|
|
|
2010-04-26 19:09:44 -07:00
|
|
|
#endif
|