QClearBuffers Class

(Qt3DRender::QClearBuffers)

Class to clear buffers 更多...

头文件: #include <QClearBuffers>
qmake: QT += 3drender
开始支持版本: Qt 5.7
Instantiated By: ClearBuffers
基类: Qt3DRender::QFrameGraphNode

公有类型

enum BufferType { None, ColorBuffer, DepthBuffer, StencilBuffer, ..., AllBuffers }
flags BufferTypeFlags

属性

公有函数

QClearBuffers(Qt3DCore::QNode *parent = nullptr)
BufferType buffers() const
QColor clearColor() const
float clearDepthValue() const
int clearStencilValue() const
QRenderTargetOutput *colorBuffer() const

公有槽函数

void setBuffers(BufferType buffers)
void setClearColor(const QColor &color)
void setClearDepthValue(float clearDepthValue)
void setClearStencilValue(int clearStencilValue)
void setColorBuffer(QRenderTargetOutput *buffer)

信号

void buffersChanged(BufferType buffers)
void clearColorChanged(const QColor &color)
void clearDepthValueChanged(float clearDepthValue)
void clearStencilValueChanged(int clearStencilValue)
void colorBufferChanged(QRenderTargetOutput *buffer)

受保护的函数

QClearBuffers(QClearBuffersPrivate &dd, Qt3DCore::QNode *parent = nullptr)

其他继承的成员

  • 1 个公有变量继承自 QObject
  • 10 个静态公有成员继承自 QObject
  • 2 个受保护的变量继承自 QObject

详细描述

Class to clear buffers

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

成员类型

enum QClearBuffers::BufferType
flags QClearBuffers::BufferTypeFlags

This enum type describes types of buffer to be cleared.

ConstantValueDescription
Qt3DRender::QClearBuffers::None0No 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::DepthStencilBufferDepthBuffer | StencilBufferClear depth and stencil buffers
Qt3DRender::QClearBuffers::ColorDepthBufferColorBuffer | DepthBufferClear color and depth buffers
Qt3DRender::QClearBuffers::ColorDepthStencilBufferColorBuffer | DepthStencilBufferClear color, depth and stencil buffers
Qt3DRender::QClearBuffers::AllBuffers0xFFFFFFFFClear all buffers

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

属性

buffers : BufferType

Specifies the buffer type to be used.

访问函数:

BufferType buffers() const
void setBuffers(BufferType buffers)

Notifier signal:

void buffersChanged(BufferType buffers)

clearColor : QColor

Specifies the clear color to be used.

访问函数:

QColor clearColor() const
void setClearColor(const QColor &color)

Notifier signal:

void clearColorChanged(const QColor &color)

clearDepthValue : float

Specifies the clear depth value to be used.

访问函数:

float clearDepthValue() const
void setClearDepthValue(float clearDepthValue)

Notifier signal:

void clearDepthValueChanged(float clearDepthValue)

clearStencilValue : int

Specifies the stencil value to be used.

访问函数:

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.

访问函数:

QRenderTargetOutput *colorBuffer() const
void setColorBuffer(QRenderTargetOutput *buffer)

Notifier signal:

void colorBufferChanged(QRenderTargetOutput *buffer)

成员函数

QClearBuffers::QClearBuffers(Qt3DCore::QNode *parent = nullptr)

Default constructs an instance of QClearBuffers.

[protected] QClearBuffers::QClearBuffers(QClearBuffersPrivate &dd, Qt3DCore::QNode *parent = nullptr)

Copy constructor.