Allow sheets to wrap an ITexture directly.

This commit is contained in:
Paul Chote
2013-06-07 17:55:11 +12:00
parent 22e6966c8e
commit 013ad0617e
4 changed files with 32 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ namespace OpenRA.Graphics
Sprite s = sheetBuilder.Allocate(new Size(su, sv));
Util.FastCopyIntoChannel(s, 0, colors);
Util.FastCopyIntoChannel(s, 1, normals);
s.sheet.MakeDirty();
s.sheet.CommitData();
var channels = new float2(channelSelect[(int)s.channel], channelSelect[(int)s.channel + 1]);
return new Vertex[4]