/usr/share/gtk-doc/html/cogl-2.0-experimental/cogl-2.0-experimental-GLES-2.0-context.html is in libcogl-doc 1.22.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GLES 2.0 context: Cogl 2.0 Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="Cogl 2.0 Reference Manual">
<link rel="up" href="cogl-integration.html" title="Binding and Integrating">
<link rel="prev" href="cogl-2.0-experimental-GType-Integration-API.html" title="GType Integration API">
<link rel="next" href="coglglossary.html" title="Glossaries">
<meta name="generator" content="GTK-Doc V1.25 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#cogl-2.0-experimental-GLES-2.0-context.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="cogl-integration.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="cogl-2.0-experimental-GType-Integration-API.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="coglglossary.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="cogl-2.0-experimental-GLES-2.0-context"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="cogl-2.0-experimental-GLES-2.0-context.top_of_page"></a>GLES 2.0 context</span></h2>
<p>GLES 2.0 context — A portable api to access OpenGLES 2.0</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="cogl-2.0-experimental-GLES-2.0-context.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_return">
<col class="functions_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="returnvalue">CoglGLES2Context</span></a> *
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-new" title="cogl_gles2_context_new ()">cogl_gles2_context_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-is-gles2-context" title="cogl_is_gles2_context ()">cogl_is_gles2_context</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">const <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="returnvalue">CoglGLES2Vtable</span></a> *
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-get-vtable" title="cogl_gles2_context_get_vtable ()">cogl_gles2_context_get_vtable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()">cogl_push_gles2_context</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-pop-gles2-context" title="cogl_pop_gles2_context ()">cogl_pop_gles2_context</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="returnvalue">CoglGLES2Vtable</span></a> *
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-get-current-vtable" title="cogl_gles2_get_current_vtable ()">cogl_gles2_get_current_vtable</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-2D-textures.html#CoglTexture2D" title="CoglTexture2D"><span class="returnvalue">CoglTexture2D</span></a> *
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-texture-2d-new-from-handle" title="cogl_gles2_texture_2d_new_from_handle ()">cogl_gles2_texture_2d_new_from_handle</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
</td>
<td class="function_name">
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-texture-get-handle" title="cogl_gles2_texture_get_handle ()">cogl_gles2_texture_get_handle</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-GLES-2.0-context.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="name">
<col class="description">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context">CoglGLES2Context</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable">CoglGLES2Vtable</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#COGL-GLES2-CONTEXT-ERROR:CAPS" title="COGL_GLES2_CONTEXT_ERROR">COGL_GLES2_CONTEXT_ERROR</a></td>
</tr>
<tr>
<td class="datatype_keyword">enum</td>
<td class="function_name"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2ContextError" title="enum CoglGLES2ContextError">CoglGLES2ContextError</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-GLES-2.0-context.description"></a><h2>Description</h2>
<p>Cogl provides portable access to the OpenGLES api through a single
library that is able to smooth over inconsistencies between the
different vendor drivers for OpenGLES in a single place.</p>
<p>The api is designed to allow Cogl to transparently implement the
api on top of other drivers, such as OpenGL, D3D or on Cogl's own
drawing api so even if your platform doesn't come with an
OpenGLES 2.0 api Cogl may still be able to expose the api to your
application.</p>
<p>Since Cogl is a library and not an api specification it is possible
to add OpenGLES 2.0 api features to Cogl which can immidiately
benefit developers regardless of what platform they are running on.</p>
<p>With this api it's possible to re-use existing OpenGLES 2.0 code
within applications that are rendering with the Cogl API and also
it's possible for applications that render using OpenGLES 2.0 to
incorporate content rendered with Cogl.</p>
<p>Applications can check for OpenGLES 2.0 api support by checking for
<a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#COGL-FEATURE-ID-GLES2-CONTEXT:CAPS"><code class="literal">COGL_FEATURE_ID_GLES2_CONTEXT</code></a> support with <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#cogl-has-feature" title="cogl_has_feature ()"><code class="function">cogl_has_feature()</code></a>.</p>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-GLES-2.0-context.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="cogl-gles2-context-new"></a><h3>cogl_gles2_context_new ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="returnvalue">CoglGLES2Context</span></a> *
cogl_gles2_context_new (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a> *ctx</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Exception-handling.html#CoglError" title="CoglError"><span class="type">CoglError</span></a> **error</code></em>);</pre>
<p>Allocates a new OpenGLES 2.0 context that can be used to render to
<a class="link" href="cogl-2.0-experimental-Offscreen-Framebuffers.html#CoglOffscreen" title="CoglOffscreen"><span class="type">CoglOffscreen</span></a> framebuffers (Rendering to <a class="link" href="cogl-2.0-experimental-CoglOnscreen---The-Onscreen-Framebuffer-Interface.html#CoglOnscreen" title="CoglOnscreen"><span class="type">CoglOnscreen</span></a>
framebuffers is not currently supported).</p>
<p>To actually access the OpenGLES 2.0 api itself you need to use
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-get-vtable" title="cogl_gles2_context_get_vtable ()"><code class="function">cogl_gles2_context_get_vtable()</code></a>. You should not try to directly link
to and use the symbols provided by the a system OpenGLES 2.0
driver.</p>
<p>Once you have allocated an OpenGLES 2.0 context you can make it
current using <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()"><code class="function">cogl_push_gles2_context()</code></a>. For those familiar with
using the EGL api, this serves a similar purpose to eglMakeCurrent.</p>
<div class="note">Before using this api applications can check for OpenGLES 2.0
api support by checking for <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#COGL-FEATURE-ID-GLES2-CONTEXT:CAPS"><code class="literal">COGL_FEATURE_ID_GLES2_CONTEXT</code></a> support
with <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#cogl-has-feature" title="cogl_has_feature ()"><code class="function">cogl_has_feature()</code></a>. This function will return <code class="literal">FALSE</code> and
return an <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#COGL-GLES2-CONTEXT-ERROR-UNSUPPORTED:CAPS"><code class="literal">COGL_GLES2_CONTEXT_ERROR_UNSUPPORTED</code></a> error if the
feature isn't available.</div>
<div class="refsect3">
<a name="cogl-gles2-context-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>A pointer to a <a class="link" href="cogl-2.0-experimental-Exception-handling.html#CoglError" title="CoglError"><span class="type">CoglError</span></a> for returning exceptions</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cogl-gles2-context-new.returns"></a><h4>Returns</h4>
<p> A newly allocated <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> or <code class="literal">NULL</code> if there
was an error and <em class="parameter"><code>error</code></em>
will be updated in that case.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-is-gles2-context"></a><h3>cogl_is_gles2_context ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
cogl_is_gles2_context (<em class="parameter"><code><span class="type">void</span> *object</code></em>);</pre>
<p>Gets whether the given object references a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a>.</p>
<div class="refsect3">
<a name="cogl-is-gles2-context.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>object</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Object-Interface.html#CoglObject" title="CoglObject"><span class="type">CoglObject</span></a> pointer</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cogl-is-gles2-context.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if the object references a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a>
and <code class="literal">FALSE</code> otherwise.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-gles2-context-get-vtable"></a><h3>cogl_gles2_context_get_vtable ()</h3>
<pre class="programlisting">const <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="returnvalue">CoglGLES2Vtable</span></a> *
cogl_gles2_context_get_vtable (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> *gles2_ctx</code></em>);</pre>
<p>Queries the OpenGLES 2.0 api function pointers that should be
used for rendering with the given <em class="parameter"><code>gles2_ctx</code></em>
.</p>
<div class="note">You should not try to directly link to and use the symbols
provided by any system OpenGLES 2.0 driver.</div>
<div class="refsect3">
<a name="cogl-gles2-context-get-vtable.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>gles2_ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> allocated with
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-new" title="cogl_gles2_context_new ()"><code class="function">cogl_gles2_context_new()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cogl-gles2-context-get-vtable.returns"></a><h4>Returns</h4>
<p> A pointer to a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="type">CoglGLES2Vtable</span></a> providing pointers
to functions for the full OpenGLES 2.0 api.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-push-gles2-context"></a><h3>cogl_push_gles2_context ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
cogl_push_gles2_context (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a> *ctx</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> *gles2_ctx</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html#CoglFramebuffer" title="CoglFramebuffer"><span class="type">CoglFramebuffer</span></a> *read_buffer</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html#CoglFramebuffer" title="CoglFramebuffer"><span class="type">CoglFramebuffer</span></a> *write_buffer</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Exception-handling.html#CoglError" title="CoglError"><span class="type">CoglError</span></a> **error</code></em>);</pre>
<p>Pushes the given <em class="parameter"><code>gles2_ctx</code></em>
onto a stack associated with <em class="parameter"><code>ctx</code></em>
so
that the OpenGLES 2.0 api can be used instead of the Cogl
rendering apis to read and write to the specified framebuffers.</p>
<p>Usage of the api available through a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="type">CoglGLES2Vtable</span></a> is only
allowed between <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()"><code class="function">cogl_push_gles2_context()</code></a> and
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-pop-gles2-context" title="cogl_pop_gles2_context ()"><code class="function">cogl_pop_gles2_context()</code></a> calls.</p>
<p>If there is a runtime problem with switching over to the given
<em class="parameter"><code>gles2_ctx</code></em>
then this function will return <code class="literal">FALSE</code> and return
an error through <em class="parameter"><code>error</code></em>
.</p>
<div class="refsect3">
<a name="cogl-push-gles2-context.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>gles2_ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> allocated with
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-new" title="cogl_gles2_context_new ()"><code class="function">cogl_gles2_context_new()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>read_buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html#CoglFramebuffer" title="CoglFramebuffer"><span class="type">CoglFramebuffer</span></a> to access to read operations
such as glReadPixels. (must be a <a class="link" href="cogl-2.0-experimental-Offscreen-Framebuffers.html#CoglOffscreen" title="CoglOffscreen"><span class="type">CoglOffscreen</span></a>
framebuffer currently)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>write_buffer</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-CoglFramebuffer---The-Framebuffer-Interface.html#CoglFramebuffer" title="CoglFramebuffer"><span class="type">CoglFramebuffer</span></a> to access for drawing operations
such as glDrawArrays. (must be a <a class="link" href="cogl-2.0-experimental-Offscreen-Framebuffers.html#CoglOffscreen" title="CoglOffscreen"><span class="type">CoglOffscreen</span></a>
framebuffer currently)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>A pointer to a <a class="link" href="cogl-2.0-experimental-Exception-handling.html#CoglError" title="CoglError"><span class="type">CoglError</span></a> for returning exceptions</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cogl-push-gles2-context.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if operation was successfull or <code class="literal">FALSE</code>
otherwise and <em class="parameter"><code>error</code></em>
will be updated.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-pop-gles2-context"></a><h3>cogl_pop_gles2_context ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
cogl_pop_gles2_context (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a> *ctx</code></em>);</pre>
<p>Restores the previously active <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> if there
were nested calls to <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()"><code class="function">cogl_push_gles2_context()</code></a> or otherwise
restores the ability to render with the Cogl api instead
of OpenGLES 2.0.</p>
<p>The behaviour is undefined if calls to <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-pop-gles2-context" title="cogl_pop_gles2_context ()"><code class="function">cogl_pop_gles2_context()</code></a>
are not balenced with the number of corresponding calls to
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()"><code class="function">cogl_push_gles2_context()</code></a>.</p>
<div class="refsect3">
<a name="cogl-pop-gles2-context.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-gles2-get-current-vtable"></a><h3>cogl_gles2_get_current_vtable ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="returnvalue">CoglGLES2Vtable</span></a> *
cogl_gles2_get_current_vtable (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>Returns the OpenGL ES 2.0 api vtable for the currently pushed
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> (last pushed with <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-push-gles2-context" title="cogl_push_gles2_context ()"><code class="function">cogl_push_gles2_context()</code></a>) or
<code class="literal">NULL</code> if no <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> has been pushed.</p>
<div class="refsect3">
<a name="cogl-gles2-get-current-vtable.returns"></a><h4>Returns</h4>
<p> The <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="type">CoglGLES2Vtable</span></a> for the currently pushed
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> or <code class="literal">NULL</code> if none has been pushed.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-gles2-texture-2d-new-from-handle"></a><h3>cogl_gles2_texture_2d_new_from_handle ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-2D-textures.html#CoglTexture2D" title="CoglTexture2D"><span class="returnvalue">CoglTexture2D</span></a> *
cogl_gles2_texture_2d_new_from_handle (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a> *ctx</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> *gles2_ctx</code></em>,
<em class="parameter"><code>unsigned <span class="type">int</span> handle</code></em>,
<em class="parameter"><code><span class="type">int</span> width</code></em>,
<em class="parameter"><code><span class="type">int</span> height</code></em>,
<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglPixelFormat" title="enum CoglPixelFormat"><span class="type">CoglPixelFormat</span></a> format</code></em>);</pre>
<p>Creates a <a class="link" href="cogl-2.0-experimental-2D-textures.html#CoglTexture2D" title="CoglTexture2D"><span class="type">CoglTexture2D</span></a> from an OpenGL ES 2.0 texture handle that
was created within the given <em class="parameter"><code>gles2_ctx</code></em>
via <code class="function">glGenTextures()</code>. The
texture needs to have been associated with the GL_TEXTURE_2D target.</p>
<div class="note">This interface is only intended for sharing textures to read
from. The behaviour is undefined if the texture is modified using
the Cogl api.</div>
<div class="note">Applications should only pass this function handles that were
created via a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="type">CoglGLES2Vtable</span></a> or via libcogl-gles2 and not pass
handles created directly using the system's native libGLESv2
api.</div>
<div class="refsect3">
<a name="cogl-gles2-texture-2d-new-from-handle.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#CoglContext" title="CoglContext"><span class="type">CoglContext</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>gles2_ctx</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> allocated with
<a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#cogl-gles2-context-new" title="cogl_gles2_context_new ()"><code class="function">cogl_gles2_context_new()</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle</p></td>
<td class="parameter_description"><p>An OpenGL ES 2.0 texture handle created with
<code class="function">glGenTextures()</code></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>width</p></td>
<td class="parameter_description"><p>Width of the texture to allocate</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>height</p></td>
<td class="parameter_description"><p>Height of the texture to allocate</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>format</p></td>
<td class="parameter_description"><p>The format of the texture</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="cogl-gles2-texture-get-handle"></a><h3>cogl_gles2_texture_get_handle ()</h3>
<pre class="programlisting"><a class="link" href="cogl-2.0-experimental-Common-Types.html#CoglBool" title="CoglBool"><span class="returnvalue">CoglBool</span></a>
cogl_gles2_texture_get_handle (<em class="parameter"><code><a class="link" href="cogl-2.0-experimental-The-Texture-Interface.html#CoglTexture" title="CoglTexture"><span class="type">CoglTexture</span></a> *texture</code></em>,
<em class="parameter"><code>unsigned <span class="type">int</span> *handle</code></em>,
<em class="parameter"><code>unsigned <span class="type">int</span> *target</code></em>);</pre>
<p>Gets an OpenGL ES 2.0 texture handle for a <a class="link" href="cogl-2.0-experimental-The-Texture-Interface.html#CoglTexture" title="CoglTexture"><span class="type">CoglTexture</span></a> that can
then be referenced by a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a>. As well as returning
a texture handle the texture's target (such as GL_TEXTURE_2D) is
also returned.</p>
<p>If the <a class="link" href="cogl-2.0-experimental-The-Texture-Interface.html#CoglTexture" title="CoglTexture"><span class="type">CoglTexture</span></a> can not be shared with a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Context" title="CoglGLES2Context"><span class="type">CoglGLES2Context</span></a> then
this function will return <code class="literal">FALSE</code>.</p>
<p>This api does not affect the lifetime of the CoglTexture and you
must take care not to reference the returned handle after the
original texture has been freed.</p>
<div class="note">This interface is only intended for sharing textures to read
from. The behaviour is undefined if the texture is modified by a
GLES2 context.</div>
<div class="note">This function will only return <code class="literal">TRUE</code> for low-level
<a class="link" href="cogl-2.0-experimental-The-Texture-Interface.html#CoglTexture" title="CoglTexture"><span class="type">CoglTexture</span></a>s such as <a class="link" href="cogl-2.0-experimental-2D-textures.html#CoglTexture2D" title="CoglTexture2D"><span class="type">CoglTexture2D</span></a> or <a class="link" href="cogl-2.0-experimental-3D-textures.html#CoglTexture3D" title="CoglTexture3D"><span class="type">CoglTexture3D</span></a> but
not for high level meta textures such as
<a class="link" href="cogl-2.0-experimental-Sliced-Textures.html#CoglTexture2DSliced" title="CoglTexture2DSliced"><span class="type">CoglTexture2DSliced</span></a>
</div>
<div class="note">The handle returned should not be passed directly to a system
OpenGL ES 2.0 library, the handle is only intended to be used via
a <a class="link" href="cogl-2.0-experimental-GLES-2.0-context.html#CoglGLES2Vtable" title="struct CoglGLES2Vtable"><span class="type">CoglGLES2Vtable</span></a> or via libcogl-gles2.</div>
<div class="refsect3">
<a name="cogl-gles2-texture-get-handle.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>texture</p></td>
<td class="parameter_description"><p>A <a class="link" href="cogl-2.0-experimental-The-Texture-Interface.html#CoglTexture" title="CoglTexture"><span class="type">CoglTexture</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>handle</p></td>
<td class="parameter_description"><p>A return location for an OpenGL ES 2.0 texture handle</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>target</p></td>
<td class="parameter_description"><p>A return location for an OpenGL ES 2.0 texture target</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="cogl-gles2-texture-get-handle.returns"></a><h4>Returns</h4>
<p> <code class="literal">TRUE</code> if a handle and target could be returned
otherwise <code class="literal">FALSE</code> is returned.</p>
</div>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
</div>
<div class="refsect1">
<a name="cogl-2.0-experimental-GLES-2.0-context.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="CoglGLES2Context"></a><h3>CoglGLES2Context</h3>
<pre class="programlisting">typedef struct _CoglGLES2Context CoglGLES2Context;</pre>
<p>Represents an OpenGLES 2.0 api context used as a sandbox for
OpenGLES 2.0 state. This is comparable to an EGLContext for those
who have used OpenGLES 2.0 with EGL before.</p>
<p class="since">Since: 1.12</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="CoglGLES2Vtable"></a><h3>struct CoglGLES2Vtable</h3>
<pre class="programlisting">struct CoglGLES2Vtable {
};
</pre>
<p>Provides function pointers for the full OpenGLES 2.0 api. The
api must be accessed this way and not by directly calling
symbols of any system OpenGLES 2.0 api.</p>
<p class="since">Since: 1.12</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="COGL-GLES2-CONTEXT-ERROR:CAPS"></a><h3>COGL_GLES2_CONTEXT_ERROR</h3>
<pre class="programlisting">#define COGL_GLES2_CONTEXT_ERROR (_cogl_gles2_context_error_quark ())
</pre>
<p>An error domain for runtime exceptions relating to the
cogl_gles2_context api.</p>
<p class="since">Since: 2.0</p>
<p class="stability">Stability Level: <acronym title="Unstable interfaces are experimental or transitional. They are typically used to
give outside developers early access to new or rapidly changing technology, or
to provide an interim solution to a problem where a more general solution is
anticipated. No claims are made about either source or binary compatibility from
one minor release to the next.
The Unstable interface level is a warning that these interfaces are subject to
change without warning and should not be used in unbundled products.
Given such caveats, customer impact need not be a factor when considering
incompatible changes to an Unstable interface in a major or minor release.
Nonetheless, when such changes are introduced, the changes should still be
mentioned in the release notes for the affected release.
"><span class="acronym">Unstable</span></acronym></p>
</div>
<hr>
<div class="refsect2">
<a name="CoglGLES2ContextError"></a><h3>enum CoglGLES2ContextError</h3>
<p>Error codes that relate to the cogl_gles2_context api.</p>
<div class="refsect3">
<a name="CoglGLES2ContextError.members"></a><h4>Members</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="300px" class="enum_members_name">
<col class="enum_members_description">
<col width="200px" class="enum_members_annotations">
</colgroup>
<tbody>
<tr>
<td class="enum_member_name"><p><a name="COGL-GLES2-CONTEXT-ERROR-UNSUPPORTED:CAPS"></a>COGL_GLES2_CONTEXT_ERROR_UNSUPPORTED</p></td>
<td class="enum_member_description">
<p>Creating GLES2 contexts
isn't supported. Applications should use <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#cogl-has-feature" title="cogl_has_feature ()"><code class="function">cogl_has_feature()</code></a> to
check for the <a class="link" href="cogl-2.0-experimental-The-Top-Level-Context.html#COGL-FEATURE-ID-GLES2-CONTEXT:CAPS"><code class="literal">COGL_FEATURE_ID_GLES2_CONTEXT</code></a>.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
<tr>
<td class="enum_member_name"><p><a name="COGL-GLES2-CONTEXT-ERROR-DRIVER:CAPS"></a>COGL_GLES2_CONTEXT_ERROR_DRIVER</p></td>
<td class="enum_member_description">
<p>An underlying driver error
occured.</p>
</td>
<td class="enum_member_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.25</div>
</body>
</html>
|