regenerated the file

This commit is contained in:
Florian Boesch 2015-06-06 00:50:15 +02:00
parent 557a1feb77
commit 995d541b13

View File

@ -1,7 +1,9 @@
var Framebuffer, Heights, Node, Shader, Texture, WebGLHeatmap, fragmentShaderBlit, nukeVendorPrefix, textureFloatShims, vertexShaderBlit,
// Generated by CoffeeScript 1.8.0
(function() {
var Framebuffer, Heights, Node, Shader, Texture, WebGLHeatmap, fragmentShaderBlit, nukeVendorPrefix, textureFloatShims, vertexShaderBlit,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
nukeVendorPrefix = function() {
nukeVendorPrefix = function() {
var getExtension, getSupportedExtensions, vendorRe, vendors;
if (window.WebGLRenderingContext != null) {
vendors = ['WEBKIT', 'MOZ', 'MS', 'O'];
@ -45,9 +47,9 @@ nukeVendorPrefix = function() {
return result;
};
}
};
};
textureFloatShims = function() {
textureFloatShims = function() {
var checkColorBuffer, checkFloatLinear, checkSupport, checkTexture, createSourceCanvas, getExtension, getSupportedExtensions, name, shimExtensions, shimLookup, unshimExtensions, unshimLookup, _i, _len;
createSourceCanvas = function() {
var canvas, ctx, imageData;
@ -433,13 +435,13 @@ textureFloatShims = function() {
}
};
}
};
};
nukeVendorPrefix();
nukeVendorPrefix();
textureFloatShims();
textureFloatShims();
Shader = (function() {
Shader = (function() {
function Shader(gl, _arg) {
var fragment, vertex;
this.gl = gl;
@ -532,9 +534,9 @@ Shader = (function() {
return Shader;
})();
})();
Framebuffer = (function() {
Framebuffer = (function() {
function Framebuffer(gl) {
this.gl = gl;
this.buffer = this.gl.createFramebuffer();
@ -591,9 +593,9 @@ Framebuffer = (function() {
return Framebuffer;
})();
})();
Texture = (function() {
Texture = (function() {
function Texture(gl, params) {
var _ref, _ref1;
this.gl = gl;
@ -679,9 +681,9 @@ Texture = (function() {
return Texture;
})();
})();
Node = (function() {
Node = (function() {
function Node(gl, width, height) {
var floatExt;
this.gl = gl;
@ -716,13 +718,13 @@ Node = (function() {
return Node;
})();
})();
vertexShaderBlit = 'attribute vec4 position;\nvarying vec2 texcoord;\nvoid main(){\n texcoord = position.xy*0.5+0.5;\n gl_Position = position;\n}';
vertexShaderBlit = 'attribute vec4 position;\nvarying vec2 texcoord;\nvoid main(){\n texcoord = position.xy*0.5+0.5;\n gl_Position = position;\n}';
fragmentShaderBlit = '#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nuniform sampler2D source;\nvarying vec2 texcoord;';
fragmentShaderBlit = '#ifdef GL_FRAGMENT_PRECISION_HIGH\n precision highp int;\n precision highp float;\n#else\n precision mediump int;\n precision mediump float;\n#endif\nuniform sampler2D source;\nvarying vec2 texcoord;';
Heights = (function() {
Heights = (function() {
function Heights(heatmap, gl, width, height) {
var i, _i, _ref;
this.heatmap = heatmap;
@ -870,9 +872,9 @@ Heights = (function() {
return Heights;
})();
})();
WebGLHeatmap = (function() {
WebGLHeatmap = (function() {
function WebGLHeatmap(_arg) {
var alphaEnd, alphaRange, alphaStart, error, getColorFun, gradientTexture, image, intensityToAlpha, output, quad, textureGradient, _ref, _ref1;
_ref = _arg != null ? _arg : {}, this.canvas = _ref.canvas, this.width = _ref.width, this.height = _ref.height, intensityToAlpha = _ref.intensityToAlpha, gradientTexture = _ref.gradientTexture, alphaRange = _ref.alphaRange;
@ -1029,8 +1031,10 @@ WebGLHeatmap = (function() {
return WebGLHeatmap;
})();
})();
window.createWebGLHeatmap = function(params) {
window.createWebGLHeatmap = function(params) {
return new WebGLHeatmap(params);
};
};
}).call(this);