diff options
Diffstat (limited to 'Libraries/glew-2.0.0/auto/src/glew_init_egl.c')
-rw-r--r-- | Libraries/glew-2.0.0/auto/src/glew_init_egl.c | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/Libraries/glew-2.0.0/auto/src/glew_init_egl.c b/Libraries/glew-2.0.0/auto/src/glew_init_egl.c deleted file mode 100644 index 784285fa..00000000 --- a/Libraries/glew-2.0.0/auto/src/glew_init_egl.c +++ /dev/null @@ -1,45 +0,0 @@ - /* ------------------------------------------------------------------------ */ - -GLboolean eglewGetExtension (const char* name) -{ - const GLubyte* start; - const GLubyte* end; - - start = (const GLubyte*) eglQueryString(eglGetCurrentDisplay(), EGL_EXTENSIONS); - if (0 == start) return GL_FALSE; - end = start + _glewStrLen(start); - return _glewSearchExtension(name, start, end); -} - -GLenum eglewInit (EGLDisplay display) -{ - EGLint major, minor; - const GLubyte* extStart; - const GLubyte* extEnd; - PFNEGLINITIALIZEPROC initialize = NULL; - PFNEGLQUERYSTRINGPROC queryString = NULL; - - /* Load necessary entry points */ - initialize = (PFNEGLINITIALIZEPROC) glewGetProcAddress("eglInitialize"); - queryString = (PFNEGLQUERYSTRINGPROC) glewGetProcAddress("eglQueryString"); - if (!initialize || !queryString) - return 1; - - /* query EGK version */ - if (initialize(display, &major, &minor) != EGL_TRUE) - return 1; - - EGLEW_VERSION_1_5 = ( major > 1 ) || ( major == 1 && minor >= 5 ) ? GL_TRUE : GL_FALSE; - EGLEW_VERSION_1_4 = EGLEW_VERSION_1_5 == GL_TRUE || ( major == 1 && minor >= 4 ) ? GL_TRUE : GL_FALSE; - EGLEW_VERSION_1_3 = EGLEW_VERSION_1_4 == GL_TRUE || ( major == 1 && minor >= 3 ) ? GL_TRUE : GL_FALSE; - EGLEW_VERSION_1_2 = EGLEW_VERSION_1_3 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE; - EGLEW_VERSION_1_1 = EGLEW_VERSION_1_2 == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE; - EGLEW_VERSION_1_0 = EGLEW_VERSION_1_1 == GL_TRUE || ( major == 1 && minor >= 0 ) ? GL_TRUE : GL_FALSE; - - /* query EGL extension string */ - extStart = (const GLubyte*) queryString(display, EGL_EXTENSIONS); - if (extStart == 0) - extStart = (const GLubyte *)""; - extEnd = extStart + _glewStrLen(extStart); - - /* initialize extensions */ |