Files
openlayers/src/ol/webgl/Shader.js
2017-12-15 13:44:32 +01:00

43 lines
621 B
JavaScript

/**
* @module ol/webgl/Shader
*/
import {FALSE} from '../functions.js';
/**
* @constructor
* @abstract
* @param {string} source Source.
* @struct
*/
var _ol_webgl_Shader_ = function(source) {
/**
* @private
* @type {string}
*/
this.source_ = source;
};
/**
* @abstract
* @return {number} Type.
*/
_ol_webgl_Shader_.prototype.getType = function() {};
/**
* @return {string} Source.
*/
_ol_webgl_Shader_.prototype.getSource = function() {
return this.source_;
};
/**
* @return {boolean} Is animated?
*/
_ol_webgl_Shader_.prototype.isAnimated = FALSE;
export default _ol_webgl_Shader_;