QColorMask 類

( Qt3DRender::QColorMask )

允許應該把哪些指定顔色分量寫入目前綁定的幀緩衝。 更多...

頭: #include <QColorMask>
qmake: QT += 3drender
Since: Qt 5.7
實例化: ColorMask
繼承: Qt3DRender::QRenderState

特性

公共函數

QColorMask (Qt3DCore::QNode * parent = nullptr)
bool isAlphaMasked () const
bool isBlueMasked () const
bool isGreenMasked () const
bool isRedMasked () const

公共槽

void setAlphaMasked (bool alphaMasked )
void setBlueMasked (bool blueMasked )
void setGreenMasked (bool greenMasked )
void setRedMasked (bool redMasked )

信號

void alphaMaskedChanged (bool alphaMasked )
void blueMaskedChanged (bool blueMasked )
void greenMaskedChanged (bool greenMasked )
void redMaskedChanged (bool redMasked )

額外繼承成員

詳細描述

允許應該把哪些指定顔色分量寫入目前綁定的幀緩衝。

By default, the property for each color component (red, green, blue, alpha) is set to true which means they will be written to the frame buffer. Setting any of the color component to false will prevent it from being written into the frame buffer.

特性文檔編製

alphaMasked : bool

Holds whether the alphaMasked component should be written to the frame buffer.

訪問函數:

bool isAlphaMasked () const
void setAlphaMasked (bool alphaMasked )

通知程序信號:

void alphaMaskedChanged (bool alphaMasked )

blueMasked : bool

Holds whether the blue color component should be written to the frame buffer.

訪問函數:

bool isBlueMasked () const
void setBlueMasked (bool blueMasked )

通知程序信號:

void blueMaskedChanged (bool blueMasked )

greenMasked : bool

Holds whether the green color component should be written to the frame buffer.

訪問函數:

bool isGreenMasked () const
void setGreenMasked (bool greenMasked )

通知程序信號:

void greenMaskedChanged (bool greenMasked )

redMasked : bool

Holds whether the red color component should be written to the frame buffer.

訪問函數:

bool isRedMasked () const
void setRedMasked (bool redMasked )

通知程序信號:

void redMaskedChanged (bool redMasked )

成員函數文檔編製

QColorMask:: QColorMask ( Qt3DCore::QNode * parent = nullptr)

Default constructs an instance of QColorMask.