QOpenGLPixelTransferOptions

The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload. More

Inheritance diagram of PySide6.QtOpenGL.QOpenGLPixelTransferOptions

Synopsis

Functions

Detailed Description

class PySide6.QtOpenGL.QOpenGLPixelTransferOptions

PySide6.QtOpenGL.QOpenGLPixelTransferOptions(arg__1)

Parameters

arg__1PySide6.QtOpenGL.QOpenGLPixelTransferOptions

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.alignment()
Return type

int

Returns the current alignment requirement for each pixel row.

See also

setAlignment()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.imageHeight()
Return type

int

Returns the currently set image height.

See also

setImageHeight()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.isLeastSignificantBitFirst()
Return type

bool

Returns true if bits within a byte are ordered from least to most significant.

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.isSwapBytesEnabled()
Return type

bool

Returns true if the byte ordering for multibyte components is reversed.

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.rowLength()
Return type

int

Returns the currently set row length.

See also

setRowLength()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setAlignment(alignment)
Parameters

alignment – int

Sets the alignment requirements for each pixel row. Corresponds to GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.

See also

alignment()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setImageHeight(imageHeight)
Parameters

imageHeight – int

Sets the image height for 3D textures to imageHeight. Corresponds to GL_UNPACK_IMAGE_HEIGHT. The default value is 0.

See also

imageHeight()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setLeastSignificantByteFirst(lsbFirst)
Parameters

lsbFirst – bool

lsbFirst specifies if bits within a byte are ordered from least to most significat. The default value is false, meaning that the first bit in each byte is the most significant one. This is significant for bitmap data only. Corresponds to GL_UNPACK_LSB_FIRST.

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setRowLength(rowLength)
Parameters

rowLength – int

Sets the number of pixels in a row to rowLength. Corresponds to GL_UNPACK_ROW_LENGTH. The default value is 0.

See also

rowLength()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setSkipImages(skipImages)
Parameters

skipImages – int

Sets the number of images that are skipped to skipImages. Corresponds to GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to setData() . The default value is 0.

See also

skipImages()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setSkipPixels(skipPixels)
Parameters

skipPixels – int

Sets the number of pixels that are skipped to skipPixels. Corresponds to GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to setData() . The default value is 0.

See also

skipPixels()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setSkipRows(skipRows)
Parameters

skipRows – int

Sets the number of rows that are skipped to skipRows. Corresponds to GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to setData() . The default value is 0.

See also

skipRows()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.setSwapBytesEnabled(swapBytes)
Parameters

swapBytes – bool

swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is false. Corresponds to GL_UNPACK_SWAP_BYTES.

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.skipImages()
Return type

int

Returns the number of images that are skipped.

See also

setSkipImages()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.skipPixels()
Return type

int

Returns the number of pixels that are skipped.

See also

setSkipPixels()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.skipRows()
Return type

int

Returns the number of rows that are skipped.

See also

setSkipRows()

PySide6.QtOpenGL.QOpenGLPixelTransferOptions.swap(other)
Parameters

otherPySide6.QtOpenGL.QOpenGLPixelTransferOptions