PySide6.Qt3DRender.Qt3DRender.QBlendEquation¶
- class QBlendEquation¶
QBlendEquation类指定了用于RGB混合方程和Alpha混合方程的方程。更多…概要¶
属性¶
方法¶
def
__init__()def
blendFunction()
插槽¶
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
混合方程用于确定新像素如何与帧缓冲区中已有的像素结合。
- class BlendFunction¶
常量
描述
Qt3DRender.QBlendEquation.Add
GL_FUNC_ADD
Qt3DRender.QBlendEquation.Subtract
GL_FUNC_SUBTRACT
Qt3DRender.QBlendEquation.ReverseSubtract
GL_FUNC_REVERSE_SUBTRACT
Qt3DRender.QBlendEquation.Min
GL_MIN
Qt3DRender.QBlendEquation.Max
GL_MAX
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property blendFunctionᅟ: Qt3DRender.QBlendEquation.BlendFunction¶
保存混合函数,该函数决定了源颜色和目标颜色的组合方式。
- Access functions:
- __init__([parent=None])¶
- Parameters:
parent –
QNode
构造函数使用指定的
parent创建一个新的混合状态对象。- blendFunction()¶
- Return type:
BlendFunction
另请参阅
setBlendFunction()
属性
blendFunctionᅟ的获取器。- blendFunctionChanged(blendFunction)¶
- Parameters:
blendFunction –
BlendFunction
属性
blendFunctionᅟ的通知信号。- setBlendFunction(blendFunction)¶
- Parameters:
blendFunction –
BlendFunction
另请参阅
blendFunction()
属性
blendFunctionᅟ的设置器。