WebGL
Khronos
 

WebGL EXT_blend_minmax Extension Proposed Specification

DO NOT IMPLEMENT!!!

Name

EXT_blend_minmax

Contact

WebGL working group (public_webgl 'at' khronos.org)

Contributors

Florian Boesch (pyalot 'at' gmail.com)

Members of the WebGL working group

Version

Last modified date: December 12, 2012
Revision: 1

Number

WebGL extension #NN

Dependencies

Written against the WebGL API 1.0 specification.

Overview

This extension exposes the EXT_blend_minmax functionality to WebGL.

There are no WebGL-specific behavioral changes.

Consult the above extension for documentation, issues and new functions and enumerants.

When this extension is enabled:

IDL

    interface EXT_blend_minmax {
      const GLenum FUNC_ADD_EXT         = 0x8006;
      const GLenum MIN_EXT              = 0x8007;
      const GLenum MAX_EXT              = 0x8008;
      const GLenum BLEND_EQUATION_EXT   = 0x8009;
      void blendEquationEXT(GLenum mode);
    };
  

New Functions

void blendEquationEXT(GLenum mode)
Accepts FUNC_ADD_EXT, MIN_EXT and MAX_EXT

New Tokens

any getParameter(GLenum pname)
One new enum BLEND_EQUATION_EXT is accepted by pname parameter in getParameter()
Returned is either FUNC_ADD_EXT (default), MIN_EXT or MAX_EXT

Sample Code

        var ext = gl.getExtension('EXT_blend_minmax');
        ext.blendEquationEXT(ext.MAX_EXT);
        gl.getParameter(ext.BLEND_EQUATION_EXT) == ext.MAX_EXT;
    

Revision History

Revision 1, 2012/12/12