twgl.js 5.0.4 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/5.x/twgl-full.d.ts +3 -2
- package/dist/5.x/twgl-full.js +631 -1332
- package/dist/5.x/twgl-full.module.js +438 -410
- package/dist/5.x/twgl.d.ts +3 -2
- package/dist/5.x/twgl.js +345 -924
- package/package.json +20 -21
package/dist/5.x/twgl.d.ts
CHANGED
|
@@ -24,9 +24,9 @@ export type AttribInfo = {
|
|
|
24
24
|
};
|
|
25
25
|
export type FullArraySpec = {
|
|
26
26
|
value?: number[] | ArrayBufferView;
|
|
27
|
-
data
|
|
27
|
+
data?: number | number[] | ArrayBufferView;
|
|
28
28
|
numComponents?: number;
|
|
29
|
-
type?:
|
|
29
|
+
type?: number | TypedArrayConstructor;
|
|
30
30
|
size?: number;
|
|
31
31
|
normalize?: boolean;
|
|
32
32
|
stride?: number;
|
|
@@ -235,6 +235,7 @@ export function createTextures(gl: WebGLRenderingContext, options: {
|
|
|
235
235
|
|
|
236
236
|
export function setAttributePrefix(prefix: string): void;
|
|
237
237
|
export function createBufferFromTypedArray(gl: WebGLRenderingContext, typedArray: ArrayBuffer | SharedArrayBuffer | ArrayBufferView | WebGLBuffer, type?: number, drawType?: number): WebGLBuffer;
|
|
238
|
+
export type TypedArrayConstructor = Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor;
|
|
238
239
|
export function createAttribsFromArrays(gl: WebGLRenderingContext, arrays: Arrays, srcBufferInfo?: BufferInfo): {
|
|
239
240
|
[key: string]: AttribInfo;
|
|
240
241
|
};
|