| 1 | /* |
| 2 | SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #ifndef MANAGEDTEXTURENODE_H |
| 8 | #define MANAGEDTEXTURENODE_H |
| 9 | |
| 10 | #include <QSGSimpleTextureNode> |
| 11 | #include <QSGTexture> |
| 12 | #include <QSharedPointer> |
| 13 | #include <qglobal.h> |
| 14 | |
| 15 | class ManagedTextureNode : public QSGSimpleTextureNode |
| 16 | { |
| 17 | Q_DISABLE_COPY(ManagedTextureNode) |
| 18 | public: |
| 19 | ManagedTextureNode(); |
| 20 | |
| 21 | void setTexture(QSharedPointer<QSGTexture> texture); |
| 22 | |
| 23 | private: |
| 24 | QSharedPointer<QSGTexture> m_texture; |
| 25 | }; |
| 26 | |
| 27 | #endif |
| 28 | |