From 4254a469982681b2d4f9f651228f7f91d6e11a2d Mon Sep 17 00:00:00 2001 From: "Wonsik, Jung" Date: Tue, 12 Dec 2017 19:47:30 +0900 Subject: [PATCH] EvasGL: Add GL[u]int64 type in Evas_GL To support khronos 64 bit type, this patch is made. @TIZEN_ONLY Change-Id: Ie71f1e8c7aa0bf1bd663cc75222f5e023bea09d2 --- src/lib/evas/Evas_GL.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/lib/evas/Evas_GL.h b/src/lib/evas/Evas_GL.h index 74dae6a..477601e 100755 --- a/src/lib/evas/Evas_GL.h +++ b/src/lib/evas/Evas_GL.h @@ -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 -- 2.7.4