mirror of
https://github.com/MaddyThorson/StrawberryBF.git
synced 2025-12-16 13:37:40 +08:00
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:
@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user