The QRasterMode render state allows to control the type of rasterization to be performed. 更多...
头: | #include <QRasterMode> |
CMake: |
find_package(Qt6 REQUIRED COMPONENTS 3drender)
target_link_libraries(mytarget PRIVATE Qt6::3drender) |
qmake: | QT += 3drender |
实例化: | RasterMode |
继承: | Qt3DRender::QRenderState |
enum | FaceMode { Front, Back, FrontAndBack } |
enum | RasterMode { Points, Lines, Fill } |
Qt3DRender::QRasterMode::FaceMode | faceMode () const |
Qt3DRender::QRasterMode::RasterMode | rasterMode () const |
void | setFaceMode (Qt3DRender::QRasterMode::FaceMode faceMode ) |
void | setRasterMode (Qt3DRender::QRasterMode::RasterMode rasterMode ) |
void | faceModeChanged (Qt3DRender::QRasterMode::FaceMode faceMode ) |
void | rasterModeChanged (Qt3DRender::QRasterMode::RasterMode rasterMode ) |
The QRasterMode class is used to control the rasterization step of the primitives at render time. This can be used to choose whether we only want to show points, edges or fill a primitive.
注意: This is not supported when rendering on OpenGL ES 2.0 platforms.
另请参阅 QAlphaTest and QStencilTest .
Enumeration for face mode values
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QRasterMode::Front
|
0x0404
|
Applies to front faces only |
Qt3DRender::QRasterMode::Back
|
0x0405
|
Applies to back faces only |
Qt3DRender::QRasterMode::FrontAndBack
|
0x0408
|
Applies to front and back faces |
Enumeration for raster mode values
常量 | 值 | 描述 |
---|---|---|
Qt3DRender::QRasterMode::Points
|
0x1B00
|
Vertices at the start of an edge are drawn as points. |
Qt3DRender::QRasterMode::Lines
|
0x1B01
|
Edges of a polygon are draw as line segments. |
Qt3DRender::QRasterMode::Fill
|
0x1B02
|
Fills the interior of the primitive. |
Holds the face mode to be used. Controls on which face the raster mode is to be applied.
访问函数:
Qt3DRender::QRasterMode::FaceMode | faceMode () const |
void | setFaceMode (Qt3DRender::QRasterMode::FaceMode faceMode ) |
通知程序信号:
void | faceModeChanged (Qt3DRender::QRasterMode::FaceMode faceMode ) |
Holds the raster mode to be used.
访问函数:
Qt3DRender::QRasterMode::RasterMode | rasterMode () const |
void | setRasterMode (Qt3DRender::QRasterMode::RasterMode rasterMode ) |
通知程序信号:
void | rasterModeChanged (Qt3DRender::QRasterMode::RasterMode rasterMode ) |