@hscmap/gl-wrapper
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -27,2 +27,5 @@ import { AttribList } from './attrib_list'; | ||
}, transpose?: boolean): void; | ||
uniformMatrix2fv(matrices: { | ||
[name: string]: Float32Array; | ||
}, transpose?: boolean): void; | ||
uniform1f(vars: { | ||
@@ -29,0 +32,0 @@ [name: string]: number; |
@@ -85,20 +85,27 @@ "use strict"; | ||
}; | ||
Program.prototype.uniformMatrix2fv = function (matrices, transpose) { | ||
if (transpose === void 0) { transpose = false; } | ||
for (var name_3 in matrices) { | ||
var matrix = matrices[name_3]; | ||
this.gl.uniformMatrix2fv(this.uniformLocation(name_3), transpose, matrix); | ||
} | ||
}; | ||
Program.prototype.uniform1f = function (vars) { | ||
for (var name_3 in vars) { | ||
this.gl.uniform1f(this.uniformLocation(name_3), vars[name_3]); | ||
for (var name_4 in vars) { | ||
this.gl.uniform1f(this.uniformLocation(name_4), vars[name_4]); | ||
} | ||
}; | ||
Program.prototype.uniform1i = function (vars) { | ||
for (var name_4 in vars) { | ||
this.gl.uniform1i(this.uniformLocation(name_4), vars[name_4]); | ||
for (var name_5 in vars) { | ||
this.gl.uniform1i(this.uniformLocation(name_5), vars[name_5]); | ||
} | ||
}; | ||
Program.prototype.uniform3fv = function (vars) { | ||
for (var name_5 in vars) { | ||
this.gl.uniform3fv(this.uniformLocation(name_5), vars[name_5]); | ||
for (var name_6 in vars) { | ||
this.gl.uniform3fv(this.uniformLocation(name_6), vars[name_6]); | ||
} | ||
}; | ||
Program.prototype.uniform4fv = function (vars) { | ||
for (var name_6 in vars) { | ||
this.gl.uniform4fv(this.uniformLocation(name_6), vars[name_6]); | ||
for (var name_7 in vars) { | ||
this.gl.uniform4fv(this.uniformLocation(name_7), vars[name_7]); | ||
} | ||
@@ -105,0 +112,0 @@ }; |
{ | ||
"name": "@hscmap/gl-wrapper", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"main": "./lib/index.js", | ||
@@ -5,0 +5,0 @@ "types": "./lib/index.d.ts", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
20280
16
455
1