在本页

ColorMask QML Type

允许指定哪些颜色组件应写入当前绑定的帧缓冲区。更多

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

RenderState

Status: Deprecated

属性

详细说明

默认情况下,每个颜色组件(红、绿、蓝、alpha)的属性都设置为true ,这意味着它们将被写入帧缓冲区。将任何颜色组件设置为false 都将阻止其写入帧缓冲区。

属性文档

alphaMasked : bool

表示是否将 alpha 分量写入帧缓冲区。

blueMasked : bool

表示是否将蓝色分量写入帧缓冲区。

greenMasked : bool

表示是否将绿色分量写入帧缓冲区。

redMasked : bool

表示是否将红色分量写入帧缓冲区。

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