Path: blob/master/libmupen64plus/mupen64plus-video-glide64mk2/src/GlideHQ/TxHiResCache.h
2 views
/*1* Texture Filtering2* Version: 1.03*4* Copyright (C) 2007 Hiroshi Morii All Rights Reserved.5* Email koolsmoky(at)users.sourceforge.net6* Web http://www.3dfxzone.it/koolsmoky7*8* this is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2, or (at your option)11* any later version.12*13* this is distributed in the hope that it will be useful,14* but WITHOUT ANY WARRANTY; without even the implied warranty of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with GNU Make; see the file COPYING. If not, write to20* the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.21*/2223#ifndef __TXHIRESCACHE_H__24#define __TXHIRESCACHE_H__2526/* support hires textures27* 0: disable28* 1: enable29*/30#define HIRES_TEXTURE 13132#include "TxCache.h"33#include "TxQuantize.h"34#include "TxImage.h"35#include "TxReSample.h"36#include <boost/filesystem.hpp>3738class TxHiResCache : public TxCache39{40private:41int _maxwidth;42int _maxheight;43int _maxbpp;44boolean _haveCache;45boolean _abortLoad;46TxImage *_txImage;47TxQuantize *_txQuantize;48TxReSample *_txReSample;49boolean loadHiResTextures(boost::filesystem::wpath dir_path, boolean replace);50public:51~TxHiResCache();52TxHiResCache(int maxwidth, int maxheight, int maxbpp, int options,53const wchar_t *datapath, const wchar_t *cachepath,54const wchar_t *ident, dispInfoFuncExt callback);55boolean empty();56boolean load(boolean replace);57};5859#endif /* __TXHIRESCACHE_H__ */606162