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.