QClearBuffers¶
Class to clear buffers. More…
Synopsis¶
Functions¶
def
buffers
()def
clearColor
()def
clearDepthValue
()def
clearStencilValue
()def
colorBuffer
()
Slots¶
def
setBuffers
(buffers)def
setClearColor
(color)def
setClearDepthValue
(clearDepthValue)def
setClearStencilValue
(clearStencilValue)def
setColorBuffer
(buffer)
Signals¶
def
buffersChanged
(buffers)def
clearColorChanged
(color)def
clearDepthValueChanged
(clearDepthValue)def
clearStencilValueChanged
(clearStencilValue)def
colorBufferChanged
(buffer)
Detailed Description¶
A QClearBuffers
FrameGraph node enables clearing of the specific render target buffers with specific values.
- class PySide6.Qt3DRender.Qt3DRender.QClearBuffers([parent=None])¶
- Parameters
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
The constructor creates an instance with the specified parent
.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.BufferType¶
This enum type describes types of buffer to be cleared.
Constant
Description
Qt3DRender.QClearBuffers.None
No buffers will be cleared
Qt3DRender.QClearBuffers.ColorBuffer
Clear color buffers
Qt3DRender.QClearBuffers.DepthBuffer
Clear depth buffer
Qt3DRender.QClearBuffers.StencilBuffer
Clear stencil buffer
Qt3DRender.QClearBuffers.DepthStencilBuffer
Clear depth and stencil buffers
Qt3DRender.QClearBuffers.ColorDepthBuffer
Clear color and depth buffers
Qt3DRender.QClearBuffers.ColorDepthStencilBuffer
Clear color, depth and stencil buffers
Qt3DRender.QClearBuffers.AllBuffers
Clear all buffers
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.buffers()¶
- Return type
Specifies the buffer type to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.buffersChanged(buffers)¶
- Parameters
buffers –
BufferType
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearColor()¶
- Return type
Specifies the clear color to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearColorChanged(color)¶
- Parameters
color –
PySide6.QtGui.QColor
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearDepthValue()¶
- Return type
float
Specifies the clear depth value to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearDepthValueChanged(clearDepthValue)¶
- Parameters
clearDepthValue – float
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearStencilValue()¶
- Return type
int
Specifies the stencil value to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.clearStencilValueChanged(clearStencilValue)¶
- Parameters
clearStencilValue – int
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.colorBuffer()¶
Specifies a specific color buffer to clear. If set to NULL (default), and ColorBuffer
flag is set, all color buffers will be cleared.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.colorBufferChanged(buffer)¶
- Parameters
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.setBuffers(buffers)¶
- Parameters
buffers –
BufferType
Specifies the buffer type to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.setClearColor(color)¶
- Parameters
color –
PySide6.QtGui.QColor
Specifies the clear color to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.setClearDepthValue(clearDepthValue)¶
- Parameters
clearDepthValue – float
Specifies the clear depth value to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.setClearStencilValue(clearStencilValue)¶
- Parameters
clearStencilValue – int
Specifies the stencil value to be used.
- PySide6.Qt3DRender.Qt3DRender.QClearBuffers.setColorBuffer(buffer)¶
- Parameters
Specifies a specific color buffer to clear. If set to NULL (default), and ColorBuffer
flag is set, all color buffers will be cleared.
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.