Interface IGLTexturePixelStore1

像素解包打包时参数。

Hierarchy

  • IGLTexturePixelStore1

Properties

packAlignment?: 2 | 1 | 4 | 8

Packing of pixel data into memory

gl.PACK_ALIGNMENT

默认值为 4 。

packRowLength?: number

Number of pixels in a row.

gl.PACK_ROW_LENGTH

默认值为 0 。

仅 WebGL2。

packSkipPixels?: number

Number of pixel locations skipped before the first pixel is written into memory.

gl.PACK_SKIP_PIXELS

默认值为 0 。

仅 WebGL2。

packSkipRows?: number

Number of rows of pixel locations skipped before the first pixel is written into memory

gl.PACK_SKIP_ROWS

默认值为 0 。

仅 WebGL2。

unpackAlignment?: 2 | 1 | 4 | 8

Unpacking of pixel data from memory.

gl.UNPACK_ALIGNMENT

默认值为 4 。

unpackColorSpaceConversion?: "BROWSER_DEFAULT_WEBGL" | "NONE"

Default color space conversion or no color space conversion.

gl.UNPACK_COLORSPACE_CONVERSION_WEBGL

默认为 "BROWSER_DEFAULT_WEBGL" 。

unpackImageHeight?: number

Image height used for reading pixel data from memory

gl.UNPACK_IMAGE_HEIGHT

默认值为 0 。

仅 WebGL2。

unpackRowLength?: number

Number of pixels in a row.

gl.UNPACK_ROW_LENGTH

默认值为 0 。

仅 WebGL2。

unpackSkipImages?: number

Number of pixel images skipped before the first pixel is read from memory

gl.UNPACK_SKIP_IMAGES

默认值为 0 。

仅 WebGL2。

Generated using TypeDoc