mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-10 01:33:51 +01:00
Remove the now unused SMaterialLayer::setFiltersMinetest method
This commit is contained in:
parent
ef3bab610d
commit
1d4672bd92
@ -232,16 +232,6 @@ namespace video
|
|||||||
if the value is positive. */
|
if the value is positive. */
|
||||||
s8 LODBias;
|
s8 LODBias;
|
||||||
|
|
||||||
//! Sets the MinFilter, MagFilter and AnisotropicFilter properties according
|
|
||||||
//! to the three relevant boolean values found in the Minetest settings.
|
|
||||||
/** The value of `trilinear` takes precedence over the value of `bilinear`. */
|
|
||||||
void setFiltersMinetest(bool bilinear, bool trilinear, bool anisotropic) {
|
|
||||||
MinFilter = trilinear ? ETMINF_LINEAR_MIPMAP_LINEAR :
|
|
||||||
(bilinear ? ETMINF_LINEAR_MIPMAP_NEAREST : ETMINF_NEAREST_MIPMAP_NEAREST);
|
|
||||||
MagFilter = (trilinear || bilinear) ? ETMAGF_LINEAR : ETMAGF_NEAREST;
|
|
||||||
AnisotropicFilter = anisotropic ? 0xFF : 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
friend class SMaterial;
|
friend class SMaterial;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user