![]() |
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 17 of file qopenglpixeltransferoptions.h.
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions | ( | ) |
Constructs a new QOpenGLPixelTransferOptions instance with the default settings.
Definition at line 54 of file qopenglpixeltransferoptions.cpp.
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions | ( | const QOpenGLPixelTransferOptions & | rhs | ) |
Definition at line 62 of file qopenglpixeltransferoptions.cpp.
QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions | ( | ) |
Destructor.
Definition at line 80 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::alignment | ( | ) | const |
Definition at line 96 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::imageHeight | ( | ) | const |
Definition at line 168 of file qopenglpixeltransferoptions.cpp.
bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst | ( | ) | const |
true
if bits within a byte are ordered from least to most significant. Definition at line 205 of file qopenglpixeltransferoptions.cpp.
bool QOpenGLPixelTransferOptions::isSwapBytesEnabled | ( | ) | const |
true
if the byte ordering for multibyte components is reversed. Definition at line 223 of file qopenglpixeltransferoptions.cpp.
QOpenGLPixelTransferOptions & QOpenGLPixelTransferOptions::operator= | ( | const QOpenGLPixelTransferOptions & | rhs | ) |
Definition at line 70 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::rowLength | ( | ) | const |
Definition at line 186 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 88 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 160 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 197 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 178 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 106 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 142 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 124 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 215 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::skipImages | ( | ) | const |
Definition at line 114 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::skipPixels | ( | ) | const |
Definition at line 150 of file qopenglpixeltransferoptions.cpp.
int QOpenGLPixelTransferOptions::skipRows | ( | ) | const |
Definition at line 132 of file qopenglpixeltransferoptions.cpp.
|
inlinenoexcept |
\memberswap{options}
Definition at line 26 of file qopenglpixeltransferoptions.h.