git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1191 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
chrisf
2007-07-13 09:36:58 +00:00
parent d37bab15d0
commit cb54dbf81b
7 changed files with 49 additions and 22 deletions

View File

@@ -59,12 +59,27 @@ namespace OpenRa.FileFormats
public readonly Point origin;
public readonly Size size;
public readonly T sheet;
public readonly TextureChannel channel;
internal SheetRectangle(T sheet, Point origin, Size size)
internal SheetRectangle(T sheet, Point origin, Size size, TextureChannel channel)
{
this.origin = origin;
this.size = size;
this.sheet = sheet;
this.channel = channel;
}
internal SheetRectangle(T sheet, Point origin, Size size)
: this(sheet, origin, size, TextureChannel.Red)
{
}
}
public enum TextureChannel
{
Red,
Green,
Blue,
Alpha,
}
}