2021-03-02 02:13:17 +00:00
|
|
|
// Project64 - A Nintendo 64 emulator
|
2021-05-18 11:51:36 +00:00
|
|
|
// https://www.pj64-emu.com/
|
2021-03-02 02:13:17 +00:00
|
|
|
// Copyright(C) 2001-2021 Project64
|
|
|
|
// Copyright(C) 2007 Hiroshi Morii
|
|
|
|
// Copyright(C) 2003 Rice1964
|
|
|
|
// GNU/GPLv2 licensed: https://gnu.org/licenses/gpl-2.0.html
|
2013-04-17 10:30:38 +00:00
|
|
|
|
|
|
|
#ifndef __TXHIRESCACHE_H__
|
|
|
|
#define __TXHIRESCACHE_H__
|
|
|
|
|
2021-05-18 11:51:36 +00:00
|
|
|
// Support high resolution textures
|
|
|
|
// 0: disable
|
|
|
|
// 1: enable
|
|
|
|
|
2013-04-17 10:30:38 +00:00
|
|
|
#define HIRES_TEXTURE 1
|
|
|
|
|
|
|
|
#include "TxCache.h"
|
|
|
|
#include "TxQuantize.h"
|
|
|
|
#include "TxImage.h"
|
|
|
|
#include "TxReSample.h"
|
|
|
|
|
|
|
|
class TxHiResCache : public TxCache
|
|
|
|
{
|
|
|
|
private:
|
2016-02-10 07:02:20 +00:00
|
|
|
int _maxwidth;
|
|
|
|
int _maxheight;
|
|
|
|
int _maxbpp;
|
2017-04-26 10:23:36 +00:00
|
|
|
bool _haveCache;
|
|
|
|
bool _abortLoad;
|
2016-02-10 07:02:20 +00:00
|
|
|
TxImage *_txImage;
|
|
|
|
TxQuantize *_txQuantize;
|
|
|
|
TxReSample *_txReSample;
|
2017-04-26 10:23:36 +00:00
|
|
|
bool loadHiResTextures(const char * dir_path, bool replace);
|
2013-04-17 10:30:38 +00:00
|
|
|
public:
|
2016-02-10 07:02:20 +00:00
|
|
|
~TxHiResCache();
|
|
|
|
TxHiResCache(int maxwidth, int maxheight, int maxbpp, int options,
|
|
|
|
const char *path, const char *ident,
|
|
|
|
dispInfoFuncExt callback);
|
2017-04-26 10:23:36 +00:00
|
|
|
bool empty();
|
|
|
|
bool load(bool replace);
|
2013-04-17 10:30:38 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __TXHIRESCACHE_H__ */
|