Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dsimplequadrenderpass_p.h
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
6#ifndef QQUICK3DSIMPLEQUADRENDERPASS_P_H
7#define QQUICK3DSIMPLEQUADRENDERPASS_P_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QQuick3DRenderExtension>
21
22#include <QtQuick3D/private/qquick3dshaderutils_p.h>
23
24QT_BEGIN_NAMESPACE
25
26class QQuick3DSimpleQuadRenderer : public QQuick3DRenderExtension
27{
28 Q_OBJECT
29 Q_PROPERTY(QQuick3DTexture *texture READ texture WRITE setTexture NOTIFY textureChanged FINAL)
30 QML_NAMED_ELEMENT(SimpleQuadRenderer)
31 QML_ADDED_IN_VERSION(6, 11)
32public:
33 QQuick3DSimpleQuadRenderer();
34 QQuick3DTexture *texture() const;
35 void setTexture(QQuick3DTexture *newSource);
36
37signals:
38 void textureChanged();
39
40protected:
41 virtual QSSGRenderGraphObject *updateSpatialNode(QSSGRenderGraphObject *node) final;
42 void itemChange(ItemChange, const ItemChangeData &) final;
43
44private:
45 void updateSceneManager(QQuick3DSceneManager *sceneManager);
46
47 QQuick3DTexture *m_source = nullptr;
48};
49
50QT_END_NAMESPACE
51
52#endif // QQUICK3DSIMPLEQUADRENDERPASS_P_H
\qmltype SimpleQuadRenderer \inqmlmodule QtQuick3D.Helpers \inherits RenderExtension
virtual void render(QSSGFrameData &data) final
Record the render pass.
virtual void resetForFrame() final
Called each time a new frame starts.
virtual RenderStage stage() const final
virtual void prepareRender(QSSGFrameData &data) final
Prepare data for rendering.
virtual bool prepareData(QSSGFrameData &data) final
Called after scene data is collected, but before any render data or rendering in the current frame ha...
virtual RenderMode mode() const final
Combined button and popup list for selecting options.