Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hscmap/gl-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hscmap/gl-wrapper - npm Package Compare versions

Comparing version 0.5.0 to 0.6.0

3

lib/program.d.ts

@@ -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;

23

lib/program.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc