to call in context. The caller is responsible for ensuring that the returned function is a valid function to call in context by either checking the OpenGL API and version or for an appropriate OpenGL extension.
GLContext.getProcAddress
void * getProcAddress(string name)Get a function pointer to a specified opengl function, name. If the the specific function does not exist, NULL is returned instead.
Platform specific functions (names starting 'egl', 'glX', 'wgl', etc) can also be retrieved using this method.
Note
This function may return valid function pointers that may not be valid
Note: On success, you need to cast the returned function pointer to the correct type to be able to call it correctly. On 32-bit Windows, this will include the GSTGLAPI identifier to use the correct calling convention. e.g.
void (GSTGLAPI *PFN_glGetIntegerv) (GLenum name, GLint * ret)Parameters
name | an opengl function name |
Returns
a function pointer or null