Rename _ol_webgl_Shader_ to WebGLShader
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_webgl_ from '../webgl.js';
|
||||
import _ol_webgl_Shader_ from '../webgl/Shader.js';
|
||||
import WebGLShader from '../webgl/Shader.js';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
@@ -12,10 +12,10 @@ import _ol_webgl_Shader_ from '../webgl/Shader.js';
|
||||
* @struct
|
||||
*/
|
||||
const _ol_webgl_Fragment_ = function(source) {
|
||||
_ol_webgl_Shader_.call(this, source);
|
||||
WebGLShader.call(this, source);
|
||||
};
|
||||
|
||||
inherits(_ol_webgl_Fragment_, _ol_webgl_Shader_);
|
||||
inherits(_ol_webgl_Fragment_, WebGLShader);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import {FALSE} from '../functions.js';
|
||||
* @param {string} source Source.
|
||||
* @struct
|
||||
*/
|
||||
const _ol_webgl_Shader_ = function(source) {
|
||||
const WebGLShader = function(source) {
|
||||
|
||||
/**
|
||||
* @private
|
||||
@@ -24,13 +24,13 @@ const _ol_webgl_Shader_ = function(source) {
|
||||
* @abstract
|
||||
* @return {number} Type.
|
||||
*/
|
||||
_ol_webgl_Shader_.prototype.getType = function() {};
|
||||
WebGLShader.prototype.getType = function() {};
|
||||
|
||||
|
||||
/**
|
||||
* @return {string} Source.
|
||||
*/
|
||||
_ol_webgl_Shader_.prototype.getSource = function() {
|
||||
WebGLShader.prototype.getSource = function() {
|
||||
return this.source_;
|
||||
};
|
||||
|
||||
@@ -38,5 +38,5 @@ _ol_webgl_Shader_.prototype.getSource = function() {
|
||||
/**
|
||||
* @return {boolean} Is animated?
|
||||
*/
|
||||
_ol_webgl_Shader_.prototype.isAnimated = FALSE;
|
||||
export default _ol_webgl_Shader_;
|
||||
WebGLShader.prototype.isAnimated = FALSE;
|
||||
export default WebGLShader;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_webgl_ from '../webgl.js';
|
||||
import _ol_webgl_Shader_ from '../webgl/Shader.js';
|
||||
import WebGLShader from '../webgl/Shader.js';
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
@@ -12,10 +12,10 @@ import _ol_webgl_Shader_ from '../webgl/Shader.js';
|
||||
* @struct
|
||||
*/
|
||||
const _ol_webgl_Vertex_ = function(source) {
|
||||
_ol_webgl_Shader_.call(this, source);
|
||||
WebGLShader.call(this, source);
|
||||
};
|
||||
|
||||
inherits(_ol_webgl_Vertex_, _ol_webgl_Shader_);
|
||||
inherits(_ol_webgl_Vertex_, WebGLShader);
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user