En esta página

QOpenGLPixelTransferOptions Class

La clase QOpenGLPixelTransferOptions describe los modos de almacenamiento de píxeles que afectan al desempaquetado de píxeles durante la carga de texturas. Más...

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)

Descripción detallada

Documentación de las funciones de los miembros

QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()

Construye una nueva instancia de QOpenGLPixelTransferOptions con la configuración por defecto.

[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 actual de la imagen.

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 se invierte el orden de los bytes de los componentes multibyte.

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. Corresponde a 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 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 se ordenan de menor a mayor significación. El valor predeterminado es false, lo que significa que el primer bit de cada byte es el más significativo. Esto sólo es significativo para los datos de mapa de bits. Corresponde a GL_UNPACK_LSB_FIRST.

void QOpenGLPixelTransferOptions::setRowLength(int rowLength)

Establece el número de píxeles de una fila en rowLength. Corresponde 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 saltan en skipImages. Corresponde a 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 saltan en skipPixels. Corresponde a 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 saltan en skipRows. Corresponde a GL_UNPACK_SKIP_ROWS. Equivale 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 para los componentes multibyte. El valor por defecto es false. Corresponde a GL_UNPACK_SWAP_BYTES.

Véase también isSwapBytesEnabled().

int QOpenGLPixelTransferOptions::skipImages() const

Devuelve el número de imágenes omitidas.

Véase también setSkipImages().

int QOpenGLPixelTransferOptions::skipPixels() const

Devuelve el número de píxeles omitidos.

Véase también setSkipPixels().

int QOpenGLPixelTransferOptions::skipRows() const

Devuelve el número de filas que se saltan.

Véase también setSkipRows().

[noexcept] void QOpenGLPixelTransferOptions::swap(QOpenGLPixelTransferOptions &other)

Cambia esta opción por 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.