Merge remote-tracking branch 'origin/miami' into lcs

* origin/miami:
  fuck
  bletch
  fixed anisotropic filtering; updated librw
  fix
This commit is contained in:
Sergeanur
2021-01-22 01:58:38 +02:00
7 changed files with 23 additions and 11 deletions

View File

@ -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; }

6
src/fakerw/rpanisot.h Normal file
View File

@ -0,0 +1,6 @@
#pragma once
RwInt8 RpAnisotGetMaxSupportedMaxAnisotropy(void);
RwTexture *RpAnisotTextureSetMaxAnisotropy(RwTexture *tex, RwInt8 val);
RwInt8 RpAnisotTextureGetMaxAnisotropy(RwTexture *tex);
RwBool RpAnisotPluginAttach(void);