C
Qt Cluster: Rendering and Recovery from Main UI Failure
// Copyright (C) 2020 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause // This file is part of the Qt Safe Renderer module #ifndef ETCPROVIDER_H #define ETCPROVIDER_H #include <qopengl.h> #include <QQuickImageProvider> #include <QtQuick/QSGTexture> #include <QUrl> class EtcProvider : public QQuickImageProvider { public: EtcProvider() : QQuickImageProvider(QQuickImageProvider::Image) {} QImage requestImage(const QString &id, QSize *size, const QSize &requestedSize); void setBaseUrl(const QUrl &base); private: QUrl m_baseUrl; }; #endif // ETCPROVIDER_H