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.