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

This commit is contained in:
(no author)
2007-07-21 03:52:14 +00:00
parent cb7b5dedd7
commit c331e190a7
10 changed files with 16 additions and 38 deletions

View File

@@ -9,11 +9,6 @@ namespace OpenRa.Game
{
static class Util
{
public static float Constrain(float x, Range<float> range)
{
return x < range.Start ? range.Start : x > range.End ? range.End : x;
}
static float2 EncodeVertexAttributes(TextureChannel channel, int paletteLine)
{
Converter<TextureChannel, float> channelEncoder = delegate(TextureChannel c)