34 # include <GL/wglew.h>
35 #elif !defined(__ANDROID__) && !defined(__native_client__) && (!defined(__APPLE__) || defined(GLEW_APPLE_GLX))
36 # include <GL/glxew.h>
41 #if defined(__APPLE__)
42 #include <mach-o/dyld.h>
51 symbolName =
malloc(strlen((
const char*)name) + 2);
52 strcpy(symbolName+1, (
const char*)name);
55 if (NSIsSymbolNameDefined(symbolName))
56 symbol = NSLookupAndBindSymbol(symbolName);
58 return symbol ? NSAddressOfSymbol(symbol) :
NULL;
62 #if defined(__sgi) || defined (__sun)
67 void* dlGetProcAddress (
const GLubyte* name)
69 static void*
h =
NULL;
74 if ((h = dlopen(
NULL, RTLD_LAZY | RTLD_LOCAL)) ==
NULL)
return NULL;
75 gpa = dlsym(h,
"glXGetProcAddress");
81 return dlsym(h, (
const char*)name);
93 while (s+i !=
NULL && s[i] !=
'\0') i++;
100 while (s+i !=
NULL && s[i] !=
'\0' && s[i] != c) i++;
107 while (i < n && a+i !=
NULL && b+i !=
NULL && a[i] == b[i]) i++;
113 while (*na > 0 && (**a ==
' ' || **a ==
'\n' || **a ==
'\r' || **a ==
'\t'))
121 while (i < nb && *a+i !=
NULL && b+i !=
NULL && *a[i] == b[i]) i++;
137 while (i < nb && *a+i !=
NULL && b+i !=
NULL && *a[i] == b[i]) i++;
153 while (i < nb && *a+i !=
NULL && b+i !=
NULL && *a[i] == b[i]) i++;
154 if (i == nb && (*na == nb || *a[i] ==
' ' || *a[i] ==
'\n' || *a[i] ==
'\r' || *a[i] ==
'\t'))
GLfloat GLfloat GLfloat GLfloat h
GLboolean GLboolean GLboolean GLboolean a
EGLImageKHR EGLint * name
static GLuint _glewStrCLen(const GLubyte *s, GLubyte c)
static GLboolean _glewStrSame(const GLubyte *a, const GLubyte *b, GLuint n)
static GLboolean _glewStrSame1(GLubyte **a, GLuint *na, const GLubyte *b, GLuint nb)
static GLuint _glewStrLen(const GLubyte *s)
static GLboolean _glewStrSame2(GLubyte **a, GLuint *na, const GLubyte *b, GLuint nb)
GLdouble GLdouble GLdouble b
GLboolean _glewStrSame3(GLubyte **a, GLuint *na, const GLubyte *b, GLuint nb)