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

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 ().