Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
loader.cpp File Reference
#include "loader.hpp"
#include <QImageReader>
#include <QPainter>
#include <QtConcurrentRun>
#include "core/utils/ImageCache/ImageCache.hpp"
#include "core/utils/threading/pools.hpp"
#include "images.hpp"

Namespaces

namespace  atlas
 
namespace  atlas::images
 
namespace  atlas::images::internal
 
namespace  atlas::images::async
 

Functions

const std::string atlas::images::pixmapKey (const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
 
QPixmap atlas::images::scalePixmap (QPixmap img, const QSize target_size, const SCALE_TYPE scale_type)
 
QPixmap atlas::images::loadPixmap (const std::filesystem::path &path)
 
QPixmap atlas::images::loadScaledPixmap (const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
 
QImage atlas::images::loadImage (const std::filesystem::path &path)
 
void atlas::images::internal::loadPixmap (QPromise< QPixmap > &promise, const std::filesystem::path &path)
 
void atlas::images::internal::loadScaledPixmap (QPromise< QPixmap > &promise, const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
 
QFuture< QPixmap > atlas::images::async::loadScaledPixmap (const QSize target_size, const SCALE_TYPE scale_type, const std::filesystem::path &path)
 
QFuture< QPixmap > atlas::images::async::loadPixmap (const std::filesystem::path &path)
 

Variables

static atlas::cache::ImageCache scale_cache
 
static atlas::cache::ImageCache pixmap_cache
 

Variable Documentation

◆ pixmap_cache

atlas::cache::ImageCache pixmap_cache
inlinestatic

◆ scale_cache

atlas::cache::ImageCache scale_cache
inlinestatic