本页内容

ColorMask QML Type

允许指定应将哪些颜色分量写入当前绑定的帧缓冲区。更多...

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

RenderState

Status: Deprecated

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

属性

详细说明

默认情况下,每个颜色分量(红、绿、蓝、透明度)的属性都设置为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.