Remove unused code, get tests passing on Travis

This commit is contained in:
Tim Schaub
2017-12-11 16:19:03 -07:00
parent b0c0166e9b
commit 50737f7f73
34 changed files with 66 additions and 1913 deletions

View File

@@ -1,15 +1,17 @@
// This file is automatically generated, do not edit
goog.provide('{{namespace}}');
// This file is automatically generated, do not edit.
// Run `make shaders` to generate, and commit the result.
goog.require('ol');
goog.require('ol.webgl.Fragment');
goog.require('ol.webgl.Vertex');
import _ol_ from '../../index.js';
import _ol_webgl_Fragment_ from '../../webgl/Fragment.js';
import _ol_webgl_Vertex_ from '../../webgl/Vertex.js';
var {{namespace}} = {};
{{namespace}}.fragment = new ol.webgl.Fragment(ol.DEBUG_WEBGL ?
{{namespace}}.fragment = new _ol_webgl_Fragment_(_ol_.DEBUG_WEBGL ?
'precision mediump float;\n{{{originalFragmentSource}}}' :
'precision mediump float;{{{fragmentSource}}}');
{{namespace}}.vertex = new ol.webgl.Vertex(ol.DEBUG_WEBGL ?
{{namespace}}.vertex = new _ol_webgl_Vertex_(_ol_.DEBUG_WEBGL ?
'{{{originalVertexSource}}}' :
'{{{vertexSource}}}');
export default {{namespace}};

View File

@@ -1,8 +1,7 @@
// This file is automatically generated, do not edit
goog.provide('{{namespace}}.Locations');
goog.require('ol');
// Run `make shaders` to generate, and commit the result.
import _ol_ from '../../../index.js';
/**
* @constructor
@@ -10,14 +9,14 @@ goog.require('ol');
* @param {WebGLProgram} program Program.
* @struct
*/
{{namespace}}.Locations = function(gl, program) {
{{namespace}}_Locations_ = function(gl, program) {
{{#uniforms}}
/**
* @type {WebGLUniformLocation}
*/
this.{{originalName}} = gl.getUniformLocation(
program, ol.DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}');
program, _ol_.DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}');
{{/uniforms}}
{{#attributes}}
@@ -25,6 +24,8 @@ goog.require('ol');
* @type {number}
*/
this.{{originalName}} = gl.getAttribLocation(
program, ol.DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}');
program, _ol_.DEBUG_WEBGL ? '{{originalName}}' : '{{shortName}}');
{{/attributes}}
};
export default {{namespace}}_Locations_;