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">eglCreateWindowSurface - 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="eglCreateWindowSurface"> 11 <div class="titlepage"/> 12 <div class="refnamediv"> 13 <h2>Name</h2> 14 <p>eglCreateWindowSurface — 15 create a new <abbr class="acronym">EGL</abbr> window surface 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">eglCreateWindowSurface</strong>(</code> 25 </td> 26 <td>EGLDisplay <var class="pdparam">display</var>, </td> 27 </tr> 28 <tr> 29 <td> </td> 30 <td>EGLConfig <var class="pdparam">config</var>, </td> 31 </tr> 32 <tr> 33 <td> </td> 34 <td>NativeWindowType <var class="pdparam">native_window</var>, </td> 35 </tr> 36 <tr> 37 <td> </td> 38 <td>EGLint const * <var class="pdparam">attrib_list</var><code>)</code>;</td> 39 </tr> 40 </table> 41 <div class="funcprototype-spacer"> </div> 42 </div> 43 </div> 44 <div class="refsect1" id="parameters"> 45 <h2>Parameters</h2> 46 <div class="variablelist"> 47 <dl class="variablelist"> 48 <dt> 49 <span class="term"> 50 <em class="parameter"> 51 <code>display</code> 52 </em> 53 </span> 54 </dt> 55 <dd> 56 <p>Specifies the EGL display connection.</p> 57 </dd> 58 <dt> 59 <span class="term"> 60 <em class="parameter"> 61 <code>config</code> 62 </em> 63 </span> 64 </dt> 65 <dd> 66 <p>Specifies the EGL frame buffer configuration that defines the 67 frame buffer resource available to the surface.</p> 68 </dd> 69 <dt> 70 <span class="term"> 71 <em class="parameter"> 72 <code>native_window</code> 73 </em> 74 </span> 75 </dt> 76 <dd> 77 <p>Specifies the native window.</p> 78 </dd> 79 <dt> 80 <span class="term"> 81 <em class="parameter"> 82 <code>attrib_list</code> 83 </em> 84 </span> 85 </dt> 86 <dd> 87 <p> 88 Specifies window surface attributes. 89 May be <code class="constant">NULL</code> or empty 90 (first attribute is <code class="constant">EGL_NONE</code>). 91 </p> 92 </dd> 93 </dl> 94 </div> 95 </div> 96 <div class="refsect1" id="description"> 97 <h2>Description</h2> 98 <p> 99 <code class="function">eglCreateWindowSurface</code> creates an on-screen 100 EGL window surface and returns a handle to it. The behavior of 101 <code class="function">eglCreateWindowSurface</code> is identical to that 102 of 103 <a class="citerefentry" href="eglCreatePlatformWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePlatformWindowSurface</span></span></a> 104 except that the set of platforms to which 105 <em class="parameter"><code>display</code></em> is permitted to belong, as well 106 as the actual type of <em class="parameter"><code>native_window</code></em>, are 107 implementation specific. 108 </p> 109 </div> 110 <div class="refsect1" id="errors"> 111 <h2>Errors</h2> 112 <p> 113 See errors for 114 <a class="citerefentry" href="eglCreatePlatformWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePlatformWindowSurface</span></span></a>. 115 </p> 116 </div> 117 <div class="refsect1" id="seealso"> 118 <h2>See Also</h2> 119 <p> 120 <a class="citerefentry" href="eglCreatePlatformWindowSurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglCreatePlatformWindowSurface</span></span></a>, 121 <a class="citerefentry" href="eglDestroySurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglDestroySurface</span></span></a>, 122 <a class="citerefentry" href="eglChooseConfig.xhtml"><span class="citerefentry"><span class="refentrytitle">eglChooseConfig</span></span></a>, 123 <a class="citerefentry" href="eglGetConfigs.xhtml"><span class="citerefentry"><span class="refentrytitle">eglGetConfigs</span></span></a>, 124 <a class="citerefentry" href="eglMakeCurrent.xhtml"><span class="citerefentry"><span class="refentrytitle">eglMakeCurrent</span></span></a>, 125 <a class="citerefentry" href="eglQuerySurface.xhtml"><span class="citerefentry"><span class="refentrytitle">eglQuerySurface</span></span></a> 126 </p> 127 </div> 128 <p> 129 </p> 130 <div class="refsect3" id="copyright"> 131 <img src="KhronosLogo.jpg"/> 132 <p> 133 Copyright © 2003-2014 The Khronos Group Inc. 134 Permission is hereby granted, free of charge, to any person obtaining a 135 copy of this software and/or associated documentation files (the 136 "Materials"), to deal in the Materials without restriction, including 137 without limitation the rights to use, copy, modify, merge, publish, 138 distribute, sublicense, and/or sell copies of the Materials, and to 139 permit persons to whom the Materials are furnished to do so, subject to 140 the condition that this copyright notice and permission notice shall be included 141 in all copies or substantial portions of the Materials. 142 </p> 143 </div> 144 <p> 145</p> 146 </div> 147 <footer/> 148 </body> 149</html> 150