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

QClearBuffers Class

Class to clear buffers.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QClearBuffers Class

  • Header: QClearBuffers

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

  • Inherits: Qt3DRender::QFrameGraphNode

  • Group: QClearBuffers is part of framegraph

Detailed Description

A Qt3DRender::QClearBuffers FrameGraph node enables clearing of the specific render target buffers with specific values.

Member Type Documentation

 

enum QClearBuffers::BufferType

flags QClearBuffers::BufferTypeFlags

This enum type describes types of buffer to be cleared.

Constant

Value

Description

Qt3DRender::QClearBuffers::None

0

No buffers will be cleared

Qt3DRender::QClearBuffers::ColorBuffer

(1 << 0)

Clear color buffers

Qt3DRender::QClearBuffers::DepthBuffer

(1 << 1)

Clear depth buffer

Qt3DRender::QClearBuffers::StencilBuffer

(1 << 2)

Clear stencil buffer

Qt3DRender::QClearBuffers::DepthStencilBuffer

DepthBuffer | StencilBuffer

Clear depth and stencil buffers

Qt3DRender::QClearBuffers::ColorDepthBuffer

ColorBuffer | DepthBuffer

Clear color and depth buffers

Qt3DRender::QClearBuffers::ColorDepthStencilBuffer

ColorBuffer | DepthStencilBuffer

Clear color, depth and stencil buffers

Qt3DRender::QClearBuffers::AllBuffers

0xFFFFFFFF

Clear all buffers

The BufferTypeFlags type is a typedef for QFlags<BufferType>. It stores an OR combination of BufferType values.

Property Documentation

 

buffers : BufferType

Specifies the buffer type to be used.

Access functions:

  • buffers() const

  • void setBuffers( buffers)

Notifier signal:

  • void buffersChanged( buffers)

clearColor : QColor

Specifies the clear color to be used.

Access functions:

  • clearColor() const

  • void setClearColor(const &color)

Notifier signal:

  • void clearColorChanged(const &color)

clearDepthValue : float

Specifies the clear depth value to be used.

Access functions:

  • float clearDepthValue() const

  • void setClearDepthValue(float clearDepthValue)

Notifier signal:

  • void clearDepthValueChanged(float clearDepthValue)

clearStencilValue : int

Specifies the stencil value to be used.

Access functions:

  • int clearStencilValue() const

  • void setClearStencilValue(int clearStencilValue)

Notifier signal:

  • void clearStencilValueChanged(int clearStencilValue)

colorBuffer : Qt3DRender::QRenderTargetOutput*

Specifies a specific color buffer to clear. If set to NULL (default), and ColorBuffer flag is set, all color buffers will be cleared.

Access functions:

  • *colorBuffer() const

  • void setColorBuffer( *buffer)

Notifier signal:

  • void colorBufferChanged( *buffer)

Member Function Documentation

 

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

The constructor creates an 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+