Provides a way of specifying the render surface 更多...
| 頭: | #include <QRenderSurfaceSelector> |
| qmake: | QT += 3drender |
| Since: | Qt 5.7 |
| 實例化: | RenderSurfaceSelector |
| 繼承: | Qt3DRender::QFrameGraphNode |
| QRenderSurfaceSelector (Qt3DCore::QNode * parent = nullptr) | |
| QSize | externalRenderTargetSize () const |
| QObject * | surface () const |
| float | surfacePixelRatio () const |
| void | setExternalRenderTargetSize (const QSize & size ) |
| void | setSurface (QObject * surfaceObject ) |
| void | setSurfacePixelRatio (float ratio ) |
| void | externalRenderTargetSizeChanged (const QSize & size ) |
| void | surfaceChanged (QObject * surface ) |
| void | surfacePixelRatioChanged (float ratio ) |
Provides a way of specifying the render surface
The Qt3DRender::QRenderSurfaceSelector can be used to select the surface, where Qt3D renders the content. The surface can either be window surface or offscreen surface. The externalRenderTargetSize is used to specify the actual size of the surface when offscreen surface is used.
When DPI scaling is used by the system, the logical surface size, which is used by mouse events, and the actual 'physical' size of the surface can differ. The surfacePixelRatio is the factor to convert the logical size to the physical size.
另請參閱 QWindow , QOffscreenSurface ,和 QSurface .
Holds the size of the external render target.
訪問函數:
| QSize | externalRenderTargetSize () const |
| void | setExternalRenderTargetSize (const QSize & size ) |
通知程序信號:
| void | externalRenderTargetSizeChanged (const QSize & size ) |
Holds the surface
訪問函數:
| QObject * | surface () const |
| void | setSurface (QObject * surfaceObject ) |
通知程序信號:
| void | surfaceChanged (QObject * surface ) |
Holds the surfacePixelRatio of the surface.
訪問函數:
| float | surfacePixelRatio () const |
| void | setSurfacePixelRatio (float ratio ) |
通知程序信號:
| void | surfacePixelRatioChanged (float ratio ) |
構造 QRenderSurfaceSelector with given parent .
[slot]
void
QRenderSurfaceSelector::
setExternalRenderTargetSize
(const
QSize
&
size
)
Sets render target size if different than underlying surface size. Tells picking the correct size.
注意: setter 函數對於特性 externalRenderTargetSize .
另請參閱 externalRenderTargetSize ().
[slot]
void
QRenderSurfaceSelector::
setSurface
(
QObject
*
surfaceObject
)
集 surfaceObject .
注意: setter 函數對於特性 surface .
另請參閱 surface ().