Qt3DRender::QRenderTarget Class
class Qt3DRender::QRenderTargetQRenderTarget クラスは、レンダラーが出力できるターゲット(通常はフレームバッファオブジェクト)をカプセル化しています。詳細...
| ヘッダー: | #include <qrendertarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML内: | RenderTarget |
| 継承元: | Qt3DCore::QComponent |
| ステータス: | 非推奨 |
このクラスは非推奨です。新しいコードでの使用は強く推奨しません。
パブリック関数
| QRenderTarget(Qt3DCore::QNode *parent = nullptr) | |
| void | addOutput(Qt3DRender::QRenderTargetOutput *output) |
| QList<Qt3DRender::QRenderTargetOutput *> | outputs() const |
| void | removeOutput(Qt3DRender::QRenderTargetOutput *output) |
詳細な説明
Qt3DRender::QRenderTarget は、Qt3DRender::QRenderTargetOutput オブジェクトで構成されており、これらはレンダリングターゲットがレンダリングを行う先となるバッファを指定します。ユーザーは、異なるアタッチメントポイントに複数のテクスチャをアタッチすることで、MRT(Multiple Render Targets)を指定できます。ユーザーが同じアタッチメントポイントに複数のテクスチャをアタッチしようとすると、結果は未定義となります。 レンダリング時には、Qt3DRender::QRenderTargetSelector で指定された描画バッファのみが使用されます。
メンバ関数のドキュメント
[explicit] QRenderTarget::QRenderTarget(Qt3DCore::QNode *parent = nullptr)
このコンストラクタは、指定されたparent を用いて、新しいQRenderTarget::QRenderTarget インスタンスを作成します。
void QRenderTarget::addOutput(Qt3DRender::QRenderTargetOutput *output)
output を通じて、選択した出力を追加します。
QList<Qt3DRender::QRenderTargetOutput *> QRenderTarget::outputs() const
選択された出力を返します。
void QRenderTarget::removeOutput(Qt3DRender::QRenderTargetOutput *output)
output を使用して、指定した出力を削除します。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.