Qt 6.x
The Qt SDK
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
18 : QSGNode(RenderNodeType),
20{
21}
22
36{
37 delete d;
38}
39
41 : m_matrix(nullptr)
42 , m_clip_list(nullptr)
43 , m_opacity(1)
44{
45}
46
94QSGRenderNode::StateFlags QSGRenderNode::changedStates() const
95{
96 return {};
97}
98
114{
115}
116
237{
238}
239
295QSGRenderNode::RenderingFlags QSGRenderNode::flags() const
296{
297 return {};
298}
299
320{
321 return QRectF();
322}
323
341{
342 return &d->m_projectionMatrix;
343}
344
349{
350 return d->m_matrix;
351}
352
357{
358 return d->m_clip_list;
359}
360
365{
366 return d->m_opacity;
367}
368
406{
407 return d->m_rt.rt;
408}
409
418{
419 return d->m_rt.cb;
420}
421
423{
424}
425
491{
493 return nullptr;
494}
495
The QMatrix4x4 class represents a 4x4 transformation matrix in 3D space.
Definition qmatrix4x4.h:25
\inmodule QtCore\reentrant
Definition qrect.h:483
\inmodule QtGui
Definition qrhi.h:1614
\inmodule QtGui
Definition qrhi.h:1135
The QSGClipNode class implements the clipping functionality in the scene graph.
Definition qsgnode.h:224
\group qtquick-scenegraph-nodes \title Qt Quick Scene Graph Node classes
Definition qsgnode.h:37
const QSGClipNode * m_clip_list
QSGRenderTarget m_rt
QMatrix4x4 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
else opt state
[0]
Combined button and popup list for selecting options.
#define Q_UNUSED(x)
double qreal
Definition qtypes.h:92
QObject::connect nullptr
virtual void * get(const char *state) const