compressedTexImage2D method

void compressedTexImage2D(
  1. GLenum target,
  2. GLint level,
  3. GLenum internalformat,
  4. GLsizei width,
  5. GLsizei height,
  6. GLint border,
  7. ArrayBufferView data,
)

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,
);