Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
loader.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 9/22/23.
3//
4
5#pragma once
6#ifndef ATLASGAMEMANAGER_LOADE_HPP
7#define ATLASGAMEMANAGER_LOADE_HPP
8
9#include <QFuture>
10#include <QPixmap>
11
12#include <filesystem>
13
15
16namespace atlas::images
17{
18 [[nodiscard]] QPixmap scalePixmap( QPixmap img, const QSize target_size, const SCALE_TYPE scale_type );
19 [[nodiscard]] QPixmap
20 loadScaledPixmap( const QSize target_size, const SCALE_TYPE type, const std::filesystem::path& path );
21 [[nodiscard]] QImage loadImage( const std::filesystem::path& path );
22 [[nodiscard]] QPixmap loadPixmap( const std::filesystem::path& path );
23
24 namespace async
25 {
26 [[nodiscard]] QFuture< QPixmap >
27 loadScaledPixmap( const QSize target_size, const SCALE_TYPE type, const std::filesystem::path& );
28 [[nodiscard]] QFuture< QPixmap > loadPixmap( const std::filesystem::path& path );
29 } // namespace async
30} // namespace atlas::images
31#endif //ATLASGAMEMANAGER_LOADE_HPP
SCALE_TYPE
Definition config.hpp:219
QFuture< QPixmap > loadPixmap(const std::filesystem::path &path)
Definition loader.cpp:235
QFuture< QPixmap > loadScaledPixmap(const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
Definition loader.cpp:215
Definition blurhash.cpp:16
QImage loadImage(const std::filesystem::path &path)
Definition loader.cpp:133
QPixmap loadScaledPixmap(const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
Definition loader.cpp:72
QPixmap scalePixmap(QPixmap img, const QSize target_size, const SCALE_TYPE scale_type)
Definition loader.cpp:28
QPixmap loadPixmap(const std::filesystem::path &path)
Definition loader.cpp:50