Files
openlayers/src/ol/webgl/Vertex.js
2018-02-09 09:25:56 +01:00

28 lines
506 B
JavaScript

/**
* @module ol/webgl/Vertex
*/
import {inherits} from '../index.js';
import _ol_webgl_ from '../webgl.js';
import WebGLShader from '../webgl/Shader.js';
/**
* @constructor
* @extends {ol.webgl.Shader}
* @param {string} source Source.
* @struct
*/
const WebGLVertex = function(source) {
WebGLShader.call(this, source);
};
inherits(WebGLVertex, WebGLShader);
/**
* @inheritDoc
*/
WebGLVertex.prototype.getType = function() {
return _ol_webgl_.VERTEX_SHADER;
};
export default WebGLVertex;