이 페이지에서

Qt3DRender::QRenderTarget Class

class Qt3DRender::QRenderTarget

QRenderTarget 클래스는 렌더러가 렌더링할 수 있는 대상(일반적으로 프레임 버퍼 객체)을 캡슐화합니다. 더 보기...

헤더: #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.