RhythmGame 1.4.3
Loading...
Searching...
No Matches
DxaImageProvider.h
Go to the documentation of this file.
1//
2// Created by bobini on 13/12/2025.
3//
4
5#ifndef RHYTHMGAME_DXAIMAGEPROVIDER_H
6#define RHYTHMGAME_DXAIMAGEPROVIDER_H
7
8#include "support/dxa.h"
9
10#include <QQuickImageProvider>
11#include <filesystem>
12#include <mutex>
13#include <unordered_map>
14namespace resource_managers {
15
16class DxaImageProvider final : public QQuickImageProvider
17{
18 std::mutex archiveMutex;
19 std::unordered_map<std::filesystem::path, support::DXArchive>
20 loadedArchives;
21 void loadArchive(const std::filesystem::path& path);
22
23 public:
25 auto requestPixmap(const QString& id,
26 QSize* size,
27 const QSize& requestedSize) -> QPixmap override;
28};
29
30} // namespace resource_managers
31
32#endif // RHYTHMGAME_DXAIMAGEPROVIDER_H
QString path
Definition Lr2SkinParser.cpp:87
int size
Definition Lr2SkinParser.cpp:89
Definition DxaImageProvider.h:17
auto requestPixmap(const QString &id, QSize *size, const QSize &requestedSize) -> QPixmap override
Definition DxaImageProvider.cpp:28
DxaImageProvider()
Definition DxaImageProvider.cpp:22
Classes and functions related to loading and managing resources such as charts, sounds,...
Definition ProfileArenaIdentityProvider.h:12