waffle_get_proc_address(3)
waffle_get_proc_address – Query address of OpenGL functions
Synopsis
#include <waffle.h>
void *waffle_get_proc_address(const char *name);Description
waffle_get_proc_address()
- On GLX, this redirects to
glXGetProcAddress(3). On EGL, this redirects toeglGetProcAddress(3). On CGL, this function returnsNULLbecause there exists noCGLGetProcAdress(). On WGL, this redirects towglGetProcAddress(3). - • If the queried function is not available,
waffle_get_proc_address()may return a non-null pointer. - • If the queried function is statically exposed by the OpenGL library of a given API, then
waffle_get_proc_address()may return aNULL. - • Under Windows (WGL) a current context must be available before executing the function. Otherwise
waffle_get_proc_address()may return aNULL.
Some aspects of this function’s behavior are platform-specific and non-intuitive. For example,
For details on this function’s behavior, see the specification for the relevant platform: the m[blue]GLX 1.4 Specificationm[][1] the m[blue]EGL 1.4 Specificationm[][2] or the m[blue]MSDN articlem[][3].
Errors
See waffle_error(3) for the complete list of waffle’s error codes.
No errors are specific to any functions listed in this manual page.
Issues
Please report bugs or and feature requests to m[blue]https://github.com/waffle-gl/waffle/issuesm[].
See Also
waffle(7), waffle_dl_sym(3)
Author
Chad Versace <chad.versace [at] linux.intel.com>
- Maintainer
Copyright
Copyright © 2013 Intel
This manual page is licensed under the Creative Commons Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To view a copy of this license, visit m[blue]http://creativecommons.org.license/by-sa/3.0/usm[].
Notes
- 1.
- GLX 1.4 Specification
- http://www.opengl.org/registry/doc/glx1.4.pdf
- 2.
- EGL 1.4 Specification
- http://www.khronos.org/registry/egl/specs/eglspec.1.4.20110406.pdf
- 3.
- MSDN article
- http://msdn.microsoft.com/en-gb/library/windows/desktop/dd374386(v=vs.85).aspx