Lines Matching full:code
24 …<code class="funcdef">EGLSurface <strong class="fsfunc">eglCreatePlatformWindowSurface</strong>(</…
38 <td>EGLAttrib const * <var class="pdparam">attrib_list</var><code>)</code>;</td>
51 <code>display</code>
61 <code>config</code>
72 <code>native_window</code>
82 <code>attrib_list</code>
89 May be <code class="constant">NULL</code> or empty
90 (first attribute is <code class="constant">EGL_NONE</code>).
99 <code class="function">eglCreatePlatformWindowSurface</code> creates an
105 If <code class="function">eglCreatePlatformWindowSurface</code> fails to
106 create a window surface, <code class="constant">EGL_NO_SURFACE</code> is
110 <em class="parameter"><code>native_window</code></em> must belong to the same
111 platform as <em class="parameter"><code>display</code></em>, and EGL considers
114 <em class="parameter"><code>display</code></em> belongs also defines the
115 requirements for the <em class="parameter"><code>native_window</code></em>
121 <code class="constant">EGL_NONE</code>. Accepted attributes
128 <code class="constant">EGL_GL_COLORSPACE</code>
135 <code class="constant">EGL_GL_COLORSPACE_SRGB</code>, then a
138 <code class="constant">GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING</code>
139 value of <code class="constant">GL_SRGB</code>. If its value is
140 <code class="constant">EGL_GL_COLORSPACE_LINEAR</code>, then a
142 <code class="constant">GL_FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING</code>
143 value of <code class="constant">GL_LINEAR</code>. The default
144 value of <code class="constant">EGL_GL_COLORSPACE</code> is
145 <code class="constant">EGL_GL_COLORSPACE_LINEAR</code>.
148 Note that the <code class="constant">EGL_GL_COLORSPACE</code>
158 <code class="constant">EGL_RENDER_BUFFER</code>
165 <code class="constant">EGL_SINGLE_BUFFER</code>, then client
168 <code class="constant">EGL_BACK_BUFFER</code>, then client
170 value of <code class="constant">EGL_RENDER_BUFFER</code> is
171 <code class="constant">EGL_BACK_BUFFER</code>.
182 <code class="constant">EGL_VG_ALPHA_FORMAT</code>
189 <code class="constant">EGL_VG_ALPHA_FORMAT_NONPRE</code>,
191 is <code class="constant">EGL_VG_ALPHA_FORMAT_PRE</code>,
193 value of <code class="constant">EGL_VG_ALPHA_FORMAT</code> is
194 <code class="constant">EGL_VG_ALPHA_FORMAT_NONPRE</code>.
199 <code class="constant">EGL_VG_COLORSPACE</code>
206 <code class="constant">EGL_VG_COLORSPACE_sRGB</code>, then a
210 <code class="constant">VG_s*</code>. If its value is
211 <code class="constant">EGL_VG_COLORSPACE_LINEAR</code>, then
214 <code class="constant">VG_l*</code>. The default value of
215 <code class="constant">EGL_VG_COLORSPACE</code> is
216 <code class="constant">EGL_VG_COLORSPACE_sRGB</code>.
223 <em class="parameter"><code>config</code></em> can be used to render into the
231 to retrieve the ID of <em class="parameter"><code>config</code></em>.
242 Attribute <code class="constant">EGL_GL_COLORSPACE</code> is supported
246 Attributes <code class="constant">EGL_RENDER_BUFFER</code>,
247 <code class="constant">EGL_VG_ALPHA_FORMAT</code>, and
248 <code class="constant">EGL_VG_COLORSPACE</code>, and the
253 The <code class="constant">EGL_VG_ALPHA_FORMAT</code> and
254 <code class="constant">EGL_VG_COLORSPACE</code> attributes are used only
259 value of <code class="constant">EGL_VG_ALPHA_FORMAT</code> when
266 If <em class="parameter"><code>display</code></em> and
267 <em class="parameter"><code>native_window</code></em> do not belong to the same
271 <code class="constant">EGL_NO_SURFACE</code> is returned if creation of
275 <code class="constant">EGL_BAD_DISPLAY</code> is generated if
276 <em class="parameter"><code>display</code></em> is not an EGL display connection.
279 <code class="constant">EGL_NOT_INITIALIZED</code> is generated if
280 <em class="parameter"><code>display</code></em> has not been initialized.
283 <code class="constant">EGL_BAD_CONFIG</code> is generated if
284 <em class="parameter"><code>config</code></em> is not a valid EGL frame buffer
288 <code class="constant">EGL_BAD_NATIVE_WINDOW</code> may be generated if
289 <em class="parameter"><code>native_window</code></em> is not a valid native
290 window for the same platform as <em class="parameter"><code>display</code></em>.
293 <code class="constant">EGL_BAD_ATTRIBUTE</code> is generated if
294 <em class="parameter"><code>attrib_list</code></em> contains an invalid window attribute
298 <code class="constant">EGL_BAD_ALLOC</code> is generated if there is
300 <em class="parameter"><code>native_window</code></em> (as a result of a previous
301 <code class="function">eglCreatePlatformWindowSurface</code> call).
304 <code class="constant">EGL_BAD_ALLOC</code> is generated if the
308 <code class="constant">EGL_BAD_MATCH</code> is generated if the pixel
309 format of <em class="parameter"><code>native_window</code></em> does not
311 required by <em class="parameter"><code>config</code></em>.
312 <code class="constant">EGL_BAD_MATCH</code> is generated if the pixel
315 <code class="constant">EGL_BAD_MATCH</code> is generated if
316 <em class="parameter"><code>config</code></em> does not support rendering to
317 windows (the <code class="constant">EGL_SURFACE_TYPE</code> attribute
318 does not contain <code class="constant">EGL_WINDOW_BIT</code>).
321 <code class="constant">EGL_BAD_MATCH</code> is generated if
322 <em class="parameter"><code>config</code></em> does not support the specified
324 <code class="constant">EGL_VG_ALPHA_FORMAT</code> is
325 <code class="constant">EGL_VG_ALPHA_FORMAT_PRE</code> and the
326 <code class="constant">EGL_VG_ALPHA_FORMAT_PRE_BIT</code> is not set
327 in the <code class="constant">EGL_SURFACE_TYPE</code> attribute of
328 <em class="parameter"><code>config</code></em>) or colorspace attribute (the
329 value of <code class="constant">EGL_VG_COLORSPACE</code> is
330 <code class="constant">EGL_VG_COLORSPACE_LINEAR</code> and the
331 <code class="constant">EGL_VG_COLORSPACE_LINEAR_IT</code> is not set
332 in the <code class="constant">EGL_SURFACE_TYPE</code> attribute of
333 <em class="parameter"><code>config</code></em>).