webgl-framework
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -23,4 +23,6 @@ "use strict"; | ||
async load(url, gl) { | ||
const dataIndices = await BinaryDataLoader_1.BinaryDataLoader.load(url + "-indices.bin"); | ||
const dataStrides = await BinaryDataLoader_1.BinaryDataLoader.load(url + "-strides.bin"); | ||
const [dataIndices, dataStrides] = await Promise.all([ | ||
BinaryDataLoader_1.BinaryDataLoader.load(`${url}-indices.bin`), | ||
BinaryDataLoader_1.BinaryDataLoader.load(`${url}-strides.bin`) | ||
]); | ||
console.log(`Loaded ${url}-indices.bin (${dataIndices.byteLength} bytes)`); | ||
@@ -27,0 +29,0 @@ console.log(`Loaded ${url}-strides.bin (${dataStrides.byteLength} bytes)`); |
@@ -162,4 +162,6 @@ class FullScreenUtils { | ||
async load(url, gl) { | ||
const dataIndices = await BinaryDataLoader.load(url + "-indices.bin"); | ||
const dataStrides = await BinaryDataLoader.load(url + "-strides.bin"); | ||
const [dataIndices, dataStrides] = await Promise.all([ | ||
BinaryDataLoader.load(`${url}-indices.bin`), | ||
BinaryDataLoader.load(`${url}-strides.bin`) | ||
]); | ||
console.log(`Loaded ${url}-indices.bin (${dataIndices.byteLength} bytes)`); | ||
@@ -166,0 +168,0 @@ console.log(`Loaded ${url}-strides.bin (${dataStrides.byteLength} bytes)`); |
@@ -168,4 +168,6 @@ (function (global, factory) { | ||
async load(url, gl) { | ||
const dataIndices = await BinaryDataLoader.load(url + "-indices.bin"); | ||
const dataStrides = await BinaryDataLoader.load(url + "-strides.bin"); | ||
const [dataIndices, dataStrides] = await Promise.all([ | ||
BinaryDataLoader.load(`${url}-indices.bin`), | ||
BinaryDataLoader.load(`${url}-strides.bin`) | ||
]); | ||
console.log(`Loaded ${url}-indices.bin (${dataIndices.byteLength} bytes)`); | ||
@@ -172,0 +174,0 @@ console.log(`Loaded ${url}-strides.bin (${dataStrides.byteLength} bytes)`); |
{ | ||
"name": "webgl-framework", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Basic low-level WebGL framework", | ||
@@ -5,0 +5,0 @@ "author": "Oleksandr Popov (github.com/keaukraine/)", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
663507
4629