texImage2D method

void texImage2D(
  1. GLenum target,
  2. GLint level,
  3. GLint internalformat,
  4. JSAny formatOrWidth,
  5. JSAny heightOrType,
  6. JSAny borderOrSource, [
  7. GLenum format,
  8. GLenum type,
  9. ArrayBufferView? pixels,
])

The WebGLRenderingContext.texImage2D() method of the WebGL API specifies a two-dimensional texture image.

Implementation

external void texImage2D(
  GLenum target,
  GLint level,
  GLint internalformat,
  JSAny formatOrWidth,
  JSAny heightOrType,
  JSAny borderOrSource, [
  GLenum format,
  GLenum type,
  ArrayBufferView? pixels,
]);