QRenderTargetSelector Class

class Qt3DRender ::QRenderTargetSelector

Provides a way of specifying a render target. 更多...

头: #include <QRenderTargetSelector>
CMake: find_package(Qt6 COMPONENTS 3drender REQUIRED)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
Since: Qt 5.7
实例化: RenderTargetSelector
继承: Qt3DRender::QFrameGraphNode

特性

公共函数

  QRenderTargetSelector (Qt3DCore::QNode * parent = nullptr)
Qt3DRender::QRenderTarget * target () const

公共槽

void setTarget (Qt3DRender::QRenderTarget * target )

信号

void targetChanged (Qt3DRender::QRenderTarget * target )

详细描述

A Qt3DRender::QRenderTargetSelector is used to select active Qt3DRender::QRenderTarget for the FrameGraph. When QRenderTargetSelector is present in the FrameGraph, the rendering is directed into QTexture objects or draw buffers instead of the surface specified in the Qt3DRender::QRenderSurfaceSelector .

特性文档编制

target : Qt3DRender::QRenderTarget *

Holds the current render target

访问函数:

Qt3DRender::QRenderTarget * target () const
void setTarget (Qt3DRender::QRenderTarget * target )

通知程序信号:

void targetChanged (Qt3DRender::QRenderTarget * target )

成员函数文档编制

QRenderTargetSelector:: QRenderTargetSelector ( Qt3DCore::QNode * parent = nullptr)

Constructs QRenderTargetSelector with given parent .