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)
1行あたりのピクセル数を `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 と入れ替えます。この操作は非常に高速で、失敗することはありません。
© 2026 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.