以下成员源于类 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
This enum is deprecated since 6.0. We strongly advise against using it in new code.
使用 setColorSpace ( QColorSpace ) instead
This enum is used to specify the preferred color space, controlling if the window's associated default framebuffer is able to do updates and blending in a given encoding instead of the standard linear operations.
| 常量 | 值 | 描述 |
|---|---|---|
QSurfaceFormat::DefaultColorSpace
|
0
|
默认,未指定色彩空间。 |
QSurfaceFormat::sRGBColorSpace
|
1
|
当
GL_ARB_framebuffer_sRGB
or
GL_EXT_framebuffer_sRGB
is supported by the platform and this value is set, the window will be created with an sRGB-capable default framebuffer. Note that some platforms may return windows with a sRGB-capable default framebuffer even when not requested explicitly.
|
[deprecated in 6.0]
void
QSurfaceFormat::
setColorSpace
(
QSurfaceFormat::ColorSpace
colorSpace
)
This function is deprecated since 6.0. We strongly advise against using it in new code.
这是重载函数。
Use setColorSpace( QColorSpace ) 代替。
Sets the colorspace to one of the predefined values.
另请参阅 colorSpace ().