Obsolete Members for QSurfaceFormat
QSurfaceFormat 클래스의 다음 멤버들은 더 이상 사용되지 않습니다. 이 멤버들은 기존 소스 코드가 계속 작동하도록 하기 위해 제공됩니다. 새로운 코드에서는 이 멤버들을 사용하지 않는 것을 강력히 권장합니다.
공개 유형
(deprecated in 6.0) enum | ColorSpace { DefaultColorSpace, sRGBColorSpace } |
공개 함수
(deprecated in 6.0) void | setColorSpace(QSurfaceFormat::ColorSpace colorSpace) |
멤버 유형 설명
[deprecated in 6.0] enum QSurfaceFormat::ColorSpace
이 열거형은 6.0 버전부터 사용 중단되었습니다. 새로운 코드에서는 이를 사용하지 않는 것을 강력히 권장합니다.
대신 ` setColorSpace`(QColorSpace)를 사용하십시오.
이 열거형은 선호하는 색 공간을 지정하는 데 사용되며, 창의 관련 기본 프레임버퍼가 표준 선형 연산 대신 주어진 인코딩으로 업데이트 및 블렌딩을 수행할 수 있는지 여부를 제어합니다.
| 상수 | 값 | 설명 |
|---|---|---|
QSurfaceFormat::DefaultColorSpace | 0 | 기본값인, 지정되지 않은 색 공간입니다. |
QSurfaceFormat::sRGBColorSpace | 1 | GL_ARB_framebuffer_sRGB 이나 GL_EXT_framebuffer_sRGB 가 플랫폼에서 지원되고 이 값이 설정된 경우, 창은 sRGB를 지원하는 기본 프레임버퍼로 생성됩니다. 일부 플랫폼은 명시적으로 요청하지 않았더라도 sRGB를 지원하는 기본 프레임버퍼를 가진 창을 반환할 수 있습니다. |
멤버 함수 설명서
[deprecated in 6.0] void QSurfaceFormat::setColorSpace(QSurfaceFormat::ColorSpace colorSpace)
이 함수는 6.0 버전부터 더 이상 사용되지 않습니다. 새로운 코드에서는 이 함수를 사용하지 않는 것을 강력히 권장합니다.
대신 setColorSpace(QColorSpace)를 사용하십시오.
색 공간을 미리 정의된 값 중 하나로 설정합니다.
이 함수는 오버로드된 함수입니다.
colorSpace()도 참조하십시오 .
© 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.