copyTexImage2D method

void copyTexImage2D(
  1. GLenum target,
  2. GLint level,
  3. GLenum internalformat,
  4. GLint x,
  5. GLint y,
  6. GLsizei width,
  7. GLsizei height,
  8. GLint border,
)

The WebGLRenderingContext.copyTexImage2D() method of the WebGL API copies pixels from the current WebGLFramebuffer into a 2D texture image.

Implementation

external void copyTexImage2D(
  GLenum target,
  GLint level,
  GLenum internalformat,
  GLint x,
  GLint y,
  GLsizei width,
  GLsizei height,
  GLint border,
);