Qt3DRender::QCullFace Class
class Qt3DRender::QCullFaceQCullFace 클래스는 전면 또는 후면 면 컬링이 활성화되어 있는지 여부를 지정합니다. 더 보기...
| 헤더: | #include <qcullface.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
| qmake: | QT += 3drender |
| QML에서: | CullFace |
| 상속: | Qt3DRender::QRenderState |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
공개 유형
| enum | CullingMode { NoCulling, Front, Back, FrontAndBack } |
속성
- mode : CullingMode
공개 함수
공개 슬롯
| void | setMode(Qt3DRender::QCullFace::CullingMode mode) |
신호
| void | modeChanged(Qt3DRender::QCullFace::CullingMode mode) |
상세 설명
QCullFace는 앞면 또는 뒷면 패싯이 컬링될지 여부를 설정합니다. 패싯에는 삼각형, 사각형, 다각형 및 직사각형이 포함됩니다.
QRenderPass 에서 addRenderState() 메서드를 호출하여 추가할 수 있습니다:
// using namespace Qt3DRender;
QRenderPass *renderPass = new QRenderPass();
// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass
renderPass->addRenderState(cullFront);또는 ` QRenderStateSet`의 `addRenderState()` 메서드를 호출하여 추가할 수 있습니다:
// using namespace Qt3DRender;
QRenderStateSet *renderStateSet = new QRenderStateSet();
// Create a front face culling render state
QCullFace *cullFront = new QCullFace();
cullFront->setMode(QCullFace::Front);
// Add the render state to the render pass
renderStateSet->addRenderState(cullFront);QFrontFace도 참조하십시오 .
멤버 유형 설명서
enum QCullFace::CullingMode
이 열거형은 컬링 모드의 값을 지정합니다.
| 상수 | 값 | 설명 |
|---|---|---|
Qt3DRender::QCullFace::NoCulling | 0x0 | 컬링이 비활성화됨 |
Qt3DRender::QCullFace::Front | 0x0404 | 정면을 향한 폴리곤에 대해 컬링이 활성화됨 |
Qt3DRender::QCullFace::Back | 0x0405 | 뒷면을 향한 폴리곤에 대해 컬링이 활성화됨 |
Qt3DRender::QCullFace::FrontAndBack | 0x0408 | 모든 폴리곤에 대해 컬링이 활성화되었으며, 점과 선이 그려집니다 |
속성 설명
mode : CullingMode
QCullFace 에서 사용하는 컬링 모드를 저장합니다. 기본값은 QCullFace 로 설정되어 있습니다. 뒤로.
액세스 함수:
| Qt3DRender::QCullFace::CullingMode | mode() const |
| void | setMode(Qt3DRender::QCullFace::CullingMode mode) |
알림 신호:
| void | modeChanged(Qt3DRender::QCullFace::CullingMode mode) |
멤버 함수 문서
[explicit] QCullFace::QCullFace(Qt3DCore::QNode *parent = nullptr)
parent 를 부모로 하는 새로운 QCullFace::QCullFace 인스턴스를 생성합니다.
© 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.