KDeclarative

imagetexturescache.h
1 /*
2  SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef IMAGETEXTURESCACHE_H
8 #define IMAGETEXTURESCACHE_H
9 
10 #include <QSharedPointer>
11 #include <QQuickWindow>
12 
13 #include "quickaddons_export.h"
14 
15 class QImage;
16 class QSGTexture;
17 class ImageTexturesCachePrivate;
18 
31 class QUICKADDONS_EXPORT ImageTexturesCache
32 {
33 public:
36 
43  QSharedPointer<QSGTexture> loadTexture(QQuickWindow *window, const QImage &image, QQuickWindow::CreateTextureOptions options);
44 
45  QSharedPointer<QSGTexture> loadTexture(QQuickWindow *window, const QImage &image);
46 
47 
48 private:
50 };
51 
52 #endif // IMAGETEXTURESCACHE_H
Helps to manage textures by creating images and reference counts them.
typedef CreateTextureOptions
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:44:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.