1<?xml version="1.0" encoding="UTF-8" standalone="no"?> 2<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title xmlns:xlink="http://www.w3.org/1999/xlink">eglGetProcAddress - EGL Reference Pages</title> 5 <link rel="stylesheet" type="text/css" href="khronos-man.css"/> 6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1"/> 7 </head> 8 <body> 9 <header/> 10 <div class="refentry" id="eglGetProcAddress"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglGetProcAddress — 15 return a <abbr class="acronym">GL</abbr> or an <abbr class="acronym">EGL</abbr> 16 extension function 17 </p> 18 </div> 19 <div class="refsynopsisdiv"> 20 <h2>C Specification</h2> 21 <div class="funcsynopsis"> 22 <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> 23 <tr> 24 <td> 25 <code class="funcdef">void (* <strong class="fsfunc">eglGetProcAddress</strong>)()(</code> 26 </td> 27 <td>char const * <var class="pdparam">procname</var><code>)</code>;</td> 28 </tr> 29 </table> 30 <div class="funcprototype-spacer"> </div> 31 </div> 32 </div> 33 <div class="refsect1" id="parameters"> 34 <h2>Parameters</h2> 35 <div class="variablelist"> 36 <dl class="variablelist"> 37 <dt> 38 <span class="term"> 39 <em class="parameter"> 40 <code>procname</code> 41 </em> 42 </span> 43 </dt> 44 <dd> 45 <p> 46 Specifies the name of the function to return. 47 </p> 48 </dd> 49 </dl> 50 </div> 51 </div> 52 <div class="refsect1" id="description"> 53 <h2>Description</h2> 54 <p> 55 <code class="function">eglGetProcAddress</code> returns the address of 56 the extension function named by <em class="parameter"><code>procname</code></em>. 57 <em class="parameter"><code>procname</code></em> 58 must be a null-terminated string. The pointer returned 59 should be cast to a function pointer type matching the extension 60 function's definition in that extension specification. A return value 61 of <code class="constant">NULL</code> indicates that the specific 62 function does not exist for the <abbr class="acronym">EGL</abbr> implementation. 63 </p> 64 <p> 65 A non-<code class="constant">NULL</code> return value does not guarantee 66 that an extension function is actually supported at runtime. The client 67 must also query 68 <a class="citerefentry" href="glGetString.xhtml"><span class="citerefentry"><span class="refentrytitle">glGetString</span></span></a>(<code class="constant">GL_EXTENSIONS</code>) or 69 <a class="citerefentry" href="eglQueryString.xhtml"><span class="citerefentry"><span class="refentrytitle">eglQueryString</span></span></a>(<em class="parameter"><code>display</code></em>, 70 <code class="constant">EGL_EXTENSIONS</code>) to determine if an 71 extension is supported by a particular context or display. 72 </p> 73 <p> 74 Function pointers returned by 75 <code class="function">eglGetProcAddress</code> are independent of the 76 display and the currently bound context and may be used by any context 77 which supports the extension. 78 </p> 79 <p> 80 <code class="function">eglGetProcAddress</code> may be queried for all 81 <abbr class="acronym">GL</abbr> and <abbr class="acronym">EGL</abbr> extension functions. 82 </p> 83 </div> 84 <div class="refsect1" id="seealso"> 85 <h2>See Also</h2> 86 <p> 87 <a class="citerefentry" href="glGetString.xhtml"><span class="citerefentry"><span class="refentrytitle">glGetString</span></span></a>, 88 <a class="citerefentry" href="eglQueryString.xhtml"><span class="citerefentry"><span class="refentrytitle">eglQueryString</span></span></a> </p> 89 </div> 90 <p> 91 </p> 92 <div class="refsect3" id="copyright"> 93 <img src="KhronosLogo.jpg"/> 94 <p> 95 Copyright © 2003-2014 The Khronos Group Inc. 96 Permission is hereby granted, free of charge, to any person obtaining a 97 copy of this software and/or associated documentation files (the 98 "Materials"), to deal in the Materials without restriction, including 99 without limitation the rights to use, copy, modify, merge, publish, 100 distribute, sublicense, and/or sell copies of the Materials, and to 101 permit persons to whom the Materials are furnished to do so, subject to 102 the condition that this copyright notice and permission notice shall be included 103 in all copies or substantial portions of the Materials. 104 </p> 105 </div> 106 <p> 107</p> 108 </div> 109 <footer/> 110 </body> 111</html> 112