summaryrefslogtreecommitdiffstats
path: root/src/fakerw
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-22 00:58:38 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-22 00:58:38 +0100
commit06d8860d42028d7fa3581e90ecc906ddf7c3f2da (patch)
tree18131f582cc9668f698e5b9599febc0b8d81cb88 /src/fakerw
parenthigher wheel LOD dist (diff)
parentfuck (diff)
downloadre3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.gz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.bz2
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.lz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.xz
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.tar.zst
re3-06d8860d42028d7fa3581e90ecc906ddf7c3f2da.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 835cb849..768c11f4 100644
--- a/src/fakerw/fake.cpp
+++ b/src/fakerw/fake.cpp
@@ -967,3 +967,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);