EvasGL: Add GL[u]int64 type in Evas_GL
authorWonsik, Jung <sidein@samsung.com>
Tue, 12 Dec 2017 10:47:30 +0000 (19:47 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 13:28:35 +0000 (22:28 +0900)
To support khronos 64 bit type, this patch is made.

@TIZEN_ONLY

Change-Id: Ie71f1e8c7aa0bf1bd663cc75222f5e023bea09d2

src/lib/evas/Evas_GL.h

index 74dae6a..477601e 100755 (executable)
@@ -949,6 +949,15 @@ EAPI Evas_GL                 *evas_gl_current_evas_gl_get (Evas_GL_Context **con
  * Evas_GL.h as these will conflict.
  *-----------------------------------------------------------------------*/
 
+#ifndef KHRONOS_SUPPORT_INT64
+typedef unsigned long long khronos_uint64_t;
+typedef signed long long   khronos_int64_t;
+#endif
+
+// Due to build conflicts on various platforms, we can't use GL[u]int64 directly
+typedef khronos_int64_t    EvasGLint64;
+typedef khronos_uint64_t   EvasGLuint64;
+
 #if !defined(__gl2_h_)
 # define __gl2_h_
 
@@ -977,6 +986,13 @@ typedef float            GLfloat;      // Changed khronos_float_t
 typedef float            GLclampf;     // Changed khronos_float_t
 typedef signed int       GLfixed;      // Changed khronos_int32_t
 
+/*
+ * Evas GL has two types to support 64 bit interger both EvasGL[u]int64 and GL[u]int64
+ * EvasGL[u]int64 is for backwards compatibility and GL[u]int64 is for native type.
+*/
+typedef khronos_int64_t  GLint64;
+typedef khronos_uint64_t GLuint64;
+
 /* OpenGL ES core versions */
 //#define GL_ES_VERSION_2_0                 1