QOpenGLFramebufferObjectFormat Class

QOpenGLFramebufferObjectFormat 클래스는 OpenGL 프레임 버퍼 객체의 형식을 지정합니다. 더 보기...

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

공용 함수

QOpenGLFramebufferObjectFormat()
QOpenGLFramebufferObjectFormat(const QOpenGLFramebufferObjectFormat &other)
~QOpenGLFramebufferObjectFormat()
QOpenGLFramebufferObject::Attachment attachment() const
GLenum internalTextureFormat() const
bool mipmap() const
int samples() const
void setAttachment(QOpenGLFramebufferObject::Attachment attachment)
void setInternalTextureFormat(GLenum internalTextureFormat)
void setMipmap(bool enabled)
void setSamples(int samples)
void setTextureTarget(GLenum target)
GLenum textureTarget() const
bool operator!=(const QOpenGLFramebufferObjectFormat &other) const
QOpenGLFramebufferObjectFormat &operator=(const QOpenGLFramebufferObjectFormat &other)
bool operator==(const QOpenGLFramebufferObjectFormat &other) const

상세 설명

프레임버퍼 객체에는 몇 가지 특징이 있습니다:

원하는 어태치먼트 또는 픽셀당 샘플 수가 하드웨어 드라이버에서 지원되지 않을 수 있습니다. QOpenGLFramebufferObject 을 생성한 후 QOpenGLFramebufferObject::format()를 호출하여 프레임 버퍼 객체를 생성하는 데 사용된 정확한 형식을 찾습니다.

QOpenGLFramebufferObject참조하세요 .

멤버 함수 문서

QOpenGLFramebufferObjectFormat::QOpenGLFramebufferObjectFormat()

OpenGL 프레임버퍼 객체의 포맷을 지정하기 위한 QOpenGLFramebufferObjectFormat 객체를 생성합니다.

기본적으로 이 포맷은 뎁스/스텐실 첨부, 텍스처 타깃 GL_TEXTURE_2D 및 내부 포맷 GL_RGBA8 이 없는 비멀티샘플 프레임버퍼 객체를 지정합니다. OpenGL/ES 시스템에서 기본 내부 포맷은 GL_RGBA 입니다.

samples(), attachment() 및 internalTextureFormat()도 참조하십시오 .

QOpenGLFramebufferObjectFormat::QOpenGLFramebufferObjectFormat(const QOpenGLFramebufferObjectFormat &other)

other 의 복사본을 생성합니다.

[noexcept] QOpenGLFramebufferObjectFormat::~QOpenGLFramebufferObjectFormat()

QOpenGLFramebufferObjectFormat 를 파괴합니다.

QOpenGLFramebufferObject::Attachment QOpenGLFramebufferObjectFormat::attachment() const

프레임버퍼 객체에 연결된 깊이 및 스텐실 버퍼의 구성을 반환합니다. 기본값은 QOpenGLFramebufferObject::NoAttachment 입니다.

setAttachment()도 참조하세요 .

GLenum QOpenGLFramebufferObjectFormat::internalTextureFormat() const

프레임버퍼 객체의 텍스처 또는 멀티샘플 프레임버퍼 객체의 컬러 버퍼의 내부 형식을 반환합니다. 기본값은 데스크톱 OpenGL 시스템에서는 GL_RGBA8, OpenGL/ES 시스템에서는 GL_RGBA 입니다.

setInternalTextureFormat()도 참조하세요 .

bool QOpenGLFramebufferObjectFormat::mipmap() const

밉매핑이 활성화된 경우 true 을 반환합니다.

setMipmap()도 참조하세요 .

int QOpenGLFramebufferObjectFormat::samples() const

프레임버퍼 객체가 다중 샘플 프레임버퍼 객체인 경우 픽셀당 샘플 수를 반환합니다. 그렇지 않으면 0을 반환합니다. 기본값은 0입니다.

setSamples()도 참조하세요 .

void QOpenGLFramebufferObjectFormat::setAttachment(QOpenGLFramebufferObject::Attachment attachment)

프레임버퍼 객체의 첨부 구성을 attachment 로 설정합니다.

attachment()도 참조하세요 .

void QOpenGLFramebufferObjectFormat::setInternalTextureFormat(GLenum internalTextureFormat)

프레임버퍼 객체의 텍스처 또는 멀티샘플 프레임버퍼 객체의 컬러 버퍼의 내부 형식을 internalTextureFormat 로 설정합니다.

internalTextureFormat()도 참조하십시오 .

void QOpenGLFramebufferObjectFormat::setMipmap(bool enabled)

enabled 이 참이면 밉매핑을 활성화하고, 그렇지 않으면 비활성화합니다.

밉매핑은 기본적으로 비활성화되어 있습니다.

밉매핑이 활성화되면 밉맵 레벨에 추가 메모리가 할당됩니다. 밉맵 레벨은 텍스처를 바인딩하고 glGenerateMipmap()을 호출하여 업데이트할 수 있습니다. 멀티샘플링된 프레임버퍼 오브젝트에는 밉매핑을 활성화할 수 없습니다.

mipmap() 및 QOpenGLFramebufferObject::texture()도 참조하세요 .

void QOpenGLFramebufferObjectFormat::setSamples(int samples)

멀티샘플 프레임버퍼 객체의 픽셀당 샘플 수를 samples 로 설정합니다. 기본 샘플 수인 0은 일반 비멀티샘플 프레임버퍼 객체를 나타냅니다.

원하는 픽셀당 샘플 수가 하드웨어에서 지원되지 않으면 픽셀당 최대 샘플 수가 사용됩니다. 멀티샘플 프레임버퍼 오브젝트는 텍스처로 바인딩할 수 없다는 점에 유의하세요. 또한 픽셀당 샘플이 두 개 이상인 프레임버퍼를 생성하려면 GL_EXT_framebuffer_multisample 확장자가 필요합니다.

samples()도 참조하세요 .

void QOpenGLFramebufferObjectFormat::setTextureTarget(GLenum target)

프레임버퍼 오브젝트에 연결된 텍스처의 텍스처 대상을 target 로 설정합니다. 다중 샘플 프레임버퍼 오브젝트에서는 무시됩니다.

textureTarget() 및 samples()도 참조하십시오 .

GLenum QOpenGLFramebufferObjectFormat::textureTarget() const

프레임버퍼 오브젝트에 붙은 텍스처의 텍스처 타깃을 반환합니다. 멀티 샘플 프레임버퍼 오브젝트에는 무시됩니다. 기본값은 GL_TEXTURE_2D 입니다.

setTextureTarget() 및 samples()도 참조하십시오 .

bool QOpenGLFramebufferObjectFormat::operator!=(const QOpenGLFramebufferObjectFormat &other) const

이 프레임버퍼 객체 형식의 모든 옵션이 other 과 같으면 false 을 반환하고, 그렇지 않으면 true 을 반환합니다.

QOpenGLFramebufferObjectFormat &QOpenGLFramebufferObjectFormat::operator=(const QOpenGLFramebufferObjectFormat &other)

other 이 객체에 할당합니다.

bool QOpenGLFramebufferObjectFormat::operator==(const QOpenGLFramebufferObjectFormat &other) const

이 프레임버퍼 객체 형식의 모든 옵션이 other 과 같으면 true 을 반환하고, 그렇지 않으면 false 을 반환합니다.

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