Lint removal
This commit is contained in:
@@ -19,35 +19,35 @@ const BufferUsage = {
|
||||
* @struct
|
||||
*/
|
||||
class WebGLBuffer {
|
||||
constructor(opt_arr, opt_usage) {
|
||||
constructor(opt_arr, opt_usage) {
|
||||
|
||||
/**
|
||||
/**
|
||||
* @private
|
||||
* @type {Array.<number>}
|
||||
*/
|
||||
this.arr_ = opt_arr !== undefined ? opt_arr : [];
|
||||
this.arr_ = opt_arr !== undefined ? opt_arr : [];
|
||||
|
||||
/**
|
||||
/**
|
||||
* @private
|
||||
* @type {number}
|
||||
*/
|
||||
this.usage_ = opt_usage !== undefined ? opt_usage : BufferUsage.STATIC_DRAW;
|
||||
this.usage_ = opt_usage !== undefined ? opt_usage : BufferUsage.STATIC_DRAW;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @return {Array.<number>} Array.
|
||||
*/
|
||||
getArray() {
|
||||
return this.arr_;
|
||||
}
|
||||
getArray() {
|
||||
return this.arr_;
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @return {number} Usage.
|
||||
*/
|
||||
getUsage() {
|
||||
return this.usage_;
|
||||
}
|
||||
getUsage() {
|
||||
return this.usage_;
|
||||
}
|
||||
}
|
||||
|
||||
export default WebGLBuffer;
|
||||
|
||||
@@ -12,16 +12,16 @@ import WebGLShader from '../webgl/Shader.js';
|
||||
* @struct
|
||||
*/
|
||||
class WebGLFragment {
|
||||
constructor(source) {
|
||||
WebGLShader.call(this, source);
|
||||
}
|
||||
constructor(source) {
|
||||
WebGLShader.call(this, source);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
getType() {
|
||||
return FRAGMENT_SHADER;
|
||||
}
|
||||
getType() {
|
||||
return FRAGMENT_SHADER;
|
||||
}
|
||||
}
|
||||
|
||||
inherits(WebGLFragment, WebGLShader);
|
||||
|
||||
@@ -10,28 +10,28 @@ import {FALSE} from '../functions.js';
|
||||
* @struct
|
||||
*/
|
||||
class WebGLShader {
|
||||
constructor(source) {
|
||||
constructor(source) {
|
||||
|
||||
/**
|
||||
/**
|
||||
* @private
|
||||
* @type {string}
|
||||
*/
|
||||
this.source_ = source;
|
||||
this.source_ = source;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @abstract
|
||||
* @return {number} Type.
|
||||
*/
|
||||
getType() {}
|
||||
getType() {}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @return {string} Source.
|
||||
*/
|
||||
getSource() {
|
||||
return this.source_;
|
||||
}
|
||||
getSource() {
|
||||
return this.source_;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,16 +12,16 @@ import WebGLShader from '../webgl/Shader.js';
|
||||
* @struct
|
||||
*/
|
||||
class WebGLVertex {
|
||||
constructor(source) {
|
||||
WebGLShader.call(this, source);
|
||||
}
|
||||
constructor(source) {
|
||||
WebGLShader.call(this, source);
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
getType() {
|
||||
return VERTEX_SHADER;
|
||||
}
|
||||
getType() {
|
||||
return VERTEX_SHADER;
|
||||
}
|
||||
}
|
||||
|
||||
inherits(WebGLVertex, WebGLShader);
|
||||
|
||||
Reference in New Issue
Block a user