The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload. More...
|CMake:|| find_package(Qt6 COMPONENTS OpenGL REQUIRED) |
target_link_libraries(mytarget PRIVATE Qt6::OpenGL)
|qmake:||QT += opengl|
Member Function Documentation
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
Returns the current alignment requirement for each pixel row.
See also setAlignment().
Returns the currently set image height.
See also setImageHeight().
true if bits within a byte are ordered from least to most significant.
true if the byte ordering for multibyte components is reversed.
Returns the currently set row length.
See also setRowLength().
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().
Sets the image height for 3D textures to imageHeight. Corresponds to
GL_UNPACK_IMAGE_HEIGHT. The default value is 0.
See also imageHeight().
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
Sets the number of pixels in a row to rowLength. Corresponds to
GL_UNPACK_ROW_LENGTH. The default value is 0.
See also rowLength().
Sets the number of images that are skipped to skipImages. Corresponds to
GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.
See also skipImages().
Sets the number of pixels that are skipped to skipPixels. Corresponds to
GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.
See also skipPixels().
Sets the number of rows that are skipped to skipRows. Corresponds to
GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.
See also skipRows().
swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is
false. Corresponds to
See also isSwapBytesEnabled().
Returns the number of images that are skipped.
See also setSkipImages().
Returns the number of pixels that are skipped.
See also setSkipPixels().
Returns the number of rows that are skipped.
See also setSkipRows().
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.