GLXGETPROCADDRESS(3gl)GLXGETPROCADDRESS(3gl)NAMEglXGetProcAddress - return the address of a specified GLX or GL exten‐
sion function
C SPECIFICATION
void glXGetProcAddress(const ubyte *procName)()
PARAMETERS
procName Specifies the OpenGL extension function name.
DESCRIPTION
The GL and GLX extensions which are available to a client application
may vary at runtime. Therefore, the address of extension functions may
be queried at runtime. The function glXGetProcAddress returns the
address of the extension function named by procName. The pointer
returned should be cast to a function pointer type matching the exten‐
sion function's definition in that extension specification. A return
value of NULL indicates that the specified function does not exist for
the implementation.
A non-NULL return value for glXGetProcAddress does not guarantee that
an extension function is actually supported at runtime. The client must
also query glGetString(GL_EXTENSIONS) or glXQueryExtensionsString to
determine if an extension is supported by a particular context.
GL function pointers returned by glXGetProcAddress are independent of
the currently bound context and may be used by any context which sup‐
ports the extension.
glXGetProcAddress may be queried for all GL and GLX extension functions
supported by the implementation (whether those extensions are supported
by the current context or not), and for all core (non-extension) func‐
tions in GL and GLX from version 1.0 up to and including the versions
of those specifications supported by the implementation, as determined
by glGetString(GL_VERSION) and glXQueryVersion queries.
25 Sep 02 GLXGETPROCADDRESS(3gl)