![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
\inmodule QtOpenGL More...
#include <qopenglpixeltransferoptions.h>
Public Member Functions | |
| QOpenGLPixelTransferOptions () | |
| Constructs a new QOpenGLPixelTransferOptions instance with the default settings. | |
| QOpenGLPixelTransferOptions (const QOpenGLPixelTransferOptions &) | |
| QOpenGLPixelTransferOptions & | operator= (const QOpenGLPixelTransferOptions &) |
| ~QOpenGLPixelTransferOptions () | |
| Destructor. | |
| void | swap (QOpenGLPixelTransferOptions &other) noexcept |
| \memberswap{options} | |
| void | setAlignment (int alignment) |
| Sets the alignment requirements for each pixel row. | |
| int | alignment () const |
| void | setSkipImages (int skipImages) |
| Sets the number of images that are skipped to skipImages. | |
| int | skipImages () const |
| void | setSkipRows (int skipRows) |
| Sets the number of rows that are skipped to skipRows. | |
| int | skipRows () const |
| void | setSkipPixels (int skipPixels) |
| Sets the number of pixels that are skipped to skipPixels. | |
| int | skipPixels () const |
| void | setImageHeight (int imageHeight) |
| Sets the image height for 3D textures to imageHeight. | |
| int | imageHeight () const |
| void | setRowLength (int rowLength) |
| Sets the number of pixels in a row to rowLength. | |
| int | rowLength () const |
| void | setLeastSignificantByteFirst (bool lsbFirst) |
| lsbFirst specifies if bits within a byte are ordered from least to most significat. | |
| bool | isLeastSignificantBitFirst () const |
| void | setSwapBytesEnabled (bool swapBytes) |
| swapBytes specifies if the byte ordering for multibyte components is reversed. | |
| bool | isSwapBytesEnabled () const |
\inmodule QtOpenGL
The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.
Definition at line 18 of file qopenglpixeltransferoptions.h.
| QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions | ( | ) |
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
Definition at line 55 of file qopenglpixeltransferoptions.cpp.
| QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions | ( | const QOpenGLPixelTransferOptions & | rhs | ) |
Definition at line 63 of file qopenglpixeltransferoptions.cpp.
| QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions | ( | ) |
Destructor.
Definition at line 81 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::alignment | ( | ) | const |
Definition at line 97 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::imageHeight | ( | ) | const |
Definition at line 169 of file qopenglpixeltransferoptions.cpp.
| bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst | ( | ) | const |
true if bits within a byte are ordered from least to most significant. Definition at line 206 of file qopenglpixeltransferoptions.cpp.
| bool QOpenGLPixelTransferOptions::isSwapBytesEnabled | ( | ) | const |
true if the byte ordering for multibyte components is reversed. Definition at line 224 of file qopenglpixeltransferoptions.cpp.
| QOpenGLPixelTransferOptions & QOpenGLPixelTransferOptions::operator= | ( | const QOpenGLPixelTransferOptions & | rhs | ) |
Definition at line 71 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::rowLength | ( | ) | const |
Definition at line 187 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setAlignment | ( | int | alignment | ) |
Sets the alignment requirements for each pixel row.
Corresponds to GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.
Definition at line 89 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setImageHeight | ( | int | imageHeight | ) |
Sets the image height for 3D textures to imageHeight.
Corresponds to GL_UNPACK_IMAGE_HEIGHT. The default value is 0.
Definition at line 161 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst | ( | bool | lsbFirst | ) |
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.
Definition at line 198 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setRowLength | ( | int | rowLength | ) |
Sets the number of pixels in a row to rowLength.
Corresponds to GL_UNPACK_ROW_LENGTH. The default value is 0.
Definition at line 179 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setSkipImages | ( | int | skipImages | ) |
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.
Definition at line 107 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setSkipPixels | ( | int | skipPixels | ) |
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.
Definition at line 143 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setSkipRows | ( | int | skipRows | ) |
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.
Definition at line 125 of file qopenglpixeltransferoptions.cpp.
| void QOpenGLPixelTransferOptions::setSwapBytesEnabled | ( | bool | swapBytes | ) |
swapBytes specifies if the byte ordering for multibyte components is reversed.
The default value is false. Corresponds to GL_UNPACK_SWAP_BYTES.
Definition at line 216 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::skipImages | ( | ) | const |
Definition at line 115 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::skipPixels | ( | ) | const |
Definition at line 151 of file qopenglpixeltransferoptions.cpp.
| int QOpenGLPixelTransferOptions::skipRows | ( | ) | const |
Definition at line 133 of file qopenglpixeltransferoptions.cpp.
|
inlinenoexcept |
\memberswap{options}
Definition at line 27 of file qopenglpixeltransferoptions.h.