eglGetProcAddress — return a GL or an EGL extension function
void (* eglGetProcAddress)()( |
char const * procname) ; |
eglGetProcAddress
returns the address of the extension function named by procname
. procname
must be a null-terminated string. The pointer returned should be cast to a function pointer type matching the extension function's definition in that extension specification. A return value of NULL
indicates that the specific function does not exist for the EGL implementation.
A non-NULL
return value does not guarantee that an extension function is actually supported at runtime. The client must also query glGetString(GL_EXTENSIONS
) or eglQueryString(display
, EGL_EXTENSIONS
) to determine if an extension is supported by a particular context or display.
Function pointers returned by eglGetProcAddress
are independent of the display and the currently bound context and may be used by any context which supports the extension.
eglGetProcAddress
may be queried for all GL and EGL extension functions.
Copyright © 2003-2010 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.