summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-10-27 17:28:17 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-11-14 10:43:00 +0900
commit198a508f9d36c6d1c0708589378dd702f4efdab6 (patch)
treef755c75ac58bb5ddbff039544b00c05972c0e27a
parentcd63cb0215cc859685b90a895af6a29b82d8bdb9 (diff)
Evas GL: Scan extensions for OpenGL-ES 1.1
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_ext.c50
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_ext.h1
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api_gles1.c8
3 files changed, 55 insertions, 4 deletions
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext.c b/src/modules/evas/engines/gl_common/evas_gl_api_ext.c
index e39224132c..537b9dd786 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api_ext.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext.c
@@ -438,6 +438,56 @@ evgl_api_ext_get(Evas_GL_API *gl_funcs)
438 438
439} 439}
440 440
441void
442evgl_api_gles1_ext_get(Evas_GL_API *gl_funcs)
443{
444 if (_evgl_api_ext_status != 1)
445 {
446 ERR("EVGL extension is not yet initialized.");
447 return;
448 }
449
450#define ORD(f) EVAS_API_OVERRIDE(f, gl_funcs, glextsym_)
451
452 /////////////////////////////////////////////////////////////////////////////////////////////////////
453 // Extension HEADER
454 /////////////////////////////////////////////////////////////////////////////////////////////////////
455#define _EVASGL_EXT_CHECK_SUPPORT(name)
456#define _EVASGL_EXT_DISCARD_SUPPORT()
457#define _EVASGL_EXT_BEGIN(name) \
458 if (_gl_ext_support_##name != 0) \
459 {
460#define _EVASGL_EXT_END() \
461 }
462#define _EVASGL_EXT_DRVNAME(name)
463#define _EVASGL_EXT_FUNCTION_BEGIN(ret, name, param) \
464 ORD(name);
465#define _EVASGL_EXT_FUNCTION_END()
466#define _EVASGL_EXT_FUNCTION_PRIVATE_BEGIN(ret, name, param)
467#define _EVASGL_EXT_FUNCTION_PRIVATE_END()
468#define _EVASGL_EXT_FUNCTION_DRVFUNC(name)
469#define _EVASGL_EXT_FUNCTION_DRVFUNC_PROCADDR(name)
470
471#undef _EVASGL_EXT_WHITELIST_ONLY
472#define _EVASGL_EXT_WHITELIST_ONLY 0
473
474#include "evas_gl_api_ext_def.h"
475
476#undef _EVASGL_EXT_CHECK_SUPPORT
477#undef _EVASGL_EXT_DISCARD_SUPPORT
478#undef _EVASGL_EXT_BEGIN
479#undef _EVASGL_EXT_END
480#undef _EVASGL_EXT_DRVNAME
481#undef _EVASGL_EXT_FUNCTION_BEGIN
482#undef _EVASGL_EXT_FUNCTION_END
483#undef _EVASGL_EXT_FUNCTION_PRIVATE_BEGIN
484#undef _EVASGL_EXT_FUNCTION_PRIVATE_END
485#undef _EVASGL_EXT_FUNCTION_DRVFUNC
486#undef _EVASGL_EXT_FUNCTION_DRVFUNC_PROCADDR
487 /////////////////////////////////////////////////////////////////////////////////////////////////////
488#undef ORD
489
490}
441const char * 491const char *
442evgl_api_ext_string_get() 492evgl_api_ext_string_get()
443{ 493{
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_ext.h b/src/modules/evas/engines/gl_common/evas_gl_api_ext.h
index 9d53fc29f6..d6f4b023d5 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api_ext.h
+++ b/src/modules/evas/engines/gl_common/evas_gl_api_ext.h
@@ -73,6 +73,7 @@
73 73
74extern Eina_Bool evgl_api_ext_init(void *getproc, const char *glueexts); 74extern Eina_Bool evgl_api_ext_init(void *getproc, const char *glueexts);
75extern void evgl_api_ext_get(Evas_GL_API *gl_funcs); 75extern void evgl_api_ext_get(Evas_GL_API *gl_funcs);
76extern void evgl_api_gles1_ext_get(Evas_GL_API *gl_funcs);
76extern const char *evgl_api_ext_string_get(); 77extern const char *evgl_api_ext_string_get();
77 78
78#endif //_EVAS_GL_API_EXT_H 79#endif //_EVAS_GL_API_EXT_H
diff --git a/src/modules/evas/engines/gl_common/evas_gl_api_gles1.c b/src/modules/evas/engines/gl_common/evas_gl_api_gles1.c
index f03d731b27..c018f7e7f8 100644
--- a/src/modules/evas/engines/gl_common/evas_gl_api_gles1.c
+++ b/src/modules/evas/engines/gl_common/evas_gl_api_gles1.c
@@ -4098,8 +4098,8 @@ _debug_gles1_api_get(Evas_GL_API *funcs)
4098 ORD(glVertexPointer); 4098 ORD(glVertexPointer);
4099 ORD(glViewport); 4099 ORD(glViewport);
4100#undef ORD 4100#undef ORD
4101 // TODO: Add gles1 extensions 4101
4102 //evgl_api_gles1_ext_get(funcs); 4102 evgl_api_gles1_ext_get(funcs);
4103} 4103}
4104 4104
4105static void 4105static void
@@ -4256,8 +4256,8 @@ _normal_gles1_api_get(Evas_GL_API *funcs)
4256 ORD(glVertexPointer); 4256 ORD(glVertexPointer);
4257 ORD(glViewport); 4257 ORD(glViewport);
4258#undef ORD 4258#undef ORD
4259 // TODO: Add GLES 1.1 extensions 4259
4260 //evgl_api_gles1_ext_get(funcs); 4260 evgl_api_gles1_ext_get(funcs);
4261} 4261}
4262 4262
4263void 4263void