@hscmap/gl-wrapper
Advanced tools
Comparing version 0.6.2 to 0.7.0
@@ -36,2 +36,5 @@ import { AttribList } from './attrib_list'; | ||
}): void; | ||
uniform2fv(vars: { | ||
[name: string]: number[]; | ||
}): void; | ||
uniform3fv(vars: { | ||
@@ -38,0 +41,0 @@ [name: string]: number[]; |
@@ -102,12 +102,17 @@ "use strict"; | ||
}; | ||
Program.prototype.uniform3fv = function (vars) { | ||
Program.prototype.uniform2fv = function (vars) { | ||
for (var name_6 in vars) { | ||
this.gl.uniform3fv(this.uniformLocation(name_6), vars[name_6]); | ||
this.gl.uniform2fv(this.uniformLocation(name_6), vars[name_6]); | ||
} | ||
}; | ||
Program.prototype.uniform4fv = function (vars) { | ||
Program.prototype.uniform3fv = function (vars) { | ||
for (var name_7 in vars) { | ||
this.gl.uniform4fv(this.uniformLocation(name_7), vars[name_7]); | ||
this.gl.uniform3fv(this.uniformLocation(name_7), vars[name_7]); | ||
} | ||
}; | ||
Program.prototype.uniform4fv = function (vars) { | ||
for (var name_8 in vars) { | ||
this.gl.uniform4fv(this.uniformLocation(name_8), vars[name_8]); | ||
} | ||
}; | ||
Program.prototype.createShader = function (source, type) { | ||
@@ -114,0 +119,0 @@ var shader = this.gl.createShader(type); |
{ | ||
"name": "@hscmap/gl-wrapper", | ||
"version": "0.6.2", | ||
"version": "0.7.0", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
20881
472