blob: a3d20b075a70bd1bca4a2f6629594a059ea483f5 [file] [log] [blame]
<refentry xmlns="" version="5.0" xml:base="" xml:id="eglGetProcAddress">
<holder>The Khronos Group Inc.</holder>
return a <acronym>GL</acronym> or an <acronym>EGL</acronym>
extension function
<title>C Specification</title>
<funcdef>void (* <function>eglGetProcAddress</function></funcdef>
<paramdef>char const * <parameter>procname</parameter>))(void</paramdef>
<refsect1 xml:id="parameters"><title>Parameters</title>
Specifies the name of the function to return.
<refsect1 xml:id="description"><title>Description</title>
<function>eglGetProcAddress</function> returns the address of
the client API or EGL function named by
<parameter>procname</parameter>. <parameter>procname</parameter>
must be a null-terminated string. The pointer returned should be
cast to a function pointer matching the function's definition in
the corresponding API or extension specification. A return value
of <constant>NULL</constant> indicates that the specific
function does not exist for the implementation.
A non-<constant>NULL</constant> return value does not guarantee
that an extension function is actually supported at runtime. The
client must also make a corresponding query, such as
for OpenGL and OpenGL ES extensions;
for OpenVG extensions;
<constant>EGL_EXTENSIONS</constant>); or query the EGL or client
API version for non-extension functions, to determine if a
function is supported by EGL or a specific client API context.
Client API function pointers returned by
<function>eglGetProcAddress</function> are independent of the
display and the currently bound client API context, and may be
used by any client API context which supports the function.
<function>eglGetProcAddress</function> may be queried for all
EGL and client API functions supported by the implementation
(whether those functions are extensions or not, and whether they
are supported by the current client API context or not).
For functions that are queryable with
<function>eglGetProcAddress</function>, implementations may
choose to also export those functions statically from the object
libraries implementing those functions. However, portable
clients cannot rely on this behavior.
<refsect1 xml:id="notes"><title>Notes</title>
If the EGL version is not 1.5 or greater, only queries of EGL
and client API <emphasis>extension</emphasis> functions will
<refsect1 xml:id="seealso"><title>See Also</title>
<citerefentry><refentrytitle>eglQueryString</refentrytitle></citerefentry> </para>
<xi:include xmlns:xi="" href="copyright.xml"/>