QOpenGLPixelTransferOptions Class
A classe QOpenGLPixelTransferOptions descreve os modos de armazenamento de pixels que afetam a descompactação dos pixels durante o carregamento da textura. Mais...
| Cabeçalho: | #include <QOpenGLPixelTransferOptions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpenGL) target_link_libraries(mytarget PRIVATE Qt6::OpenGL) |
| qmake: | QT += opengl |
Funções públicas
| 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) |
Documentação das funções de membro
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()
Cria uma nova instância de `QOpenGLPixelTransferOptions` com as configurações padrão.
[noexcept] QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()
Destrutor.
int QOpenGLPixelTransferOptions::alignment() const
Retorna o requisito de alinhamento atual para cada linha de pixels.
Veja também setAlignment().
int QOpenGLPixelTransferOptions::imageHeight() const
Retorna a altura da imagem definida no momento.
Veja também ` setImageHeight()`.
bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const
Retorna ` true ` se os bits dentro de um byte estiverem ordenados do menos ao mais significativo.
bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const
Retorna ` true ` se a ordem dos bytes dos componentes multibyte estiver invertida.
int QOpenGLPixelTransferOptions::rowLength() const
Retorna o comprimento da linha definido no momento.
Veja também setRowLength().
void QOpenGLPixelTransferOptions::setAlignment(int alignment)
Define os requisitos de alignment e para cada linha de pixels. Corresponde a GL_UNPACK_ALIGNMENT. O valor padrão é 4, conforme especificado pela OpenGL.
Veja também alignment().
void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)
Define a altura da imagem para texturas 3D como imageHeight. Corresponde a GL_UNPACK_IMAGE_HEIGHT. O valor padrão é 0.
Veja também imageHeight().
void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)
lsbFirst especifica se os bits dentro de um byte estão ordenados do menos significativo para o mais significativo. O valor padrão é ` false`, o que significa que o primeiro bit de cada byte é o mais significativo. Isso é relevante apenas para dados de bitmap. Corresponde a ` GL_UNPACK_LSB_FIRST`.
void QOpenGLPixelTransferOptions::setRowLength(int rowLength)
Define o número de pixels em uma linha como rowLength. Corresponde a GL_UNPACK_ROW_LENGTH. O valor padrão é 0.
Veja também ` rowLength()`.
void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)
Define o número de imagens que serão puladas em skipImages. Corresponde a GL_UNPACK_SKIP_IMAGES. Equivale a incrementar o ponteiro passado para QOpenGLTexture::setData(). O valor padrão é 0.
Veja também skipImages().
void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)
Define o número de pixels que serão ignorados em ` skipPixels`. Corresponde a ` GL_UNPACK_SKIP_PIXELS`. É equivalente a incrementar o ponteiro passado para ` QOpenGLTexture::setData()`. O valor padrão é 0.
Veja também skipPixels().
void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)
Define o número de linhas que serão puladas em ` skipRows`. Corresponde a ` GL_UNPACK_SKIP_ROWS`. É equivalente a incrementar o ponteiro passado para ` QOpenGLTexture::setData()`. O valor padrão é 0.
Veja também skipRows().
void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)
swapBytes Especifica se a ordem dos bytes para componentes multibyte está invertida. O valor padrão é false. Corresponde a GL_UNPACK_SWAP_BYTES.
Veja também isSwapBytesEnabled().
int QOpenGLPixelTransferOptions::skipImages() const
Retorna o número de imagens que foram ignoradas.
Veja também setSkipImages().
int QOpenGLPixelTransferOptions::skipPixels() const
Retorna o número de pixels que foram ignorados.
Veja também ` setSkipPixels()`.
int QOpenGLPixelTransferOptions::skipRows() const
Retorna o número de linhas que foram ignoradas.
Veja também setSkipRows().
[noexcept] void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions &other)
Troca essas opções por other. Essa operação é muito rápida e nunca falha.
© 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.