QOpenGLPixelTransferOptions Class

QOpenGLPixelTransferOptions 클래스는 텍스처 업로드 중 픽셀 언패킹에 영향을 미치는 픽셀 저장 모드를 설명합니다. 더 보기...

헤더: #include <QOpenGLPixelTransferOptions>
CMake: find_package(Qt6 REQUIRED COMPONENTS OpenGL)
target_link_libraries(mytarget PRIVATE Qt6::OpenGL)
qmake: QT += opengl

공용 함수

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)

상세 설명

멤버 함수 문서

QOpenGLPixelTransferOptions::QOpenGLPixelTransferOptions()

기본 설정으로 새 QOpenGLPixelTransferOptions 인스턴스를 생성합니다.

[noexcept] QOpenGLPixelTransferOptions::~QOpenGLPixelTransferOptions()

파괴자.

int QOpenGLPixelTransferOptions::alignment() const

각 픽셀 행에 대한 현재 정렬 요구 사항을 반환합니다.

setAlignment()도 참조하세요 .

int QOpenGLPixelTransferOptions::imageHeight() const

현재 설정된 이미지 높이를 반환합니다.

setImageHeight()도 참조하세요 .

bool QOpenGLPixelTransferOptions::isLeastSignificantBitFirst() const

바이트 내의 비트가 가장 작은 것부터 가장 큰 것 순으로 정렬되면 true 을 반환합니다.

bool QOpenGLPixelTransferOptions::isSwapBytesEnabled() const

멀티바이트 컴포넌트의 바이트 순서가 반전된 경우 true 를 반환합니다.

int QOpenGLPixelTransferOptions::rowLength() const

현재 설정된 행 길이를 반환합니다.

setRowLength()도 참조하세요 .

void QOpenGLPixelTransferOptions::setAlignment(int alignment)

각 픽셀 행에 대한 alignment 요구 사항을 설정합니다. GL_UNPACK_ALIGNMENT 에 해당합니다. 기본값은 OpenGL에서 지정한 대로 4입니다.

alignment()도 참조하세요 .

void QOpenGLPixelTransferOptions::setImageHeight(int imageHeight)

3D 텍스처의 이미지 높이를 imageHeight 로 설정합니다. GL_UNPACK_IMAGE_HEIGHT 에 해당합니다. 기본값은 0입니다.

imageHeight()도 참조하십시오 .

void QOpenGLPixelTransferOptions::setLeastSignificantByteFirst(bool lsbFirst)

lsbFirst 는 바이트 내의 비트가 가장 작은 것부터 가장 큰 것 순으로 정렬되는지 여부를 지정합니다. 기본값은 false 으로, 각 바이트의 첫 번째 비트가 가장 중요한 비트입니다. 이는 비트맵 데이터에만 중요합니다. GL_UNPACK_LSB_FIRST 에 해당합니다.

void QOpenGLPixelTransferOptions::setRowLength(int rowLength)

행의 픽셀 수를 rowLength 로 설정합니다. GL_UNPACK_ROW_LENGTH 에 해당합니다. 기본값은 0입니다.

rowLength()도 참조하세요 .

void QOpenGLPixelTransferOptions::setSkipImages(int skipImages)

건너뛰는 이미지 수를 skipImages 로 설정합니다. GL_UNPACK_SKIP_IMAGES 에 해당합니다. QOpenGLTexture::setData()로 전달된 포인터를 증가시키는 것과 같습니다. 기본값은 0입니다.

skipImages()도 참조하세요 .

void QOpenGLPixelTransferOptions::setSkipPixels(int skipPixels)

건너뛰는 픽셀 수를 skipPixels 로 설정합니다. GL_UNPACK_SKIP_PIXELS 에 해당합니다. QOpenGLTexture::setData()로 전달된 포인터를 증가시키는 것과 같습니다. 기본값은 0입니다.

skipPixels()도 참조하세요 .

void QOpenGLPixelTransferOptions::setSkipRows(int skipRows)

건너뛰는 행 수를 skipRows 로 설정합니다. GL_UNPACK_SKIP_ROWS 에 해당합니다. QOpenGLTexture::setData()로 전달된 포인터를 증가시키는 것과 같습니다. 기본값은 0입니다.

skipRows()도 참조하세요 .

void QOpenGLPixelTransferOptions::setSwapBytesEnabled(bool swapBytes)

swapBytes 는 멀티바이트 컴포넌트의 바이트 순서를 반전시킬지 여부를 지정합니다. 기본값은 false 입니다. GL_UNPACK_SWAP_BYTES 에 해당합니다.

isSwapBytesEnabled()도 참조하세요 .

int QOpenGLPixelTransferOptions::skipImages() const

건너뛴 이미지의 수를 반환합니다.

setSkipImages()도 참조하세요 .

int QOpenGLPixelTransferOptions::skipPixels() const

건너뛴 픽셀 수를 반환합니다.

setSkipPixels()도 참조하세요 .

int QOpenGLPixelTransferOptions::skipRows() const

건너뛴 행의 수를 반환합니다.

setSkipRows()도 참조하세요 .

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

이 옵션을 other 로 바꿉니다. 이 작업은 매우 빠르며 실패하지 않습니다.

© 2025 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.