Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qsgrendernode.cpp
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#include "qsgrendernode.h"
5#include "qsgrendernode_p.h"
6
8
35 : QSGNode(RenderNodeType),
37{
38}
39
60{
61 delete d;
62}
63
65 : m_matrix(nullptr)
66 , m_clip_list(nullptr)
67 , m_opacity(1)
68{
70}
71
123QSGRenderNode::StateFlags QSGRenderNode::changedStates() const
124{
125 return {};
126}
127
149{
150}
151
250
308QSGRenderNode::RenderingFlags QSGRenderNode::flags() const
309{
310 return {};
311}
312
333{
334 return QRectF();
335}
336
354{
355 return &d->m_projectionMatrix[0];
356}
357
362{
363 return &d->m_projectionMatrix[index];
364}
365
370{
371 return d->m_matrix;
372}
373
378{
379 return d->m_clip_list;
380}
381
386{
387 return d->m_opacity;
388}
389
427{
428 return d->m_rt.rt;
429}
430
439{
440 return d->m_rt.cb;
441}
442
446
512{
514 return nullptr;
515}
516
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
\inmodule QtCore\reentrant
Definition qrect.h:484
\inmodule QtGui
Definition qrhi.h:1651
\inmodule QtGui
Definition qrhi.h:1158
The QSGClipNode class implements the clipping functionality in the scene graph.
Definition qsgnode.h:221
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
const QSGClipNode * m_clip_list
QSGRenderTarget m_rt
QVarLengthArray< QMatrix4x4, 1 > m_projectionMatrix
const QMatrix4x4 * m_matrix
virtual void prepare()
Called from the frame preparation phase.
virtual void releaseResources()
This function is called when all custom graphics resources allocated by this node have to be freed im...
~QSGRenderNode() override
Destructs the render node.
const QMatrix4x4 * projectionMatrix() const
virtual StateFlags changedStates() const
When the underlying rendering API is OpenGL, this function should return a mask where each bit repres...
QRhiRenderTarget * renderTarget() const
qreal inheritedOpacity() const
virtual RenderingFlags flags() const
QRhiCommandBuffer * commandBuffer() const
const QMatrix4x4 * matrix() const
virtual QRectF rect() const
const QSGClipNode * clipList() const
QRhiCommandBuffer * cb
QRhiRenderTarget * rt
void resize(qsizetype sz)
else opt state
[0]
Combined button and popup list for selecting options.
GLuint index
[2]
#define Q_UNUSED(x)
double qreal
Definition qtypes.h:187
QObject::connect nullptr
virtual void * get(const char *state) const