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">eglGetCurrentDisplay - 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="eglGetCurrentDisplay"> 1102f4aeb0Sopenharmony_ci <div class="titlepage"/> 1202f4aeb0Sopenharmony_ci <div class="refnamediv"> 1302f4aeb0Sopenharmony_ci <h2>Name</h2> 1402f4aeb0Sopenharmony_ci <p>eglGetCurrentDisplay — 1502f4aeb0Sopenharmony_ci return the display for the current <abbr class="acronym">EGL</abbr> rendering context 1602f4aeb0Sopenharmony_ci </p> 1702f4aeb0Sopenharmony_ci </div> 1802f4aeb0Sopenharmony_ci <div class="refsynopsisdiv"> 1902f4aeb0Sopenharmony_ci <h2>C Specification</h2> 2002f4aeb0Sopenharmony_ci <div class="funcsynopsis"> 2102f4aeb0Sopenharmony_ci <table style="border: 0; cellspacing: 0; cellpadding: 0;" class="funcprototype-table"> 2202f4aeb0Sopenharmony_ci <tr> 2302f4aeb0Sopenharmony_ci <td> 2402f4aeb0Sopenharmony_ci <code class="funcdef">EGLDisplay <strong class="fsfunc">eglGetCurrentDisplay</strong>(</code> 2502f4aeb0Sopenharmony_ci </td> 2602f4aeb0Sopenharmony_ci <td><code>void)</code>;</td> 2702f4aeb0Sopenharmony_ci <td> </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="description"> 3402f4aeb0Sopenharmony_ci <h2>Description</h2> 3502f4aeb0Sopenharmony_ci <p> 3602f4aeb0Sopenharmony_ci <code class="function">eglGetCurrentDisplay</code> returns the current 3702f4aeb0Sopenharmony_ci <abbr class="acronym">EGL</abbr> display connection for the current 3802f4aeb0Sopenharmony_ci <abbr class="acronym">EGL</abbr> rendering context, as specified by 3902f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>. 4002f4aeb0Sopenharmony_ci If no context is current, <code class="constant">EGL_NO_DISPLAY</code> is returned. 4102f4aeb0Sopenharmony_ci </p> 4202f4aeb0Sopenharmony_ci </div> 4302f4aeb0Sopenharmony_ci <div class="refsect1" id="errors"> 4402f4aeb0Sopenharmony_ci <h2>Errors</h2> 4502f4aeb0Sopenharmony_ci <p> 4602f4aeb0Sopenharmony_ci Passing <code class="constant">EGL_NO_DISPLAY</code> to any command 4702f4aeb0Sopenharmony_ci taking an <span class="type">EGLDisplay</span> parameter will generate either 4802f4aeb0Sopenharmony_ci an <code class="constant">EGL_BAD_DISPLAY</code> error if the EGL 4902f4aeb0Sopenharmony_ci implementation validates <span class="type">EGLDisplay</span> handles, or 5002f4aeb0Sopenharmony_ci undefined behavior as described at the end of section 3.1 of the 5102f4aeb0Sopenharmony_ci EGL 1.5 Specification. The only exception to this rule is that 5202f4aeb0Sopenharmony_ci <code class="function">eglQueryString</code> will accept an 5302f4aeb0Sopenharmony_ci <span class="type">EGLDisplay</span> parameter of 5402f4aeb0Sopenharmony_ci <code class="constant">EGL_NO_DISPLAY</code> when querying the client 5502f4aeb0Sopenharmony_ci extension string (see section 3.3 of the EGL 1.5 Specification). 5602f4aeb0Sopenharmony_ci </p> 5702f4aeb0Sopenharmony_ci </div> 5802f4aeb0Sopenharmony_ci <div class="refsect1" id="seealso"> 5902f4aeb0Sopenharmony_ci <h2>See Also</h2> 6002f4aeb0Sopenharmony_ci <p> 6102f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglGetDisplay.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetDisplay</span></span></a>, 6202f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglInitialize.xhtml"><span class="citerefentry"><span class="refentrytitle">eglInitialize</span></span></a>, 6302f4aeb0Sopenharmony_ci <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> </p> 6402f4aeb0Sopenharmony_ci </div> 6502f4aeb0Sopenharmony_ci <p> 6602f4aeb0Sopenharmony_ci </p> 6702f4aeb0Sopenharmony_ci <div class="refsect3" id="copyright"> 6802f4aeb0Sopenharmony_ci <img src="KhronosLogo.jpg"/> 6902f4aeb0Sopenharmony_ci <p> 7002f4aeb0Sopenharmony_ci Copyright © 2003-2014 The Khronos Group Inc. 7102f4aeb0Sopenharmony_ci Permission is hereby granted, free of charge, to any person obtaining a 7202f4aeb0Sopenharmony_ci copy of this software and/or associated documentation files (the 7302f4aeb0Sopenharmony_ci "Materials"), to deal in the Materials without restriction, including 7402f4aeb0Sopenharmony_ci without limitation the rights to use, copy, modify, merge, publish, 7502f4aeb0Sopenharmony_ci distribute, sublicense, and/or sell copies of the Materials, and to 7602f4aeb0Sopenharmony_ci permit persons to whom the Materials are furnished to do so, subject to 7702f4aeb0Sopenharmony_ci the condition that this copyright notice and permission notice shall be included 7802f4aeb0Sopenharmony_ci in all copies or substantial portions of the Materials. 7902f4aeb0Sopenharmony_ci </p> 8002f4aeb0Sopenharmony_ci </div> 8102f4aeb0Sopenharmony_ci <p> 8202f4aeb0Sopenharmony_ci</p> 8302f4aeb0Sopenharmony_ci </div> 8402f4aeb0Sopenharmony_ci <footer/> 8502f4aeb0Sopenharmony_ci </body> 8602f4aeb0Sopenharmony_ci</html> 87