summaryrefslogtreecommitdiffstats
path: root/third_party/rust/khronos_api/api_webgl/extensions/EXT_blend_minmax/extension.xml
blob: 6d32712aa554d462c83bcc8f2ce68a2327b9a6d6 (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<ratified href="EXT_blend_minmax/">
  <name>EXT_blend_minmax</name>

  <contact> <a href="https://www.khronos.org/webgl/public-mailing-list/">WebGL
  working group</a> (public_webgl 'at' khronos.org) </contact>

  <contributors>
    <contributor>Florian Boesch (pyalot 'at' gmail.com)</contributor>
    <contributor>Members of the WebGL working group</contributor>
  </contributors>

  <number>25</number>

  <depends>
    <api version="1.0"/>
    <core version="2.0" />
  </depends>

  <overview>
    <mirrors href="http://www.khronos.org/registry/gles/extensions/EXT/blend_minmax.txt"
             name="EXT_blend_minmax">
    </mirrors>

    <features>
      <feature>
        The <code>blendEquation</code> and <code>blendEquationSeparate</code>
        entry points are extended to accept <code>MIN_EXT</code> and <code>MAX_EXT</code>
      </feature>
    </features>
  </overview>

  <idl xml:space="preserve">
[NoInterfaceObject]
interface EXT_blend_minmax {
  const GLenum MIN_EXT = 0x8007;
  const GLenum MAX_EXT = 0x8008;
};
  </idl>

  <samplecode xml:space="preserve">
    <pre>
        var ext = gl.getExtension('EXT_blend_minmax');
        gl.blendEquation(ext.MAX_EXT);
        gl.getParameter(gl.BLEND_EQUATION) == ext.MAX_EXT;
    </pre>
  </samplecode>

  <history>
    <revision date="2012/12/12">
      <change>Initial revision.</change>
    </revision>
    <revision date="2014/02/12">
      <change>Moved to draft.</change>
    </revision>
    <revision date="2014/05/12">
      <change>Removed blendEquationEXT function and the BLEND_EQUATION_EXT and
        FUNC_ADD_EXT enums, all of which are already have equivalents in WebGL.</change>
    </revision>
    <revision date="2014/06/27">
      <change>Moved to community approved after discussion on public_webgl list.</change>
    </revision>
    <revision date="2014/07/15">
      <change>Added NoInterfaceObject extended attribute.</change>
    </revision>
    <revision date="2015/05/29">
      <change>Ratified by Khronos Board of Promoters.</change>
    </revision>
  </history>
</ratified>