Manual class transform

This commit is contained in:
Tim Schaub
2018-07-16 17:09:50 -06:00
parent 7b4a73f3b9
commit f78d0d4cfa
96 changed files with 8112 additions and 7964 deletions

View File

@@ -9,30 +9,30 @@ import {FALSE} from '../functions.js';
* @param {string} source Source.
* @struct
*/
const WebGLShader = function(source) {
class WebGLShader {
constructor(source) {
/**
* @private
* @type {string}
*/
this.source_ = source;
/**
* @private
* @type {string}
*/
this.source_ = source;
};
}
/**
* @abstract
* @return {number} Type.
*/
getType() {}
/**
* @abstract
* @return {number} Type.
*/
WebGLShader.prototype.getType = function() {};
/**
* @return {string} Source.
*/
WebGLShader.prototype.getSource = function() {
return this.source_;
};
/**
* @return {string} Source.
*/
getSource() {
return this.source_;
}
}
/**