IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QBlendEquation Class

The QBlendEquation class specifies the equation used for both the RGB blend equation and the Alpha blend equation.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QBlendEquation Class

  • Header: Qt3DRender/QBlendEquation

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3drender)

    target_link_libraries(mytarget PRIVATE Qt6::3drender)

  • qmake: QT += 3drender

  • Inherited By:

  • Instantiated By: qml-qt3d-render-blendequation.xml

  • Inherits: Qt3DRender::QRenderState

  • Group: QBlendEquation is part of renderstates

Detailed Description

The blend equation is used to determine how a new pixel is combined with a pixel already in the framebuffer.

Member Type Documentation

 

enum QBlendEquation::BlendFunction

Constant

Value

Description

Qt3DRender::QBlendEquation::Add

0x8006

GL_FUNC_ADD

Qt3DRender::QBlendEquation::Subtract

0x800A

GL_FUNC_SUBTRACT

Qt3DRender::QBlendEquation::ReverseSubtract

0x800B

GL_FUNC_REVERSE_SUBTRACT

Qt3DRender::QBlendEquation::Min

0x8007

GL_MIN

Qt3DRender::QBlendEquation::Max

0x8008

GL_MAX

Property Documentation

 

blendFunction : BlendFunction

Holds the blend function, which determines how source and destination colors are combined.

Access functions:

  • blendFunction() const

  • void setBlendFunction( blendFunction)

Notifier signal:

  • void blendFunctionChanged( blendFunction)

Member Function Documentation

 

[explicit] QBlendEquation::QBlendEquation(Qt3DCore::QNode *parent = nullptr)

The constructor creates a new blend state object with the specified parent.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+