Files
openlayers/src/ol/webgl/Shader.js
2018-02-08 09:24:29 +01:00

43 lines
593 B
JavaScript

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