102f4aeb0Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
202f4aeb0Sopenharmony_ci<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
302f4aeb0Sopenharmony_ci                            "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
402f4aeb0Sopenharmony_ci<refentry xml:base="" id="eglGetProcAddress">
502f4aeb0Sopenharmony_ci    <refentryinfo>
602f4aeb0Sopenharmony_ci         <copyright>
702f4aeb0Sopenharmony_ci             <year>2003-2014</year>
802f4aeb0Sopenharmony_ci             <holder>The Khronos Group Inc.</holder>
902f4aeb0Sopenharmony_ci         </copyright>
1002f4aeb0Sopenharmony_ci    </refentryinfo>
1102f4aeb0Sopenharmony_ci    <refmeta>
1202f4aeb0Sopenharmony_ci        <refentrytitle>eglGetProcAddress</refentrytitle>
1302f4aeb0Sopenharmony_ci        <manvolnum>3G</manvolnum>
1402f4aeb0Sopenharmony_ci    </refmeta>
1502f4aeb0Sopenharmony_ci    <refnamediv>
1602f4aeb0Sopenharmony_ci        <refname>eglGetProcAddress</refname>
1702f4aeb0Sopenharmony_ci        <refpurpose>
1802f4aeb0Sopenharmony_ci            return a <acronym>GL</acronym> or an <acronym>EGL</acronym>
1902f4aeb0Sopenharmony_ci            extension function
2002f4aeb0Sopenharmony_ci        </refpurpose>
2102f4aeb0Sopenharmony_ci    </refnamediv>
2202f4aeb0Sopenharmony_ci    <refsynopsisdiv>
2302f4aeb0Sopenharmony_ci        <title>C Specification</title>
2402f4aeb0Sopenharmony_ci        <funcsynopsis>
2502f4aeb0Sopenharmony_ci            <funcprototype>
2602f4aeb0Sopenharmony_ci                <funcdef>void (* <function>eglGetProcAddress</function>)()</funcdef>
2702f4aeb0Sopenharmony_ci                <paramdef>char const * <parameter>procname</parameter></paramdef>
2802f4aeb0Sopenharmony_ci            </funcprototype>
2902f4aeb0Sopenharmony_ci        </funcsynopsis>
3002f4aeb0Sopenharmony_ci    </refsynopsisdiv>
3102f4aeb0Sopenharmony_ci    <refsect1 id="parameters"><title>Parameters</title>
3202f4aeb0Sopenharmony_ci        <variablelist>
3302f4aeb0Sopenharmony_ci            <varlistentry>
3402f4aeb0Sopenharmony_ci                <term><parameter>procname</parameter></term>
3502f4aeb0Sopenharmony_ci                <listitem>
3602f4aeb0Sopenharmony_ci                    <para>
3702f4aeb0Sopenharmony_ci                        Specifies the name of the function to return.
3802f4aeb0Sopenharmony_ci                    </para>
3902f4aeb0Sopenharmony_ci                </listitem>
4002f4aeb0Sopenharmony_ci            </varlistentry>
4102f4aeb0Sopenharmony_ci        </variablelist>
4202f4aeb0Sopenharmony_ci    </refsect1>
4302f4aeb0Sopenharmony_ci    <refsect1 id="description"><title>Description</title>
4402f4aeb0Sopenharmony_ci        <para>
4502f4aeb0Sopenharmony_ci            <function>eglGetProcAddress</function> returns the address of
4602f4aeb0Sopenharmony_ci            the extension function named by <parameter>procname</parameter>.
4702f4aeb0Sopenharmony_ci            <parameter>procname</parameter>
4802f4aeb0Sopenharmony_ci            must be a null-terminated string. The pointer returned
4902f4aeb0Sopenharmony_ci            should be cast to a function pointer type matching the extension
5002f4aeb0Sopenharmony_ci            function's definition in that extension specification. A return value
5102f4aeb0Sopenharmony_ci            of <constant>NULL</constant> indicates that the specific
5202f4aeb0Sopenharmony_ci            function does not exist for the <acronym>EGL</acronym> implementation.
5302f4aeb0Sopenharmony_ci        </para>
5402f4aeb0Sopenharmony_ci        <para>
5502f4aeb0Sopenharmony_ci            A non-<constant>NULL</constant> return value does not guarantee
5602f4aeb0Sopenharmony_ci            that an extension function is actually supported at runtime. The client
5702f4aeb0Sopenharmony_ci            must also query
5802f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glGetString</refentrytitle></citerefentry>(<constant>GL_EXTENSIONS</constant>) or
5902f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglQueryString</refentrytitle></citerefentry>(<parameter>display</parameter>,
6002f4aeb0Sopenharmony_ci            <constant>EGL_EXTENSIONS</constant>) to determine if an
6102f4aeb0Sopenharmony_ci            extension is supported by a particular context or display.
6202f4aeb0Sopenharmony_ci        </para>
6302f4aeb0Sopenharmony_ci        <para>
6402f4aeb0Sopenharmony_ci            Function pointers returned by
6502f4aeb0Sopenharmony_ci            <function>eglGetProcAddress</function> are independent of the
6602f4aeb0Sopenharmony_ci            display and the currently bound context and may be used by any context
6702f4aeb0Sopenharmony_ci            which supports the extension.
6802f4aeb0Sopenharmony_ci        </para>
6902f4aeb0Sopenharmony_ci        <para>
7002f4aeb0Sopenharmony_ci            <function>eglGetProcAddress</function> may be queried for all
7102f4aeb0Sopenharmony_ci            <acronym>GL</acronym> and <acronym>EGL</acronym> extension functions.
7202f4aeb0Sopenharmony_ci        </para>
7302f4aeb0Sopenharmony_ci    </refsect1>
7402f4aeb0Sopenharmony_ci    <refsect1 id="seealso"><title>See Also</title>
7502f4aeb0Sopenharmony_ci        <para>
7602f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>glGetString</refentrytitle></citerefentry>,
7702f4aeb0Sopenharmony_ci            <citerefentry><refentrytitle>eglQueryString</refentrytitle></citerefentry>    </para>
7802f4aeb0Sopenharmony_ci    </refsect1>
7902f4aeb0Sopenharmony_ci    <refsect3 id="Copyright"><title></title>
8002f4aeb0Sopenharmony_ci        <!-- Content included from copyright.inc.xsl -->
8102f4aeb0Sopenharmony_ci        <imageobject>
8202f4aeb0Sopenharmony_ci                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
8302f4aeb0Sopenharmony_ci        </imageobject>
8402f4aeb0Sopenharmony_ci        <para />
8502f4aeb0Sopenharmony_ci    </refsect3>
8602f4aeb0Sopenharmony_ci</refentry>
87