内容表

上一话题

QOpenGLFunctions

下一话题

QOpenGLShader

QOpenGLPixelTransferOptions

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

Inheritance diagram of PySide2.QtGui.QOpenGLPixelTransferOptions

概要

函数

详细描述

class QOpenGLPixelTransferOptions

QOpenGLPixelTransferOptions(arg__1)

param arg__1

QOpenGLPixelTransferOptions

构造新 QOpenGLPixelTransferOptions instance with the default settings.

PySide2.QtGui.QOpenGLPixelTransferOptions. alignment ( )
返回类型

int

Returns the current alignment requirement for each pixel row.

另请参阅

setAlignment()

PySide2.QtGui.QOpenGLPixelTransferOptions. imageHeight ( )
返回类型

int

Returns the currently set image height.

另请参阅

setImageHeight()

PySide2.QtGui.QOpenGLPixelTransferOptions. isLeastSignificantBitFirst ( )
返回类型

bool

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

PySide2.QtGui.QOpenGLPixelTransferOptions. isSwapBytesEnabled ( )
返回类型

bool

返回 true if the byte ordering for multibyte components is reversed.

PySide2.QtGui.QOpenGLPixelTransferOptions. rowLength ( )
返回类型

int

Returns the currently set row length.

另请参阅

setRowLength()

PySide2.QtGui.QOpenGLPixelTransferOptions. setAlignment ( alignment )
参数

alignment int

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

另请参阅

alignment()

PySide2.QtGui.QOpenGLPixelTransferOptions. setImageHeight ( imageHeight )
参数

imageHeight int

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

另请参阅

imageHeight()

PySide2.QtGui.QOpenGLPixelTransferOptions. setLeastSignificantByteFirst ( lsbFirst )
参数

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 .

PySide2.QtGui.QOpenGLPixelTransferOptions. setRowLength ( rowLength )
参数

rowLength int

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

另请参阅

rowLength()

PySide2.QtGui.QOpenGLPixelTransferOptions. setSkipImages ( skipImages )
参数

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.

另请参阅

skipImages()

PySide2.QtGui.QOpenGLPixelTransferOptions. setSkipPixels ( skipPixels )
参数

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.

另请参阅

skipPixels()

PySide2.QtGui.QOpenGLPixelTransferOptions. setSkipRows ( skipRows )
参数

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.

另请参阅

skipRows()

PySide2.QtGui.QOpenGLPixelTransferOptions. setSwapBytesEnabled ( swapBytes )
参数

swapBytes bool

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

PySide2.QtGui.QOpenGLPixelTransferOptions. skipImages ( )
返回类型

int

Returns the number of images that are skipped.

另请参阅

setSkipImages()

PySide2.QtGui.QOpenGLPixelTransferOptions. skipPixels ( )
返回类型

int

Returns the number of pixels that are skipped.

另请参阅

setSkipPixels()

PySide2.QtGui.QOpenGLPixelTransferOptions. skipRows ( )
返回类型

int

Returns the number of rows that are skipped.

另请参阅

setSkipRows()

PySide2.QtGui.QOpenGLPixelTransferOptions. swap ( other )
参数

other QOpenGLPixelTransferOptions