En esta página

Qt3DRender::QRenderTarget Class

class Qt3DRender::QRenderTarget

La clase QRenderTarget encapsula un objetivo (normalmente un objeto frame buffer) en el que el renderizador puede renderizar. Más...

Cabecera: #include <QRenderTarget>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender)
qmake: QT += 3drender
En QML: RenderTarget
Hereda: Qt3DCore::QComponent
Status: Obsoleto

Funciones Públicas

QRenderTarget(Qt3DCore::QNode *parent = nullptr)
void addOutput(Qt3DRender::QRenderTargetOutput *output)
QList<Qt3DRender::QRenderTargetOutput *> outputs() const
void removeOutput(Qt3DRender::QRenderTargetOutput *output)

Descripción Detallada

Un Qt3DRender::QRenderTarget se compone de objetos Qt3DRender::QRenderTargetOutput, que especifican los buffers a los que el objetivo de renderizado está renderizando. El usuario puede especificar MRT(Multiple Render Targets) adjuntando múltiples texturas a diferentes puntos de fijación. Los resultados son indefinidos si el usuario intenta adjuntar múltiples texturas al mismo punto de unión. En el momento de la renderización, sólo se utilizan los buffers de dibujo especificados en Qt3DRender::QRenderTargetSelector.

Documentación de las funciones miembro

[explicit] QRenderTarget::QRenderTarget(Qt3DCore::QNode *parent = nullptr)

El constructor crea una nueva instancia de QRenderTarget::QRenderTarget con la dirección parent especificada.

void QRenderTarget::addOutput(Qt3DRender::QRenderTargetOutput *output)

Añade una salida elegida a través de output.

QList<Qt3DRender::QRenderTargetOutput *> QRenderTarget::outputs() const

Devuelve las salidas elegidas.

void QRenderTarget::removeOutput(Qt3DRender::QRenderTargetOutput *output)

Elimina una salida elegida a través de 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.