• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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">eglGetCurrentDisplay - EGL Reference Pages</title>
5    <link rel="stylesheet" type="text/css" href="khronos-man.css"/>
6    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1"/>
7  </head>
8  <body>
9    <header/>
10    <div class="refentry" id="eglGetCurrentDisplay">
11      <div class="titlepage"/>
12      <div class="refnamediv">
13        <h2>Name</h2>
14        <p>eglGetCurrentDisplay —
15            return the display for the current <abbr class="acronym">EGL</abbr> rendering context
16        </p>
17      </div>
18      <div class="refsynopsisdiv">
19        <h2>C Specification</h2>
20        <div class="funcsynopsis">
21          <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table">
22            <tr>
23              <td>
24                <code class="funcdef">EGLDisplay <strong class="fsfunc">eglGetCurrentDisplay</strong>(</code>
25              </td>
26              <td><code>void)</code>;</td>
27              <td> </td>
28            </tr>
29          </table>
30          <div class="funcprototype-spacer"> </div>
31        </div>
32      </div>
33      <div class="refsect1" id="description">
34        <h2>Description</h2>
35        <p>
36            <code class="function">eglGetCurrentDisplay</code> returns the current
37            <abbr class="acronym">EGL</abbr> display connection for the current
38            <abbr class="acronym">EGL</abbr> rendering context, as specified by
39            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>.
40            If no context is current, <code class="constant">EGL_NO_DISPLAY</code> is returned.
41        </p>
42      </div>
43      <div class="refsect1" id="errors">
44        <h2>Errors</h2>
45        <p>
46            Passing <code class="constant">EGL_NO_DISPLAY</code> to any command
47            taking an <span class="type">EGLDisplay</span> parameter will generate either
48            an <code class="constant">EGL_BAD_DISPLAY</code> error if the EGL
49            implementation validates <span class="type">EGLDisplay</span> handles, or
50            undefined behavior as described at the end of section 3.1 of the
51            EGL 1.5 Specification. The only exception to this rule is that
52            <code class="function">eglQueryString</code> will accept an
53            <span class="type">EGLDisplay</span> parameter of
54            <code class="constant">EGL_NO_DISPLAY</code> when querying the client
55            extension string (see section 3.3 of the EGL 1.5 Specification).
56        </p>
57      </div>
58      <div class="refsect1" id="seealso">
59        <h2>See Also</h2>
60        <p>
61            <a class="citerefentry" href="eglGetDisplay.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetDisplay</span></span></a>,
62            <a class="citerefentry" href="eglInitialize.xhtml"><span class="citerefentry"><span class="refentrytitle">eglInitialize</span></span></a>,
63            <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>    </p>
64      </div>
65      <p>
66    </p>
67      <div class="refsect3" id="copyright">
68        <img src="KhronosLogo.jpg"/>
69        <p>
70            Copyright © 2003-2014 The Khronos Group Inc.
71            Permission is hereby granted, free of charge, to any person obtaining a
72            copy of this software and/or associated documentation files (the
73            "Materials"), to deal in the Materials without restriction, including
74            without limitation the rights to use, copy, modify, merge, publish,
75            distribute, sublicense, and/or sell copies of the Materials, and to
76            permit persons to whom the Materials are furnished to do so, subject to
77            the condition that this copyright notice and permission notice shall be included
78            in all copies or substantial portions of the Materials.
79        </p>
80      </div>
81      <p>
82</p>
83    </div>
84    <footer/>
85  </body>
86</html>
87