diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-30 23:38:14 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-10-30 23:38:14 +0100 |
commit | b04f18e29ac8efddaece673eed91cba32cad5c2c (patch) | |
tree | c16fe4cca38b9cdf7ff29341f2af6513aa02d7b3 /src | |
parent | 7112f40a70e4bc723a52ef9aaaf9ad5d4761c6a5 (diff) | |
download | rpgedit-b04f18e29ac8efddaece673eed91cba32cad5c2c.tar rpgedit-b04f18e29ac8efddaece673eed91cba32cad5c2c.zip |
view/renderer/Renderer: remove dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/view/renderer/Renderer.ts | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/src/view/renderer/Renderer.ts b/src/view/renderer/Renderer.ts index 6e3897d..f2f72a6 100644 --- a/src/view/renderer/Renderer.ts +++ b/src/view/renderer/Renderer.ts @@ -64,37 +64,4 @@ export default class Renderer { this.gl.uniform2f(this.shaders.translateLoc, -5.0, -5.0); } - - private getAttribLocation(program: WebGLProgram, name: string): number { - const ret = this.gl.getAttribLocation(program, name); - if (ret < 0) - throw new Error("unable to get location of attribute '" + name + "'"); - - return ret; - } - - private getUniformLocation(program: WebGLProgram, name: string): WebGLUniformLocation { - const ret = this.gl.getUniformLocation(program, name); - if (!ret) - throw new Error("unable to get location of uniform '" + name + "'"); - - return ret; - } - - private compileShader(type: number, src: string): WebGLShader { - const shader = this.gl.createShader(type); - if (!shader) - throw new Error('Unable to create shader'); - - this.gl.shaderSource(shader, src); - this.gl.compileShader(shader); - - if (!this.gl.getShaderParameter(shader, this.gl.COMPILE_STATUS)) { - const err = this.gl.getShaderInfoLog(shader); - this.gl.deleteShader(shader); - throw new Error('Unable to compile shader: ' + err); - } - - return shader; - } } |