git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1236 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-14 07:43:50 +00:00
parent 4830edecf8
commit 73682d80d6
11 changed files with 42 additions and 40 deletions

View File

@@ -30,11 +30,11 @@ namespace OpenRa.Game
}
}
public PointF MapTextureCoords(PointF p)
public float2 MapTextureCoords(float2 p)
{
RectangleF uv = TextureCoords;
return new PointF(
return new float2(
p.X > 0 ? uv.Right : uv.Left,
p.Y > 0 ? uv.Bottom : uv.Top);
}