compressedTexImage2D method
void
compressedTexImage2D()
The WebGLRenderingContext.compressedTexImage2D()
and WebGL2RenderingContext.compressedTexImage3D()
methods
of the
WebGL API
specify a two- or
three-dimensional texture image in a compressed format.
Compressed image formats must be enabled by WebGL extensions before using these methods.
Implementation
external void compressedTexImage2D(
GLenum target,
GLint level,
GLenum internalformat,
GLsizei width,
GLsizei height,
GLint border,
ArrayBufferView data,
);