summaryrefslogtreecommitdiffstats
path: root/src/fakerw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-01-21 22:30:20 +0100
committeraap <aap@papnet.eu>2021-01-21 22:30:20 +0100
commitc67273e92a60e50d67d8146f6a150a5b39a2a641 (patch)
tree062bb3b8d9b2ba99e477748aeaf2a1e19c891da0 /src/fakerw
parentMerge pull request #968 from withmorten/cw (diff)
downloadre3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.gz
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.bz2
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.lz
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.xz
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.tar.zst
re3-c67273e92a60e50d67d8146f6a150a5b39a2a641.zip
Diffstat (limited to 'src/fakerw')
-rw-r--r--src/fakerw/fake.cpp9
-rw-r--r--src/fakerw/rpanisot.h6
2 files changed, 15 insertions, 0 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp
index c1150931..366dcf3e 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -962,3 +962,12 @@ RtCharset *RtCharsetSetColors(RtCharset * charSet, const RwRGBA * foreGround,
RtCharset *RtCharsetGetDesc(RtCharset * charset, RtCharsetDesc * desc) { *desc = charset->desc; return charset; }
RtCharset *RtCharsetCreate(const RwRGBA * foreGround, const RwRGBA * backGround) { return Charset::create(foreGround, backGround); }
RwBool RtCharsetDestroy(RtCharset * charSet) { charSet->destroy(); return true; }
+
+
+
+#include <rpanisot.h>
+
+RwInt8 RpAnisotGetMaxSupportedMaxAnisotropy(void) { return rw::getMaxSupportedMaxAnisotropy(); }
+RwTexture *RpAnisotTextureSetMaxAnisotropy(RwTexture *tex, RwInt8 val) { tex->setMaxAnisotropy(val); return tex; }
+RwInt8 RpAnisotTextureGetMaxAnisotropy(RwTexture *tex) { return tex->getMaxAnisotropy(); }
+RwBool RpAnisotPluginAttach(void) { rw::registerAnisotropyPlugin(); return true; }
diff --git a/src/fakerw/rpanisot.h b/src/fakerw/rpanisot.h
new file mode 100644
index 00000000..a886512f
--- /dev/null
+++ b/src/fakerw/rpanisot.h
@@ -0,0 +1,6 @@
+#pragma once
+
+RwInt8 RpAnisotGetMaxSupportedMaxAnisotropy(void);
+RwTexture *RpAnisotTextureSetMaxAnisotropy(RwTexture *tex, RwInt8 val);
+RwInt8 RpAnisotTextureGetMaxAnisotropy(RwTexture *tex);
+RwBool RpAnisotPluginAttach(void);