summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/TextureCacheBase.h
diff options
context:
space:
mode:
authorNeoBrainX <NeoBrainX@gmail.com>2012-05-12 13:25:13 +0200
committerNeoBrainX <NeoBrainX@gmail.com>2012-05-13 17:41:03 +0200
commit3ecc5e879c2ca82a021ca7ebbfd4299d192ba178 (patch)
treea82bb72e5a43e114da6716f60374fe55f7f2f45c /Source/Core/VideoCommon/Src/TextureCacheBase.h
parentb27f47148809ff027e7bdfef6cd0a16fb69a69eb (diff)
TextureCacheBase: Move custom texture loading to a helper function
Diffstat (limited to 'Source/Core/VideoCommon/Src/TextureCacheBase.h')
-rw-r--r--Source/Core/VideoCommon/Src/TextureCacheBase.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/Src/TextureCacheBase.h b/Source/Core/VideoCommon/Src/TextureCacheBase.h
index 2924c5871f..4252b29d53 100644
--- a/Source/Core/VideoCommon/Src/TextureCacheBase.h
+++ b/Source/Core/VideoCommon/Src/TextureCacheBase.h
@@ -113,6 +113,7 @@ public:
unsigned int expanded_width, unsigned int tex_levels, PC_TexFormat pcfmt) = 0;
virtual TCacheEntryBase* CreateRenderTargetTexture(unsigned int scaled_tex_w, unsigned int scaled_tex_h) = 0;
+
static TCacheEntryBase* Load(unsigned int stage, u32 address, unsigned int width, unsigned int height,
int format, unsigned int tlutaddr, int tlutfmt, bool UseNativeMips, unsigned int maxlevel, bool from_tmem);
static void CopyRenderTargetToTexture(u32 dstAddr, unsigned int dstFormat, unsigned int srcFormat,
@@ -126,6 +127,9 @@ protected:
static GC_ALIGNED16(u8 *temp);
private:
+ static PC_TexFormat LoadCustomTexture(u64 tex_hash, int texformat, unsigned int& width, unsigned int& height, u8* dest);
+
+
typedef std::map<u32, TCacheEntryBase*> TexCache;
static TexCache textures;