QClearBuffers¶

PyQt5.Qt3DRender.QClearBuffers

Inherits from QFrameGraphNode.

Description¶

Class to clear buffers.

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

Enums¶

BufferType

This enum type describes types of buffer to be cleared.

Member

Value

Description

AllBuffers

0xFFFFFFFF

Clear all buffers

ColorBuffer

(1 << 0)

Clear color buffers

ColorDepthBuffer

ColorBuffer | DepthBuffer

Clear color and depth buffers

ColorDepthStencilBuffer

ColorBuffer | DepthStencilBuffer

Clear color, depth and stencil buffers

DepthBuffer

(1 << 1)

Clear depth buffer

DepthStencilBuffer

DepthBuffer | StencilBuffer

Clear depth and stencil buffers

None

0

No buffers will be cleared

StencilBuffer

(1 << 2)

Clear stencil buffer

Methods¶

__init__(parent: QNode = None)

The constructor creates an instance with the specified parent.


buffers() → BufferType

See also

setBuffers().


clearColor() → QColor

See also

setClearColor().


clearDepthValue() → float

clearStencilValue() → int

colorBuffer() → QRenderTargetOutput

See also

setColorBuffer().


setBuffers(BufferType)

See also

buffers().


setClearColor(Union[QColor, GlobalColor])

See also

clearColor().


setClearDepthValue(float)

See also

clearDepthValue().


setClearStencilValue(int)

setColorBuffer(QRenderTargetOutput)

See also

colorBuffer().

Signals¶

buffersChanged(BufferType)

TODO


clearColorChanged(Union[QColor, GlobalColor])

TODO


clearDepthValueChanged(float)

TODO


clearStencilValueChanged(int)

TODO


colorBufferChanged(QRenderTargetOutput)

TODO