| 1 | // Copyright (C) 2023 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 | #ifndef QSGCURVEFILLNODE_P_P_H |
| 5 | #define QSGCURVEFILLNODE_P_P_H |
| 6 | |
| 7 | #include <QtQuick/qtquickexports.h> |
| 8 | #include <QtQuick/qsgmaterial.h> |
| 9 | |
| 10 | // |
| 11 | // W A R N I N G |
| 12 | // ------------- |
| 13 | // |
| 14 | // This file is not part of the Qt API. It exists for the convenience |
| 15 | // of a number of Qt sources files. This header file may change from |
| 16 | // version to version without notice, or even be removed. |
| 17 | // |
| 18 | // We mean it. |
| 19 | // |
| 20 | |
| 21 | QT_BEGIN_NAMESPACE |
| 22 | |
| 23 | class QSGCurveFillNode; |
| 24 | class QSGPlainTexture; |
| 25 | class Q_QUICK_EXPORT QSGCurveFillMaterial : public QSGMaterial |
| 26 | { |
| 27 | public: |
| 28 | QSGCurveFillMaterial(QSGCurveFillNode *node); |
| 29 | ~QSGCurveFillMaterial() override; |
| 30 | int compare(const QSGMaterial *other) const override; |
| 31 | |
| 32 | QSGCurveFillNode *node() const |
| 33 | { |
| 34 | return m_node; |
| 35 | } |
| 36 | |
| 37 | QSGPlainTexture *dummyTexture() const |
| 38 | { |
| 39 | return m_dummyTexture; |
| 40 | } |
| 41 | |
| 42 | void setDummyTexture(QSGPlainTexture *dummyTexture) |
| 43 | { |
| 44 | m_dummyTexture = dummyTexture; |
| 45 | } |
| 46 | |
| 47 | private: |
| 48 | QSGMaterialType *type() const override; |
| 49 | QSGMaterialShader *createShader(QSGRendererInterface::RenderMode renderMode) const override; |
| 50 | |
| 51 | QSGCurveFillNode *m_node; |
| 52 | QSGPlainTexture *m_dummyTexture = nullptr; |
| 53 | }; |
| 54 | |
| 55 | QT_END_NAMESPACE |
| 56 | |
| 57 | #endif // QSGCURVEFILLNODE_P_P_H |
| 58 |
