![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
const QMatrix4x4 * | projectionMatrix () const override |
QRect | scissorRect () const override |
bool | scissorEnabled () const override |
int | stencilValue () const override |
bool | stencilEnabled () const override |
const QRegion * | clipRegion () const override |
![]() | |
virtual | ~RenderState () |
virtual const QMatrix4x4 * | projectionMatrix () const =0 |
virtual QRect | scissorRect () const =0 |
virtual bool | scissorEnabled () const =0 |
virtual int | stencilValue () const =0 |
virtual bool | stencilEnabled () const =0 |
virtual const QRegion * | clipRegion () const =0 |
virtual void * | get (const char *state) const |
Public Attributes | |
const QMatrix4x4 * | m_projectionMatrix |
QRect | m_scissorRect |
int | m_stencilValue |
bool | m_scissorEnabled |
bool | m_stencilEnabled |
Definition at line 3894 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
The software backend uses no projection, scissor or stencil, meaning most of the render state is not in use. However, the clip region that can be set on the QPainter still has to be communicated since reconstructing this manually in render() is not reasonable. It can therefore be queried via this function. The region is in world coordinates and can be passed to QPainter::setClipRegion() with Qt::ReplaceClip. This must be done before calling QPainter::setTransform() since the clip region is already mapped to the transform provided in QSGRenderNode::matrix().
Implements QSGRenderNode::RenderState.
Definition at line 3901 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
The model-view matrix can be retrieved with QSGRenderNode::matrix(). Typically {projection * modelview} is the matrix that is then used in the vertex shader to transform the vertices.
Implements QSGRenderNode::RenderState.
Definition at line 3896 of file qsgbatchrenderer.cpp.
References m_projectionMatrix.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 3898 of file qsgbatchrenderer.cpp.
References m_scissorEnabled.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 3897 of file qsgbatchrenderer.cpp.
References m_scissorRect.
|
inlineoverridevirtual |
KEEP
, comparison function EQUAL
, and a read and write mask of 0xFF
. Implements QSGRenderNode::RenderState.
Definition at line 3900 of file qsgbatchrenderer.cpp.
References m_stencilEnabled.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 3899 of file qsgbatchrenderer.cpp.
References m_stencilValue.
const QMatrix4x4* QSGBatchRenderer::RenderNodeState::m_projectionMatrix |
Definition at line 3903 of file qsgbatchrenderer.cpp.
Referenced by projectionMatrix().
bool QSGBatchRenderer::RenderNodeState::m_scissorEnabled |
Definition at line 3906 of file qsgbatchrenderer.cpp.
Referenced by scissorEnabled().
QRect QSGBatchRenderer::RenderNodeState::m_scissorRect |
Definition at line 3904 of file qsgbatchrenderer.cpp.
Referenced by scissorRect().
bool QSGBatchRenderer::RenderNodeState::m_stencilEnabled |
Definition at line 3907 of file qsgbatchrenderer.cpp.
Referenced by stencilEnabled().
int QSGBatchRenderer::RenderNodeState::m_stencilValue |
Definition at line 3905 of file qsgbatchrenderer.cpp.
Referenced by stencilValue().