本页内容

RasterMode QML Type

RasterMode 渲染状态可用于控制要执行的光栅化类型。更多内容...

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

RenderState

Status: Deprecated

此类型已弃用。我们强烈建议不要在新代码中使用它。

属性

详细说明

QRasterMode 类用于在渲染时控制基元的光栅化步骤。通过它,我们可以选择仅显示点、边,还是填充基元。

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

另请参阅 AlphaTest 和StencilTest 。

属性文档

faceMode : enumeration

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

  • 正面 仅应用于正面
  • 背面 仅应用于背面
  • 正反两面 同时应用于正面和背面

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.