QOpenGLPixelTransferOptions Class
La clase `QOpenGLPixelTransferOptions` describe los modos de almacenamiento de píxeles que influyen en la descompresión de los píxeles durante la carga de texturas. Más información...
| Cabecera: | #include <QOpenGLPixelTransferOptions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS OpenGL) target_link_libraries(mytarget PRIVATE Qt6::OpenGL) |
| qmake: | QT += opengl |
Funciones 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) |
Documentación de las funciones de miembro
QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()
Crea una nueva instancia de `QOpenGLPixelTransferOptions` con la configuración predeterminada.
[noexcept] QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()
Destructor.
int QOpenGLPixelTransferOptions::alignment() const
Devuelve el requisito de alineación actual para cada fila de píxeles.
Véase también ` setAlignment()`.
int QOpenGLPixelTransferOptions::imageHeight() const
Devuelve la altura de la imagen establecida actualmente.
Véase también setImageHeight().
bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const
Devuelve « true » si los bits de un byte están ordenados de menor a mayor importancia.
bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const
Devuelve « true » si el orden de los bytes de los componentes multibyte está invertido.
int QOpenGLPixelTransferOptions::rowLength() const
Devuelve la longitud de fila establecida actualmente.
Véase también setRowLength().
void QOpenGLPixelTransferOptions::setAlignment(int alignment)
Establece los requisitos de « alignment » para cada fila de píxeles. Se corresponde con « GL_UNPACK_ALIGNMENT ». El valor por defecto es 4, tal y como especifica OpenGL.
Véase también alignment().
void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)
Establece la altura de la imagen para las texturas 3D en imageHeight. Corresponde a GL_UNPACK_IMAGE_HEIGHT. El valor por defecto es 0.
Véase también imageHeight().
void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)
lsbFirst Especifica si los bits de un byte están ordenados de menor a mayor importancia. El valor por defecto es « false », lo que significa que el primer bit de cada byte es el más significativo. Esto solo es relevante para los datos de mapas de bits. Se corresponde con « GL_UNPACK_LSB_FIRST ».
void QOpenGLPixelTransferOptions::setRowLength(int rowLength)
Establece el número de píxeles de una fila en rowLength. Equivale a GL_UNPACK_ROW_LENGTH. El valor por defecto es 0.
Véase también ` rowLength()`.
void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)
Establece el número de imágenes que se omiten en skipImages. Se corresponde con GL_UNPACK_SKIP_IMAGES. Equivale a incrementar el puntero pasado a QOpenGLTexture::setData(). El valor por defecto es 0.
Véase también skipImages().
void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)
Establece el número de píxeles que se omiten en ` skipPixels`. Se corresponde con ` GL_UNPACK_SKIP_PIXELS`. Equivale a incrementar el puntero pasado a ` QOpenGLTexture::setData()`. El valor por defecto es 0.
Véase también skipPixels().
void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)
Establece el número de filas que se omiten en ` skipRows`. Equivale a ` GL_UNPACK_SKIP_ROWS`. Es equivalente a incrementar el puntero pasado a ` QOpenGLTexture::setData()`. El valor por defecto es 0.
Véase también skipRows().
void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)
swapBytes Especifica si se invierte el orden de los bytes en los componentes multibyte. El valor por defecto es « false ». Se corresponde con « GL_UNPACK_SWAP_BYTES ».
Véase también isSwapBytesEnabled().
int QOpenGLPixelTransferOptions::skipImages() const
Devuelve el número de imágenes que se omiten.
Véase también setSkipImages().
int QOpenGLPixelTransferOptions::skipPixels() const
Devuelve el número de píxeles que se omiten.
Véase también setSkipPixels().
int QOpenGLPixelTransferOptions::skipRows() const
Devuelve el número de filas que se omiten.
Véase también setSkipRows().
[noexcept] void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions &other)
Intercambia estas opciones con other. Esta operación es muy rápida y nunca falla.
© 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.