Qt3DRender::QRenderTarget Class
class Qt3DRender::QRenderTargetLa classe QRenderTarget incapsula una destinazione (di solito un oggetto frame buffer) su cui il renderer può eseguire il rendering. Per saperne di più...
| Intestazione: | #include <qrendertarget.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| In QML: | RenderTarget |
| Eredita da: | Qt3DCore::QComponent |
| Stato: | Obsoleto |
Questa classe è deprecata. Si sconsiglia vivamente di utilizzarla nel nuovo codice.
Funzioni pubbliche
| QRenderTarget(Qt3DCore::QNode *parent = nullptr) | |
| void | addOutput(Qt3DRender::QRenderTargetOutput *output) |
| QList<Qt3DRender::QRenderTargetOutput *> | outputs() const |
| void | removeOutput(Qt3DRender::QRenderTargetOutput *output) |
Descrizione dettagliata
Un oggetto ` Qt3DRender::QRenderTarget ` è costituito da oggetti ` Qt3DRender::QRenderTargetOutput `, che specificano i buffer su cui il render target esegue il rendering. L'utente può specificare MRT (Multiple Render Targets) associando più texture a diversi punti di attacco. I risultati sono indefiniti se l'utente tenta di associare più texture allo stesso punto di attacco. Al momento del rendering, vengono utilizzati solo i buffer di disegno specificati nell’ Qt3DRender::QRenderTargetSelector.
Documentazione delle funzioni membro
[explicit] QRenderTarget::QRenderTarget(Qt3DCore::QNode *parent = nullptr)
Il costruttore crea una nuova istanza di ` QRenderTarget::QRenderTarget ` con il valore specificato in ` parent`.
void QRenderTarget::addOutput(Qt3DRender::QRenderTargetOutput *output)
Aggiunge un output selezionato tramite output.
QList<Qt3DRender::QRenderTargetOutput *> QRenderTarget::outputs() const
Restituisce le uscite selezionate.
void QRenderTarget::removeOutput(Qt3DRender::QRenderTargetOutput *output)
Rimuove un output selezionato tramite 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.