102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8" standalone="no"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml">
302f4aeb0Sopenharmony_ci  <head>
402f4aeb0Sopenharmony_ci    <title xmlns:xlink="http://www.w3.org/1999/xlink">eglGetProcAddress - EGL Reference Pages</title>
502f4aeb0Sopenharmony_ci    <link rel="stylesheet" type="text/css" href="khronos-man.css"/>
602f4aeb0Sopenharmony_ci    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
702f4aeb0Sopenharmony_ci  </head>
802f4aeb0Sopenharmony_ci  <body>
902f4aeb0Sopenharmony_ci    <header/>
1002f4aeb0Sopenharmony_ci    <div class="refentry" id="eglGetProcAddress">
1102f4aeb0Sopenharmony_ci      <div class="titlepage"/>
1202f4aeb0Sopenharmony_ci      <div class="refnamediv">
1302f4aeb0Sopenharmony_ci        <h2>Name</h2>
1402f4aeb0Sopenharmony_ci        <p>eglGetProcAddress — 
1502f4aeb0Sopenharmony_ci            return a <abbr class="acronym">GL</abbr> or an <abbr class="acronym">EGL</abbr>
1602f4aeb0Sopenharmony_ci            extension function
1702f4aeb0Sopenharmony_ci        </p>
1802f4aeb0Sopenharmony_ci      </div>
1902f4aeb0Sopenharmony_ci      <div class="refsynopsisdiv">
2002f4aeb0Sopenharmony_ci        <h2>C Specification</h2>
2102f4aeb0Sopenharmony_ci        <div class="funcsynopsis">
2202f4aeb0Sopenharmony_ci          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
2302f4aeb0Sopenharmony_ci            <tr>
2402f4aeb0Sopenharmony_ci              <td>
2502f4aeb0Sopenharmony_ci                <code class="funcdef">void (* <strong class="fsfunc">eglGetProcAddress</strong>(</code>
2602f4aeb0Sopenharmony_ci              </td>
2702f4aeb0Sopenharmony_ci              <td>char const * <var class="pdparam">procname</var>))(void<code>)</code>;</td>
2802f4aeb0Sopenharmony_ci            </tr>
2902f4aeb0Sopenharmony_ci          </table>
3002f4aeb0Sopenharmony_ci          <div class="funcprototype-spacer"> </div>
3102f4aeb0Sopenharmony_ci        </div>
3202f4aeb0Sopenharmony_ci      </div>
3302f4aeb0Sopenharmony_ci      <div class="refsect1" id="parameters">
3402f4aeb0Sopenharmony_ci        <h2>Parameters</h2>
3502f4aeb0Sopenharmony_ci        <div class="variablelist">
3602f4aeb0Sopenharmony_ci          <dl class="variablelist">
3702f4aeb0Sopenharmony_ci            <dt>
3802f4aeb0Sopenharmony_ci              <span class="term">
3902f4aeb0Sopenharmony_ci                <em class="parameter">
4002f4aeb0Sopenharmony_ci                  <code>procname</code>
4102f4aeb0Sopenharmony_ci                </em>
4202f4aeb0Sopenharmony_ci              </span>
4302f4aeb0Sopenharmony_ci            </dt>
4402f4aeb0Sopenharmony_ci            <dd>
4502f4aeb0Sopenharmony_ci              <p>
4602f4aeb0Sopenharmony_ci                        Specifies the name of the function to return.
4702f4aeb0Sopenharmony_ci                    </p>
4802f4aeb0Sopenharmony_ci            </dd>
4902f4aeb0Sopenharmony_ci          </dl>
5002f4aeb0Sopenharmony_ci        </div>
5102f4aeb0Sopenharmony_ci      </div>
5202f4aeb0Sopenharmony_ci      <div class="refsect1" id="description">
5302f4aeb0Sopenharmony_ci        <h2>Description</h2>
5402f4aeb0Sopenharmony_ci        <p>
5502f4aeb0Sopenharmony_ci            <code class="function">eglGetProcAddress</code> returns the address of
5602f4aeb0Sopenharmony_ci            the client API or EGL function named by
5702f4aeb0Sopenharmony_ci            <em class="parameter"><code>procname</code></em>. <em class="parameter"><code>procname</code></em>
5802f4aeb0Sopenharmony_ci            must be a null-terminated string. The pointer returned should be
5902f4aeb0Sopenharmony_ci            cast to a function pointer matching the function's definition in
6002f4aeb0Sopenharmony_ci            the corresponding API or extension specification. A return value
6102f4aeb0Sopenharmony_ci            of <code class="constant">NULL</code> indicates that the specific
6202f4aeb0Sopenharmony_ci            function does not exist for the implementation.
6302f4aeb0Sopenharmony_ci        </p>
6402f4aeb0Sopenharmony_ci        <p>
6502f4aeb0Sopenharmony_ci            A non-<code class="constant">NULL</code> return value does not guarantee
6602f4aeb0Sopenharmony_ci            that an extension function is actually supported at runtime. The
6702f4aeb0Sopenharmony_ci            client must also make a corresponding query, such as
6802f4aeb0Sopenharmony_ci            <code class="function">glGetString</code>(<code class="constant">GL_EXTENSIONS</code>)
6902f4aeb0Sopenharmony_ci            for OpenGL and OpenGL ES extensions;
7002f4aeb0Sopenharmony_ci            <code class="function">vgGetString</code>(<code class="constant">VG_EXTENSIONS</code>)
7102f4aeb0Sopenharmony_ci            for OpenVG extensions;
7202f4aeb0Sopenharmony_ci            <code class="function">eglQueryString</code>(<em class="parameter"><code>display</code></em>,
7302f4aeb0Sopenharmony_ci            <code class="constant">EGL_EXTENSIONS</code>); or query the EGL or client
7402f4aeb0Sopenharmony_ci            API version for non-extension functions, to determine if a
7502f4aeb0Sopenharmony_ci            function is supported by EGL or a specific client API context.
7602f4aeb0Sopenharmony_ci        </p>
7702f4aeb0Sopenharmony_ci        <p>
7802f4aeb0Sopenharmony_ci            Client API function pointers returned by
7902f4aeb0Sopenharmony_ci            <code class="function">eglGetProcAddress</code> are independent of the
8002f4aeb0Sopenharmony_ci            display and the currently bound client API context, and may be
8102f4aeb0Sopenharmony_ci            used by any client API context which supports the function.
8202f4aeb0Sopenharmony_ci        </p>
8302f4aeb0Sopenharmony_ci        <p>
8402f4aeb0Sopenharmony_ci            <code class="function">eglGetProcAddress</code> may be queried for all
8502f4aeb0Sopenharmony_ci            EGL and client API functions supported by the implementation
8602f4aeb0Sopenharmony_ci            (whether those functions are extensions or not, and whether they
8702f4aeb0Sopenharmony_ci            are supported by the current client API context or not).
8802f4aeb0Sopenharmony_ci        </p>
8902f4aeb0Sopenharmony_ci        <p>
9002f4aeb0Sopenharmony_ci            For functions that are queryable with
9102f4aeb0Sopenharmony_ci            <code class="function">eglGetProcAddress</code>, implementations may
9202f4aeb0Sopenharmony_ci            choose to also export those functions statically from the object
9302f4aeb0Sopenharmony_ci            libraries implementing those functions. However, portable
9402f4aeb0Sopenharmony_ci            clients cannot rely on this behavior.
9502f4aeb0Sopenharmony_ci        </p>
9602f4aeb0Sopenharmony_ci      </div>
9702f4aeb0Sopenharmony_ci      <div class="refsect1" id="notes">
9802f4aeb0Sopenharmony_ci        <h2>Notes</h2>
9902f4aeb0Sopenharmony_ci        <p>
10002f4aeb0Sopenharmony_ci            If the EGL version is not 1.5 or greater, only queries of EGL
10102f4aeb0Sopenharmony_ci            and client API <span class="emphasis"><em>extension</em></span> functions will
10202f4aeb0Sopenharmony_ci            succeed.
10302f4aeb0Sopenharmony_ci        </p>
10402f4aeb0Sopenharmony_ci      </div>
10502f4aeb0Sopenharmony_ci      <div class="refsect1" id="seealso">
10602f4aeb0Sopenharmony_ci        <h2>See Also</h2>
10702f4aeb0Sopenharmony_ci        <p>
10802f4aeb0Sopenharmony_ci            <code class="function">glGetString</code>
10902f4aeb0Sopenharmony_ci            <a class="citerefentry" href="eglQueryString.xhtml"><span class="citerefentry"><span class="refentrytitle">eglQueryString</span></span></a>    </p>
11002f4aeb0Sopenharmony_ci        <code class="function">vgGetString</code>
11102f4aeb0Sopenharmony_ci      </div>
11202f4aeb0Sopenharmony_ci      <p>
11302f4aeb0Sopenharmony_ci    </p>
11402f4aeb0Sopenharmony_ci      <div class="refsect3" id="copyright">
11502f4aeb0Sopenharmony_ci        <img src="KhronosLogo.jpg"/>
11602f4aeb0Sopenharmony_ci        <p>
11702f4aeb0Sopenharmony_ci            Copyright © 2003-2014 The Khronos Group Inc.
11802f4aeb0Sopenharmony_ci            Permission is hereby granted, free of charge, to any person obtaining a
11902f4aeb0Sopenharmony_ci            copy of this software and/or associated documentation files (the
12002f4aeb0Sopenharmony_ci            "Materials"), to deal in the Materials without restriction, including
12102f4aeb0Sopenharmony_ci            without limitation the rights to use, copy, modify, merge, publish,
12202f4aeb0Sopenharmony_ci            distribute, sublicense, and/or sell copies of the Materials, and to
12302f4aeb0Sopenharmony_ci            permit persons to whom the Materials are furnished to do so, subject to
12402f4aeb0Sopenharmony_ci            the condition that this copyright notice and permission notice shall be included
12502f4aeb0Sopenharmony_ci            in all copies or substantial portions of the Materials.
12602f4aeb0Sopenharmony_ci        </p>
12702f4aeb0Sopenharmony_ci      </div>
12802f4aeb0Sopenharmony_ci      <p>
12902f4aeb0Sopenharmony_ci</p>
13002f4aeb0Sopenharmony_ci    </div>
13102f4aeb0Sopenharmony_ci    <footer/>
13202f4aeb0Sopenharmony_ci  </body>
13302f4aeb0Sopenharmony_ci</html>
134