| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <ratified href="EXT_blend_minmax/"> |
| 3 | <name>EXT_blend_minmax</name> |
| 4 | |
| 5 | <contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL |
| 6 | working group</a> (public_webgl 'at' khronos.org) </contact> |
| 7 | |
| 8 | <contributors> |
| 9 | <contributor>Florian Boesch (pyalot 'at' gmail.com)</contributor> |
| 10 | <contributor>Members of the WebGL working group</contributor> |
| 11 | </contributors> |
| 12 | |
| 13 | <number>25</number> |
| 14 | |
| 15 | <depends> |
| 16 | <api version="1.0"/> |
| 17 | <core version="2.0" /> |
| 18 | </depends> |
| 19 | |
| 20 | <overview> |
| 21 | <mirrors href="http://www.khronos.org/registry/gles/extensions/EXT/blend_minmax.txt" |
| 22 | name="EXT_blend_minmax"> |
| 23 | </mirrors> |
| 24 | |
| 25 | <features> |
| 26 | <feature> |
| 27 | The <code>blendEquation</code> and <code>blendEquationSeparate</code> |
| 28 | entry points are extended to accept <code>MIN_EXT</code> and <code>MAX_EXT</code> |
| 29 | </feature> |
| 30 | </features> |
| 31 | </overview> |
| 32 | |
| 33 | <idl xml:space="preserve"> |
| 34 | [NoInterfaceObject] |
| 35 | interface EXT_blend_minmax { |
| 36 | const GLenum MIN_EXT = 0x8007; |
| 37 | const GLenum MAX_EXT = 0x8008; |
| 38 | }; |
| 39 | </idl> |
| 40 | |
| 41 | <samplecode xml:space="preserve"> |
| 42 | <pre> |
| 43 | var ext = gl.getExtension('EXT_blend_minmax'); |
| 44 | gl.blendEquation(ext.MAX_EXT); |
| 45 | gl.getParameter(gl.BLEND_EQUATION) == ext.MAX_EXT; |
| 46 | </pre> |
| 47 | </samplecode> |
| 48 | |
| 49 | <history> |
| 50 | <revision date="2012/12/12"> |
| 51 | <change>Initial revision.</change> |
| 52 | </revision> |
| 53 | <revision date="2014/02/12"> |
| 54 | <change>Moved to draft.</change> |
| 55 | </revision> |
| 56 | <revision date="2014/05/12"> |
| 57 | <change>Removed blendEquationEXT function and the BLEND_EQUATION_EXT and |
| 58 | FUNC_ADD_EXT enums, all of which are already have equivalents in WebGL.</change> |
| 59 | </revision> |
| 60 | <revision date="2014/06/27"> |
| 61 | <change>Moved to community approved after discussion on public_webgl list.</change> |
| 62 | </revision> |
| 63 | <revision date="2014/07/15"> |
| 64 | <change>Added NoInterfaceObject extended attribute.</change> |
| 65 | </revision> |
| 66 | <revision date="2015/05/29"> |
| 67 | <change>Ratified by Khronos Board of Promoters.</change> |
| 68 | </revision> |
| 69 | </history> |
| 70 | </ratified> |