ImageArray

ImageArray is a class that holds a collection of images as a texture array, such that many images can be efficiently rendered without requiring a lot of draw calls / GL state updates.

Current design is brute-force, loading all images at once, little other logic. Will fall over and die if you try to use more than "Max Array Texture Layers" (usually 2048) images.

Constructors

Properties

dataView: DataModel
gl: WebGL2RenderingContext
logEl: HTMLElement
lumaTexture?: Texture
onProgress?: (n: number) => void
texture: WebGLTexture
textures: Map<string, ImageArrayEntry>
texturesByIndex: Map<number, ImageArrayEntry>

Methods