QSGFlatColorMaterial Class
QSGFlatColorMaterial 클래스는 씬 그래프에서 단색 지오메트리를 렌더링하는 편리한 방법을 제공합니다. 더 보기...
Header: | #include <QSGFlatColorMaterial> |
CMake: | find_package(Qt6 REQUIRED COMPONENTS Quick) target_link_libraries(mytarget PRIVATE Qt6::Quick) |
qmake: | QT += quick |
상속합니다: | QSGMaterial |
- 상속된 멤버를 포함한 모든 멤버 목록
- QSGFlatColorMaterial은 Qt Quick 씬 그래프 머티리얼 클래스의 일부입니다.
공용 함수
QSGFlatColorMaterial() | |
const QColor & | color() const |
void | setColor(const QColor &color) |
상세 설명
Warning: 이 유틸리티 클래스는 Qt Quick 시나리오 그래프의 기본 백엔드에서 실행할 때만 작동합니다.
평면 컬러 머티리얼은 단색을 사용하여 지오메트리의 모든 픽셀을 채웁니다. 색상은 투명도를 포함할 수 있습니다.
단색 머티리얼로 렌더링할 지오메트리가 올바르게 렌더링되려면 QSGGeometry 객체의 속성 위치 0에 있는 버텍스가 필요합니다. QSGGeometry::defaultAttributes_Point2D ()는 이 머티리얼과 호환되는 속성 집합을 반환합니다.
플랫 컬러 머티리얼은 렌더링 상태를 업데이트할 때 현재 불투명도와 현재 매트릭스를 모두 존중합니다.
멤버 함수 문서
QSGFlatColorMaterial::QSGFlatColorMaterial()
새로운 평면 컬러 머티리얼을 생성합니다.
기본 색상은 흰색입니다.
const QColor &QSGFlatColorMaterial::color() const
이 평면 컬러 머티리얼의 색상을 반환합니다.
기본 색상은 흰색입니다.
setColor()도 참조하세요 .
void QSGFlatColorMaterial::setColor(const QColor &color)
이 단색 머티리얼의 색상을 color 로 설정합니다.
color()도 참조하세요 .
© 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.