File indexing completed on 2024-12-22 03:45:40
0001 /* 0002 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef MANAGEDTEXTURENODE_H 0008 #define MANAGEDTEXTURENODE_H 0009 0010 #include <QSGSimpleTextureNode> 0011 #include <QSGTexture> 0012 #include <QSharedPointer> 0013 #include <qglobal.h> 0014 0015 class ManagedTextureNode : public QSGSimpleTextureNode 0016 { 0017 Q_DISABLE_COPY(ManagedTextureNode) 0018 public: 0019 ManagedTextureNode(); 0020 0021 void setTexture(QSharedPointer<QSGTexture> texture); 0022 0023 private: 0024 QSharedPointer<QSGTexture> m_texture; 0025 }; 0026 0027 #endif