![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
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 |
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 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 4056 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 4063 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 4063 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 4058 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 4058 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4060 of file qsgbatchrenderer.cpp.
References m_scissorEnabled.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4060 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4059 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4059 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
KEEP
, comparison function EQUAL
, and a read and write mask of 0xFF
. Implements QSGRenderNode::RenderState.
Definition at line 4062 of file qsgbatchrenderer.cpp.
References m_stencilEnabled.
|
inlineoverridevirtual |
KEEP
, comparison function EQUAL
, and a read and write mask of 0xFF
. Implements QSGRenderNode::RenderState.
Definition at line 4062 of file qsgbatchrenderer.cpp.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4061 of file qsgbatchrenderer.cpp.
References m_stencilValue.
|
inlineoverridevirtual |
Implements QSGRenderNode::RenderState.
Definition at line 4061 of file qsgbatchrenderer.cpp.
const QMatrix4x4 * RenderNodeState::m_projectionMatrix |
Definition at line 4065 of file qsgbatchrenderer.cpp.
bool RenderNodeState::m_scissorEnabled |
Definition at line 4068 of file qsgbatchrenderer.cpp.
Referenced by scissorEnabled().
QRect RenderNodeState::m_scissorRect |
Definition at line 4066 of file qsgbatchrenderer.cpp.
bool RenderNodeState::m_stencilEnabled |
Definition at line 4069 of file qsgbatchrenderer.cpp.
Referenced by stencilEnabled().
int RenderNodeState::m_stencilValue |
Definition at line 4067 of file qsgbatchrenderer.cpp.
Referenced by stencilValue().