devicePixelRatio() support

This commit is contained in:
2023-02-06 19:50:27 +03:00
parent 7c6ca07323
commit 4e02e154c6
17 changed files with 98 additions and 47 deletions

View File

@@ -33,8 +33,8 @@ public:
TextureManager(QOpenGLExtraFunctions * f_): f(f_) {}
virtual ~TextureManager() {}
static void addSearchPath(const QString & path) {
if (!search_pathes; { search_pathes.clear(); }
static void addSearchPath(const QString & path);
static void clearSearchPathes() { search_pathes.clear(); }
static QStringList searchPathes() { return search_pathes; }
static QString findFile(const QString & path);
GLuint loadTexture(const QString & path, bool ownership = true, bool bump = false);