Fix texures

* Add missing Mipmap generation call
* Add missing state clearing
* Add optional linear Mipmap flag setting
* Add optional edge clamping
* Fix texture orientation in Batcher.bf
* Fix example
This commit is contained in:
Thimo
2020-11-08 14:20:08 +01:00
parent decb8b855d
commit ae8ffdd2e3
4 changed files with 27 additions and 6 deletions

View File

@ -69,10 +69,10 @@ namespace Strawberry
public void Tex(Texture texture, float x, float y)
{
PushQuad(.TextureTint, texture,
.Tex(.(x, y), .(0, 1), Color.White),
.Tex(.(x + texture.Width, y), .(1, 1), Color.White),
.Tex(.(x + texture.Width, y + texture.Height), .(1, 0), Color.White),
.Tex(.(x, y + texture.Height), .(0, 0), Color.White));
.Tex(.(x, y), .(0, 0), Color.White),
.Tex(.(x + texture.Width, y), .(1, 0), Color.White),
.Tex(.(x + texture.Width, y + texture.Height), .(1, 1), Color.White),
.Tex(.(x, y + texture.Height), .(0, 1), Color.White));
}
}
}