use modern construct 'nullptr' instead of 'NULL' or '0'
[platform/core/uifw/dali-core.git] / dali / integration-api / gl-defines.h
index 5af7acd..3d71156 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef __DALI_INTERNAL_GL_DEFINES_H__
-#define __DALI_INTERNAL_GL_DEFINES_H__
+#ifndef DALI_INTERNAL_GL_DEFINES_H
+#define DALI_INTERNAL_GL_DEFINES_H
 
 /*
- * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 #define GL_NUM_SAMPLE_COUNTS                             0x9380
 #define GL_TEXTURE_IMMUTABLE_LEVELS                      0x8D63
 
+// From AstcTextures.h / GLES 3.1
+#define GL_COMPRESSED_RGBA_ASTC_4x4_KHR                  0x93B0
+#define GL_COMPRESSED_RGBA_ASTC_5x4_KHR                  0x93B1
+#define GL_COMPRESSED_RGBA_ASTC_5x5_KHR                  0x93B2
+#define GL_COMPRESSED_RGBA_ASTC_6x5_KHR                  0x93B3
+#define GL_COMPRESSED_RGBA_ASTC_6x6_KHR                  0x93B4
+#define GL_COMPRESSED_RGBA_ASTC_8x5_KHR                  0x93B5
+#define GL_COMPRESSED_RGBA_ASTC_8x6_KHR                  0x93B6
+#define GL_COMPRESSED_RGBA_ASTC_8x8_KHR                  0x93B7
+#define GL_COMPRESSED_RGBA_ASTC_10x5_KHR                 0x93B8
+#define GL_COMPRESSED_RGBA_ASTC_10x6_KHR                 0x93B9
+#define GL_COMPRESSED_RGBA_ASTC_10x8_KHR                 0x93BA
+#define GL_COMPRESSED_RGBA_ASTC_10x10_KHR                0x93BB
+#define GL_COMPRESSED_RGBA_ASTC_12x10_KHR                0x93BC
+#define GL_COMPRESSED_RGBA_ASTC_12x12_KHR                0x93BD
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR          0x93D0
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR          0x93D1
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR          0x93D2
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR          0x93D3
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR          0x93D4
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR          0x93D5
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR          0x93D6
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR          0x93D7
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR         0x93D8
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR         0x93D9
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR         0x93DA
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR        0x93DB
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR        0x93DC
+#define GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR        0x93DD
+
 /*------------------------------------------------------------------------*
  * EXT extension tokens
  *------------------------------------------------------------------------*/
 #endif
 
 
-#endif // __DALI_INTERNAL_GL_DEFINES_H__
+/* GL_OES_EGL_image_external */
+#ifndef GL_TEXTURE_EXTERNAL_OES
+#define GL_TEXTURE_EXTERNAL_OES                                 0x8D65
+#endif
+
+/* GL_SAMPLER_EXTERNAL_OES  */
+#ifndef GL_SAMPLER_EXTERNAL_OES
+#define GL_SAMPLER_EXTERNAL_OES                                 0x8D66
+#endif
+
+#endif // DALI_INTERNAL_GL_DEFINES_H