IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QOpenGLPixelTransferOptions Class

The QOpenGLPixelTransferOptions class describes the pixel storage modes that affect the unpacking of pixels during texture upload.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QOpenGLPixelTransferOptions Class▲

  • Header: QOpenGLPixelTransferOptions

  • qmake: QT += gui

Detailed Description▲

 

Member Function Documentation▲

 

QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()▲

Constructs a new QOpenGLPixelTransferOptions instance with the default settings.

QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()▲

Destructor.

int QOpenGLPixelTransferOptions::alignment() const▲

Returns the current alignment requirement for each pixel row.

See Also▲

See also setAlignment()

int QOpenGLPixelTransferOptions::imageHeight() const▲

Returns the currently set image height.

See Also▲

See also setImageHeight()

bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const▲

Returns true if bits within a byte are ordered from least to most significant.

bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const▲

Returns true if the byte ordering for multibyte components is reversed.

int QOpenGLPixelTransferOptions::rowLength() const▲

Returns the currently set row length.

See Also▲

See also setRowLength()

void QOpenGLPixelTransferOptions::setAlignment(int alignment)▲

Sets the alignment requirements for each pixel row. Corresponds to GL_UNPACK_ALIGNMENT. The default value is 4, as specified by OpenGL.

See Also▲

See also alignment()

void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)▲

Sets the image height for 3D textures to imageHeight. Corresponds to GL_UNPACK_IMAGE_HEIGHT. The default value is 0.

See Also▲

See also imageHeight()

void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)▲

lsbFirst specifies if bits within a byte are ordered from least to most significat. The default value is false, meaning that the first bit in each byte is the most significant one. This is significant for bitmap data only. Corresponds to GL_UNPACK_LSB_FIRST.

void QOpenGLPixelTransferOptions::setRowLength(int rowLength)▲

Sets the number of pixels in a row to rowLength. Corresponds to GL_UNPACK_ROW_LENGTH. The default value is 0.

See Also▲

See also rowLength()

void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)▲

Sets the number of images that are skipped to skipImages. Corresponds to GL_UNPACK_SKIP_IMAGES. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See Also▲

See also skipImages()

void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)▲

Sets the number of pixels that are skipped to skipPixels. Corresponds to GL_UNPACK_SKIP_PIXELS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See Also▲

See also skipPixels()

void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)▲

Sets the number of rows that are skipped to skipRows. Corresponds to GL_UNPACK_SKIP_ROWS. Equivalent to incrementing the pointer passed to QOpenGLTexture::setData(). The default value is 0.

See Also▲

See also skipRows()

void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)▲

swapBytes specifies if the byte ordering for multibyte components is reversed. The default value is false. Corresponds to GL_UNPACK_SWAP_BYTES.

See Also▲

See also isSwapBytesEnabled()

int QOpenGLPixelTransferOptions::skipImages() const▲

Returns the number of images that are skipped.

See Also▲

See also setSkipImages()

int QOpenGLPixelTransferOptions::skipPixels() const▲

Returns the number of pixels that are skipped.

See Also▲

See also setSkipPixels()

int QOpenGLPixelTransferOptions::skipRows() const▲

Returns the number of rows that are skipped.

See Also▲

See also setSkipRows()

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+