Use named exports from ol/index.js

This commit is contained in:
Tim Schaub
2017-12-12 10:24:58 -07:00
parent fce644556b
commit 87295a74dd
250 changed files with 874 additions and 887 deletions

View File

@@ -2,7 +2,7 @@
* @module ol/renderer/webgl/defaultmapshader/Locations
*/
// This file is automatically generated, do not edit
import _ol_ from '../../../index.js';
import {DEBUG_WEBGL} from '../../../index.js';
/**
* @constructor
@@ -16,37 +16,37 @@ var _ol_renderer_webgl_defaultmapshader_Locations_ = function(gl, program) {
* @type {WebGLUniformLocation}
*/
this.u_texCoordMatrix = gl.getUniformLocation(
program, _ol_.DEBUG_WEBGL ? 'u_texCoordMatrix' : 'd');
program, DEBUG_WEBGL ? 'u_texCoordMatrix' : 'd');
/**
* @type {WebGLUniformLocation}
*/
this.u_projectionMatrix = gl.getUniformLocation(
program, _ol_.DEBUG_WEBGL ? 'u_projectionMatrix' : 'e');
program, DEBUG_WEBGL ? 'u_projectionMatrix' : 'e');
/**
* @type {WebGLUniformLocation}
*/
this.u_opacity = gl.getUniformLocation(
program, _ol_.DEBUG_WEBGL ? 'u_opacity' : 'f');
program, DEBUG_WEBGL ? 'u_opacity' : 'f');
/**
* @type {WebGLUniformLocation}
*/
this.u_texture = gl.getUniformLocation(
program, _ol_.DEBUG_WEBGL ? 'u_texture' : 'g');
program, DEBUG_WEBGL ? 'u_texture' : 'g');
/**
* @type {number}
*/
this.a_position = gl.getAttribLocation(
program, _ol_.DEBUG_WEBGL ? 'a_position' : 'b');
program, DEBUG_WEBGL ? 'a_position' : 'b');
/**
* @type {number}
*/
this.a_texCoord = gl.getAttribLocation(
program, _ol_.DEBUG_WEBGL ? 'a_texCoord' : 'c');
program, DEBUG_WEBGL ? 'a_texCoord' : 'c');
};
export default _ol_renderer_webgl_defaultmapshader_Locations_;