QOpenGLPixelTransferOptions Class
La classe `QOpenGLPixelTransferOptions` descrive le modalità di memorizzazione dei pixel che influenzano il decomprimimento dei pixel durante il caricamento delle texture. Per saperne di più...
| Intestazione: | #include <QOpenGLPixelTransferOptions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpenGL) target_link_libraries(mytarget PRIVATE Qt6::OpenGL) |
| qmake: | QT += opengl |
Funzioni pubbliche
| 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) |
Documentazione sulle funzioni membro
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()
Crea una nuova istanza di QOpenGLPixelTransferOptions con le impostazioni predefinite.
[noexcept] QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()
Distruttore.
int QOpenGLPixelTransferOptions::alignment() const
Restituisce il requisito di allineamento corrente per ciascuna riga di pixel.
Vedi anche setAlignment().
int QOpenGLPixelTransferOptions::imageHeight() const
Restituisce l'altezza dell'immagine attualmente impostata.
Vedi anche setImageHeight().
bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const
Restituisce “ true ” se i bit all’interno di un byte sono ordinati dal meno al più significativo.
bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const
Restituisce ` true ` se l'ordine dei byte delle componenti multibyte è invertito.
int QOpenGLPixelTransferOptions::rowLength() const
Restituisce la lunghezza della riga attualmente impostata.
Vedi anche setRowLength().
void QOpenGLPixelTransferOptions::setAlignment(int alignment)
Imposta i requisiti di " alignment " per ogni riga di pixel. Corrisponde a " GL_UNPACK_ALIGNMENT". Il valore predefinito è 4, come specificato da OpenGL.
Vedi anche alignment().
void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)
Imposta l'altezza dell'immagine per le texture 3D su imageHeight. Corrisponde a GL_UNPACK_IMAGE_HEIGHT. Il valore predefinito è 0.
Vedi anche imageHeight().
void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)
lsbFirst Specifica se i bit all’interno di un byte sono ordinati dal meno significativo al più significativo. Il valore predefinito è “ false ”, il che significa che il primo bit di ogni byte è quello più significativo. Ciò è rilevante solo per i dati bitmap. Corrisponde a “ GL_UNPACK_LSB_FIRST ”.
void QOpenGLPixelTransferOptions::setRowLength(int rowLength)
Imposta il numero di pixel in una riga su rowLength. Corrisponde a GL_UNPACK_ROW_LENGTH. Il valore predefinito è 0.
Vedi anche rowLength().
void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)
Imposta il numero di immagini da saltare in skipImages. Corrisponde a GL_UNPACK_SKIP_IMAGES. Equivale ad incrementare il puntatore passato a QOpenGLTexture::setData(). Il valore predefinito è 0.
Vedi anche skipImages().
void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)
Imposta il numero di pixel da saltare in ` skipPixels`. Corrisponde a ` GL_UNPACK_SKIP_PIXELS`. Equivale a incrementare il puntatore passato a ` QOpenGLTexture::setData()`. Il valore predefinito è 0.
Vedi anche skipPixels().
void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)
Imposta il numero di righe da saltare in ` skipRows`. Corrisponde a ` GL_UNPACK_SKIP_ROWS`. Equivale ad incrementare il puntatore passato a ` QOpenGLTexture::setData()`. Il valore predefinito è 0.
Vedi anche skipRows().
void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)
swapBytes Specifica se l'ordine dei byte per i componenti multibyte è invertito. Il valore predefinito è false. Corrisponde a GL_UNPACK_SWAP_BYTES.
Vedi anche isSwapBytesEnabled().
int QOpenGLPixelTransferOptions::skipImages() const
Restituisce il numero di immagini saltate.
Vedi anche setSkipImages().
int QOpenGLPixelTransferOptions::skipPixels() const
Restituisce il numero di pixel saltati.
Vedi anche setSkipPixels().
int QOpenGLPixelTransferOptions::skipRows() const
Restituisce il numero di righe saltate.
Vedi anche setSkipRows().
[noexcept] void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions &other)
Scambia queste opzioni con other. Questa operazione è molto veloce e non fallisce mai.
© 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.