在本页

RasterMode QML Type

RasterMode 渲染状态允许控制要执行的光栅化类型。更多

Import Statement: import Qt3D.Render 2.11
In C++: QRasterMode
Inherits:

RenderState

Status: Deprecated

属性

详细说明

QRasterMode 类用于在渲染时控制基元的光栅化步骤。它可用于选择是否只显示点、边缘或填充基元。

注意: 在 OpenGL ES 2.0 平台上渲染时不支持此功能。

另请参阅 AlphaTestStencilTest

属性文档

faceMode : enumeration

保存要使用的面模式。控制光栅模式应用于哪个面。

  • 正面 仅适用于正面
  • 背面 仅应用于背面
  • FrontAndBack 适用于正面和背面

rasterMode : enumeration

保存要使用的光栅模式。

  • 点 边缘起始处的顶点以点的形式绘制。
  • 线 多边形的边缘以线段的形式绘制。
  • 填充 填充基元的内部。

© 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.