UNPKG

openlayers

Version:

Build tools and sources for developing OpenLayers based mapping applications

47 lines (33 loc) 682 B
goog.provide('ol.webgl.Shader'); goog.require('ol'); goog.require('ol.functions'); if (ol.ENABLE_WEBGL) { /** * @constructor * @abstract * @param {string} source Source. * @struct */ 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 = ol.functions.FALSE; }