QQuick3D Class

Helper class for selecting correct surface format. 更多...

头: #include <QQuick3D>
Since: Qt 5.15

该类在 Qt 5.15 引入。

静态公共成员

QSurfaceFormat idealSurfaceFormat (int samples = -1)

详细描述

Lets you select a surface format that is appropriate for the application.

用法:

QSurfaceFormat::setDefaultFormat(QQuick3D::idealSurfaceFormat(4));
					

成员函数文档编制

[static] QSurfaceFormat QQuick3D:: idealSurfaceFormat ( int samples = -1)

Returns an ideal surface format for the platform. Optionally, samples can be specified to select the number of multisamples for antialiasing.