QOpenGLPixelTransferOptions Class
QOpenGLPixelTransferOptions クラスは、テクスチャのアップロード中にピクセルのアンパックに影響するピクセルストレージモードを記述します。詳細...
ヘッダー | #include <QOpenGLPixelTransferOptions> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS OpenGL) target_link_libraries(mytarget PRIVATE Qt6::OpenGL) |
qmake: | QT += opengl |
パブリック関数
QOpenGLPixelTransferOptions() | |
~QOpenGLPixelTransferOptions() | |
int | alignment() const |
int | imageHeight() const |
bool | isLeastSignificantBitFirst() const |
bool | isSwapBytesEnabled() const |
int | rowLength() const |
void | setAlignment(int alignment) |
void | setImageHeight(int imageHeight) |
void | setLeastSignificantByteFirst(bool lsbFirst) |
void | setRowLength(int rowLength) |
void | setSkipImages(int skipImages) |
void | setSkipPixels(int skipPixels) |
void | setSkipRows(int skipRows) |
void | setSwapBytesEnabled(bool swapBytes) |
int | skipImages() const |
int | skipPixels() const |
int | skipRows() const |
void | swap(QOpenGLPixelTransferOptions &other) |
メンバ関数の説明
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()
デフォルト設定で新しい QOpenGLPixelTransferOptions インスタンスを構築します。
[noexcept]
QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()
破壊者。
int QOpenGLPixelTransferOptions::alignment() const
各ピクセル行の現在のアライメント要求を返す。
setAlignment()も参照 。
int QOpenGLPixelTransferOptions::imageHeight() const
現在設定されている画像の高さを返します。
setImageHeight()も参照 ください。
bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const
バイト内のビットが最下位から最上位まで並んでいる場合、true
を返す。
bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const
マルチバイト成分のバイト順序が逆であれば、true
を返す。
int QOpenGLPixelTransferOptions::rowLength() const
現在設定されている行の長さを返します。
setRowLength()も参照 ください。
void QOpenGLPixelTransferOptions::setAlignment(int alignment)
各ピクセル行のalignment 要件を設定する。GL_UNPACK_ALIGNMENT
に対応します。 デフォルト値は OpenGL で指定されている 4 です。
alignment()も参照してください 。
void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)
3D テクスチャの画像の高さをimageHeight に設定します。GL_UNPACK_IMAGE_HEIGHT
に対応します。 デフォルト値は 0 です。
imageHeight()も参照してください 。
void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)
lsbFirst は、バイト内のビットを最下位から最上位に並べるかどうかを指定する。デフォルト値は で、各バイトの最初のビットが最上位であることを意味する。これはビットマップデータでのみ有効です。 に対応する。false
GL_UNPACK_LSB_FIRST
void QOpenGLPixelTransferOptions::setRowLength(int rowLength)
行のピクセル数をrowLength に設定する。GL_UNPACK_ROW_LENGTH
に対応。 デフォルト値は 0。
rowLength()も参照 。
void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)
skipImages に、スキップする画像の数を設定する。GL_UNPACK_SKIP_IMAGES
に対応。QOpenGLTexture::setData() に渡されたポインタをインクリメントするのと等価。デフォルト値は 0。
skipImages()も参照 。
void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)
skipPixels にスキップするピクセル数を設定する。GL_UNPACK_SKIP_PIXELS
に対応。QOpenGLTexture::setData() に渡されたポインタをインクリメントするのと同じ。デフォルト値は 0。
skipPixels()も参照 。
void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)
skipRows にスキップする行数を設定する。GL_UNPACK_SKIP_ROWS
に対応。QOpenGLTexture::setData() に渡されたポインタをインクリメントするのと同じ。デフォルト値は 0。
skipRows()も参照 。
void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)
swapBytes マルチバイト構成要素のバイト順序を逆にするかどうかを指定する。デフォルト値は 。 に対応する。false
GL_UNPACK_SWAP_BYTES
isSwapBytesEnabled()も参照 。
int QOpenGLPixelTransferOptions::skipImages() const
スキップされた画像の数を返します。
setSkipImages()も参照 。
int QOpenGLPixelTransferOptions::skipPixels() const
スキップされたピクセルの数を返す。
setSkipPixels()も参照 。
int QOpenGLPixelTransferOptions::skipRows() const
スキップされた行の数を返します。
setSkipRows()も参照 。
[noexcept]
void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions &other)
このオプションをother と入れ替える。この操作は非常に速く、失敗することはない。
© 2025 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.