![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
Provides information about the projection matrix and clipping. More...
#include <qsgrendernode.h>
Public Member Functions | |
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 |
Provides information about the projection matrix and clipping.
\inmodule QtQuick
The render state contains information for the renderer when invoking commands to the scenegraph backends.
Definition at line 38 of file qsgrendernode.h.
|
virtual |
Definition at line 411 of file qsgrendernode.cpp.
|
pure virtual |
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().
Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.
|
virtual |
Reserved for future use.
Definition at line 490 of file qsgrendernode.cpp.
|
pure virtual |
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.
Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.
|
pure virtual |
Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.
|
pure virtual |
Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.
|
pure virtual |
KEEP
, comparison function EQUAL
, and a read and write mask of 0xFF
. Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.
|
pure virtual |
Implemented in QSGBatchRenderer::RenderNodeState, QSGBatchRenderer::RenderNodeState, RenderNodeState, and RenderNodeState.