Type alias ReadPixelsFormat

ReadPixelsFormat: "ALPHA" | "RGB" | "RGBA" | "RED" | "RG" | "RED_INTEGER" | "RG_INTEGER" | "RGB_INTEGER" | "RGBA_INTEGER"

A GLenum specifying the format of the pixel data. Possible values:

  • gl.ALPHA Discards the red, green and blue components and reads the alpha component.
  • gl.RGB Discards the alpha components and reads the red, green and blue components.
  • gl.RGBA Red, green, blue and alpha components are read from the color buffer.

WebGL2 adds

  • gl.RED
  • gl.RG
  • gl.RED_INTEGER
  • gl.RG_INTEGER
  • gl.RGB_INTEGER
  • gl.RGBA_INTEGER

Generated using TypeDoc