Remove unused constants
This commit is contained in:
@@ -53,56 +53,6 @@ ol.renderer.webgl.map.shader.ColorVertex.OPTIMIZED_SOURCE = 'varying vec2 a;attr
|
|||||||
ol.renderer.webgl.map.shader.ColorVertex.SOURCE = goog.DEBUG ?
|
ol.renderer.webgl.map.shader.ColorVertex.SOURCE = goog.DEBUG ?
|
||||||
ol.renderer.webgl.map.shader.ColorVertex.DEBUG_SOURCE :
|
ol.renderer.webgl.map.shader.ColorVertex.DEBUG_SOURCE :
|
||||||
ol.renderer.webgl.map.shader.ColorVertex.OPTIMIZED_SOURCE;
|
ol.renderer.webgl.map.shader.ColorVertex.OPTIMIZED_SOURCE;
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_texCoordMatrix =
|
|
||||||
goog.DEBUG ? 'u_texCoordMatrix' : 'b';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_projectionMatrix =
|
|
||||||
goog.DEBUG ? 'u_projectionMatrix' : 'c';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_colorMatrix =
|
|
||||||
goog.DEBUG ? 'u_colorMatrix' : 'd';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_opacity =
|
|
||||||
goog.DEBUG ? 'u_opacity' : 'e';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_texture =
|
|
||||||
goog.DEBUG ? 'u_texture' : 'f';
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.attribute = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.attribute.a_position =
|
|
||||||
goog.DEBUG ? 'a_position' : 'd';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Color.attribute.a_texCoord =
|
|
||||||
goog.DEBUG ? 'a_texCoord' : 'e';
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {WebGLRenderingContext} gl GL.
|
* @param {WebGLRenderingContext} gl GL.
|
||||||
@@ -112,36 +62,36 @@ ol.renderer.webgl.map.shader.Color.Locations = function(gl, program) {
|
|||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_texCoordMatrix = gl.getUniformLocation(program,
|
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_texCoordMatrix);
|
program, goog.DEBUG ? 'u_texCoordMatrix' : 'b');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_projectionMatrix = gl.getUniformLocation(program,
|
this.u_projectionMatrix = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_projectionMatrix);
|
program, goog.DEBUG ? 'u_projectionMatrix' : 'c');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_colorMatrix = gl.getUniformLocation(program,
|
this.u_colorMatrix = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_colorMatrix);
|
program, goog.DEBUG ? 'u_colorMatrix' : 'd');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_opacity = gl.getUniformLocation(program,
|
this.u_opacity = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_opacity);
|
program, goog.DEBUG ? 'u_opacity' : 'e');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_texture = gl.getUniformLocation(program,
|
this.u_texture = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.uniform.u_texture);
|
program, goog.DEBUG ? 'u_texture' : 'f');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_position = gl.getAttribLocation(program,
|
this.a_position = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.attribute.a_position);
|
program, goog.DEBUG ? 'a_position' : 'd');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_texCoord = gl.getAttribLocation(program,
|
this.a_texCoord = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.map.shader.Color.attribute.a_texCoord);
|
program, goog.DEBUG ? 'a_texCoord' : 'e');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,50 +53,6 @@ ol.renderer.webgl.map.shader.DefaultVertex.OPTIMIZED_SOURCE = 'varying vec2 a;at
|
|||||||
ol.renderer.webgl.map.shader.DefaultVertex.SOURCE = goog.DEBUG ?
|
ol.renderer.webgl.map.shader.DefaultVertex.SOURCE = goog.DEBUG ?
|
||||||
ol.renderer.webgl.map.shader.DefaultVertex.DEBUG_SOURCE :
|
ol.renderer.webgl.map.shader.DefaultVertex.DEBUG_SOURCE :
|
||||||
ol.renderer.webgl.map.shader.DefaultVertex.OPTIMIZED_SOURCE;
|
ol.renderer.webgl.map.shader.DefaultVertex.OPTIMIZED_SOURCE;
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.uniform = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_texCoordMatrix =
|
|
||||||
goog.DEBUG ? 'u_texCoordMatrix' : 'b';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_projectionMatrix =
|
|
||||||
goog.DEBUG ? 'u_projectionMatrix' : 'c';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_opacity =
|
|
||||||
goog.DEBUG ? 'u_opacity' : 'd';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_texture =
|
|
||||||
goog.DEBUG ? 'u_texture' : 'e';
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.attribute = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.attribute.a_position =
|
|
||||||
goog.DEBUG ? 'a_position' : 'd';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.map.shader.Default.attribute.a_texCoord =
|
|
||||||
goog.DEBUG ? 'a_texCoord' : 'e';
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {WebGLRenderingContext} gl GL.
|
* @param {WebGLRenderingContext} gl GL.
|
||||||
@@ -106,31 +62,31 @@ ol.renderer.webgl.map.shader.Default.Locations = function(gl, program) {
|
|||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_texCoordMatrix = gl.getUniformLocation(program,
|
this.u_texCoordMatrix = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_texCoordMatrix);
|
program, goog.DEBUG ? 'u_texCoordMatrix' : 'b');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_projectionMatrix = gl.getUniformLocation(program,
|
this.u_projectionMatrix = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_projectionMatrix);
|
program, goog.DEBUG ? 'u_projectionMatrix' : 'c');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_opacity = gl.getUniformLocation(program,
|
this.u_opacity = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_opacity);
|
program, goog.DEBUG ? 'u_opacity' : 'd');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_texture = gl.getUniformLocation(program,
|
this.u_texture = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.uniform.u_texture);
|
program, goog.DEBUG ? 'u_texture' : 'e');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_position = gl.getAttribLocation(program,
|
this.a_position = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.attribute.a_position);
|
program, goog.DEBUG ? 'a_position' : 'd');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_texCoord = gl.getAttribLocation(program,
|
this.a_texCoord = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.map.shader.Default.attribute.a_texCoord);
|
program, goog.DEBUG ? 'a_texCoord' : 'e');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -53,38 +53,6 @@ ol.renderer.webgl.tilelayer.shader.Vertex.OPTIMIZED_SOURCE = 'varying vec2 a;att
|
|||||||
ol.renderer.webgl.tilelayer.shader.Vertex.SOURCE = goog.DEBUG ?
|
ol.renderer.webgl.tilelayer.shader.Vertex.SOURCE = goog.DEBUG ?
|
||||||
ol.renderer.webgl.tilelayer.shader.Vertex.DEBUG_SOURCE :
|
ol.renderer.webgl.tilelayer.shader.Vertex.DEBUG_SOURCE :
|
||||||
ol.renderer.webgl.tilelayer.shader.Vertex.OPTIMIZED_SOURCE;
|
ol.renderer.webgl.tilelayer.shader.Vertex.OPTIMIZED_SOURCE;
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.uniform = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.uniform.u_tileOffset =
|
|
||||||
goog.DEBUG ? 'u_tileOffset' : 'b';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.uniform.u_texture =
|
|
||||||
goog.DEBUG ? 'u_texture' : 'c';
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.attribute = function() {};
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.attribute.a_position =
|
|
||||||
goog.DEBUG ? 'a_position' : 'c';
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
ol.renderer.webgl.tilelayer.shader.attribute.a_texCoord =
|
|
||||||
goog.DEBUG ? 'a_texCoord' : 'd';
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
* @param {WebGLRenderingContext} gl GL.
|
* @param {WebGLRenderingContext} gl GL.
|
||||||
@@ -94,21 +62,21 @@ ol.renderer.webgl.tilelayer.shader.Locations = function(gl, program) {
|
|||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_tileOffset = gl.getUniformLocation(program,
|
this.u_tileOffset = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.tilelayer.shader.uniform.u_tileOffset);
|
program, goog.DEBUG ? 'u_tileOffset' : 'b');
|
||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.u_texture = gl.getUniformLocation(program,
|
this.u_texture = gl.getUniformLocation(
|
||||||
ol.renderer.webgl.tilelayer.shader.uniform.u_texture);
|
program, goog.DEBUG ? 'u_texture' : 'c');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_position = gl.getAttribLocation(program,
|
this.a_position = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.tilelayer.shader.attribute.a_position);
|
program, goog.DEBUG ? 'a_position' : 'c');
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.a_texCoord = gl.getAttribLocation(program,
|
this.a_texCoord = gl.getAttribLocation(
|
||||||
ol.renderer.webgl.tilelayer.shader.attribute.a_texCoord);
|
program, goog.DEBUG ? 'a_texCoord' : 'd');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,37 +74,6 @@ goog.addSingletonGetter({{className}}Vertex);
|
|||||||
{{className}}Vertex.OPTIMIZED_SOURCE;
|
{{className}}Vertex.OPTIMIZED_SOURCE;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
{{namespace}}.uniform = function() {};
|
|
||||||
{{#getUniforms}}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
{{namespace}}.uniform.{{originalName}} =
|
|
||||||
goog.DEBUG ? '{{originalName}}' : '{{shortName}}';
|
|
||||||
{{/getUniforms}}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
{{namespace}}.attribute = function() {};
|
|
||||||
{{#getAttributes}}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {string}
|
|
||||||
*/
|
|
||||||
{{namespace}}.attribute.{{originalName}} =
|
|
||||||
goog.DEBUG ? '{{originalName}}' : '{{shortName}}';
|
|
||||||
{{/getAttributes}}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @constructor
|
* @constructor
|
||||||
@@ -117,15 +86,15 @@ goog.addSingletonGetter({{className}}Vertex);
|
|||||||
/**
|
/**
|
||||||
* @type {WebGLUniformLocation}
|
* @type {WebGLUniformLocation}
|
||||||
*/
|
*/
|
||||||
this.{{originalName}} = gl.getUniformLocation(program,
|
this.{{originalName}} = gl.getUniformLocation(
|
||||||
{{namespace}}.uniform.{{originalName}});
|
program, goog.DEBUG ? '{{originalName}}' : '{{shortName}}');
|
||||||
{{/getUniforms}}
|
{{/getUniforms}}
|
||||||
{{#getAttributes}}
|
{{#getAttributes}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @type {number}
|
* @type {number}
|
||||||
*/
|
*/
|
||||||
this.{{originalName}} = gl.getAttribLocation(program,
|
this.{{originalName}} = gl.getAttribLocation(
|
||||||
{{namespace}}.attribute.{{originalName}});
|
program, goog.DEBUG ? '{{originalName}}' : '{{shortName}}');
|
||||||
{{/getAttributes}}
|
{{/getAttributes}}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user