UNPKG

@tolokoban/tgd

Version:

ToloGameDev library for WebGL2

13 lines 869 B
import { TgdTypeArrayForElements } from "../types"; /** * drawElements() can be used with 8, 16 or 32 unsinged ints arrays. * But the function does not know what type was passed as argument. * You need to specify the type: UNSIGNED_BYTE, UNSIGNED_SHORT or * UNSIGNED_INT. * * This helper function gives you the type of the array passed as argument. */ export declare function webglElementTypeFromTypedArray(typedArray: TgdTypeArrayForElements): 5121 | 5123 | 5125; export declare function webglTypedArrayFromBufferSource(bufferSource: BufferSource, type: number): Int8Array<ArrayBufferLike> | Uint8Array<ArrayBufferLike> | Int16Array<ArrayBufferLike> | Uint16Array<ArrayBufferLike> | Uint32Array<ArrayBufferLike> | Float32Array<ArrayBufferLike>; export declare function webglLookup(type: number): keyof WebGL2RenderingContext; //# sourceMappingURL=webgl.d.ts.map