QCullFace Class
class Qt3DRender::QCullFaceQCullFace 클래스는 앞면 또는 뒷면 컬링을 활성화할지 여부를 지정합니다. 더 보기...
Header: | #include <QCullFace> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS 3drender) target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
QML에서: | CullFace |
상속합니다: | Qt3DRender::QRenderState |
상태: | Deprecated |
공용 유형
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
이 열거형은 컬링 모드의 값을 지정합니다.
Constant | 값 | 설명 |
---|---|---|
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 인스턴스를 생성합니다.
© 2025 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.