blob: 858328068cdf342ef4181af4b75b251f747ab266 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html><html xmlns="">
<title xmlns:xlink="">eglGetProcAddress - EGL Reference Pages</title>
<link rel="stylesheet" type="text/css" href="khronos-man.css"/>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
<div class="refentry" id="eglGetProcAddress">
<div class="titlepage"/>
<div class="refnamediv">
<p>eglGetProcAddress —
return a <abbr class="acronym">GL</abbr> or an <abbr class="acronym">EGL</abbr>
extension function
<div class="refsynopsisdiv">
<h2>C Specification</h2>
<div class="funcsynopsis">
<table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
<code class="funcdef">void (* <strong class="fsfunc">eglGetProcAddress</strong>(</code>
<td>char const * <var class="pdparam">procname</var>))(void<code>)</code>;</td>
<div class="funcprototype-spacer"> </div>
<div class="refsect1" id="parameters">
<div class="variablelist">
<dl class="variablelist">
<span class="term">
<em class="parameter">
Specifies the name of the function to return.
<div class="refsect1" id="description">
<code class="function">eglGetProcAddress</code> returns the address of
the client API or EGL function named by
<em class="parameter"><code>procname</code></em>. <em class="parameter"><code>procname</code></em>
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 <code class="constant">NULL</code> indicates that the specific
function does not exist for the implementation.
A non-<code class="constant">NULL</code> return value does not guarantee
that an extension function is actually supported at runtime. The
client must also make a corresponding query, such as
<code class="function">glGetString</code>(<code class="constant">GL_EXTENSIONS</code>)
for OpenGL and OpenGL ES extensions;
<code class="function">vgGetString</code>(<code class="constant">VG_EXTENSIONS</code>)
for OpenVG extensions;
<code class="function">eglQueryString</code>(<em class="parameter"><code>display</code></em>,
<code class="constant">EGL_EXTENSIONS</code>); 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
<code class="function">eglGetProcAddress</code> 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.
<code class="function">eglGetProcAddress</code> 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
<code class="function">eglGetProcAddress</code>, implementations may
choose to also export those functions statically from the object
libraries implementing those functions. However, portable
clients cannot rely on this behavior.
<div class="refsect1" id="notes">
If the EGL version is not 1.5 or greater, only queries of EGL
and client API <span class="emphasis"><em>extension</em></span> functions will
<div class="refsect1" id="seealso">
<h2>See Also</h2>
<code class="function">glGetString</code>
<a class="citerefentry" href="eglQueryString.xhtml"><span class="citerefentry"><span class="refentrytitle">eglQueryString</span></span></a> </p>
<code class="function">vgGetString</code>
<div class="refsect3" id="copyright">
<img src="KhronosLogo.jpg"/>
Copyright © 2003-2014 The Khronos Group Inc.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and/or associated documentation files (the
"Materials"), to deal in the Materials without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Materials, and to
permit persons to whom the Materials are furnished to do so, subject to
the condition that this copyright notice and permission notice shall be included
in all copies or substantial portions of the Materials.