![]() |
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 | |
QMatrix4x4 | ident |
QRegion | cr |
Definition at line 198 of file qsgsoftwarerenderablenode.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 205 of file qsgsoftwarerenderablenode.cpp.
References cr.
|
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 200 of file qsgsoftwarerenderablenode.cpp.
References ident.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 202 of file qsgsoftwarerenderablenode.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 201 of file qsgsoftwarerenderablenode.cpp.
|
inlineoverridevirtual |
KEEP
, comparison function EQUAL
, and a read and write mask of 0xFF
. Implements QSGRenderNode::RenderState.
Definition at line 204 of file qsgsoftwarerenderablenode.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 203 of file qsgsoftwarerenderablenode.cpp.
QRegion RenderNodeState::cr |
Definition at line 207 of file qsgsoftwarerenderablenode.cpp.
Referenced by clipRegion(), and QSGSoftwareRenderableNode::renderNode().
QMatrix4x4 RenderNodeState::ident |
Definition at line 206 of file qsgsoftwarerenderablenode.cpp.
Referenced by projectionMatrix().