/// import { Size } from '../math/Size'; /** * Represents a WebGL texture object. */ export default class Texture { readonly gl: WebGLRenderingContext; readonly format: GLenum; readonly texture: WebGLTexture; private size; private constructor(); static create(gl: WebGLRenderingContext, format: number): Texture; setContent(buffer: TexImageSource | VideoFrame, size: Size): void; setContentBuffer(buffer: ArrayBufferView | null, size: Size): void; delete(): void; }