diff options
author | aap <aap@papnet.eu> | 2021-01-21 22:30:20 +0100 |
---|---|---|
committer | aap <aap@papnet.eu> | 2021-01-21 22:30:20 +0100 |
commit | c67273e92a60e50d67d8146f6a150a5b39a2a641 (patch) | |
tree | 062bb3b8d9b2ba99e477748aeaf2a1e19c891da0 /src/fakerw | |
parent | Merge pull request #968 from withmorten/cw (diff) | |
download | re3-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.cpp | 9 | ||||
-rw-r--r-- | src/fakerw/rpanisot.h | 6 |
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); |