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">eglGetCurrentSurface - 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="eglGetCurrentSurface"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglGetCurrentSurface — 15 return the read or draw surface 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">EGLSurface <strong class="fsfunc">eglGetCurrentSurface</strong>(</code> 25 </td> 26 <td>EGLint <var class="pdparam">readdraw</var><code>)</code>;</td> 27 </tr> 28 </table> 29 <div class="funcprototype-spacer"> </div> 30 </div> 31 </div> 32 <div class="refsect1" id="parameters"> 33 <h2>Parameters</h2> 34 <div class="variablelist"> 35 <dl class="variablelist"> 36 <dt> 37 <span class="term"> 38 <em class="parameter"> 39 <code>readdraw</code> 40 </em> 41 </span> 42 </dt> 43 <dd> 44 <p> 45 Specifies whether to return the read surface 46 (<code class="constant">EGL_READ</code>) or the draw surface 47 (<code class="constant">EGL_DRAW</code>). 48 </p> 49 </dd> 50 </dl> 51 </div> 52 </div> 53 <div class="refsect1" id="description"> 54 <h2>Description</h2> 55 <p> 56 <code class="function">eglGetCurrentSurface</code> returns the read or draw 57 surface attached to the current 58 <abbr class="acronym">EGL</abbr> rendering context, as specified by 59 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>. 60 If no context is current, <code class="constant">EGL_NO_SURFACE</code> is returned. 61 </p> 62 </div> 63 <div class="refsect1" id="seealso"> 64 <h2>See Also</h2> 65 <p> 66 <a class="citerefentry" href="eglCreatePbufferSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePbufferSurface</span></span></a>, 67 <a class="citerefentry" href="eglCreatePixmapSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePixmapSurface</span></span></a>, 68 <a class="citerefentry" href="eglCreateWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreateWindowSurface</span></span></a>, 69 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a> </p> 70 </div> 71 <p> 72 </p> 73 <div class="refsect3" id="copyright"> 74 <img src="KhronosLogo.jpg"/> 75 <p> 76 Copyright © 2003-2014 The Khronos Group Inc. 77 Permission is hereby granted, free of charge, to any person obtaining a 78 copy of this software and/or associated documentation files (the 79 "Materials"), to deal in the Materials without restriction, including 80 without limitation the rights to use, copy, modify, merge, publish, 81 distribute, sublicense, and/or sell copies of the Materials, and to 82 permit persons to whom the Materials are furnished to do so, subject to 83 the condition that this copyright notice and permission notice shall be included 84 in all copies or substantial portions of the Materials. 85 </p> 86 </div> 87 <p> 88</p> 89 </div> 90 <footer/> 91 </body> 92</html> 93