Rename _ol_webgl_Vertex_ to WebGLVertex

This commit is contained in:
Frederic Junod
2018-02-09 09:25:56 +01:00
parent 96eba2bddf
commit 985fc3af47
8 changed files with 18 additions and 18 deletions

View File

@@ -11,17 +11,17 @@ import WebGLShader from '../webgl/Shader.js';
* @param {string} source Source.
* @struct
*/
const _ol_webgl_Vertex_ = function(source) {
const WebGLVertex = function(source) {
WebGLShader.call(this, source);
};
inherits(_ol_webgl_Vertex_, WebGLShader);
inherits(WebGLVertex, WebGLShader);
/**
* @inheritDoc
*/
_ol_webgl_Vertex_.prototype.getType = function() {
WebGLVertex.prototype.getType = function() {
return _ol_webgl_.VERTEX_SHADER;
};
export default _ol_webgl_Vertex_;
export default WebGLVertex;

View File

@@ -6,12 +6,12 @@
import {DEBUG_WEBGL} from '../../../index.js';
import WebGLFragment from '../../../webgl/Fragment.js';
import _ol_webgl_Vertex_ from '../../../webgl/Vertex.js';
import WebGLVertex from '../../../webgl/Vertex.js';
export const fragment = new WebGLFragment(DEBUG_WEBGL ?
'precision mediump float;\n{{{originalFragmentSource}}}' :
'precision mediump float;{{{fragmentSource}}}');
export const vertex = new _ol_webgl_Vertex_(DEBUG_WEBGL ?
export const vertex = new WebGLVertex(DEBUG_WEBGL ?
'{{{originalVertexSource}}}' :
'{{{vertexSource}}}');