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

QFrontFace Class

The QFrontFace class defines front and back facing polygons.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QFrontFace Class

  • Header: QFrontFace

  • 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-frontface.xml

  • Inherits: Qt3DRender::QRenderState

  • Group: QFrontFace is part of renderstates

Detailed Description

A Qt3DRender::QFrontFace sets the winding direction of the front facing polygons.

See Also

See also QCullFace

Member Type Documentation

 

enum QFrontFace::WindingDirection

This enumeration specifies the winding direction values.

Constant

Value

Description

Qt3DRender::QFrontFace::ClockWise

0x0900

Clockwise polygons are front facing.

Qt3DRender::QFrontFace::CounterClockWise

0x0901

Counter clockwise polygons are front facing.

Property Documentation

 

direction : WindingDirection

Holds the winding direction of the front facing polygons. Default is Clockwise.

Access functions:

  • direction() const

  • void setDirection( direction)

Notifier signal:

  • void directionChanged( direction)

Member Function Documentation

 

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

The constructor creates a new QFrontFace::QFrontFace instance with the specified parent

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