new chrome stuff

This commit is contained in:
Chris Forbes
2009-11-15 20:28:49 +13:00
parent 7f25733176
commit 35f00cbc54
13 changed files with 204 additions and 53 deletions

View File

@@ -1,6 +1,7 @@
using System.Drawing;
using System.IO;
using Ijw.DirectX;
using OpenRa.FileFormats;
namespace OpenRa.Game.Graphics
{
@@ -18,6 +19,12 @@ namespace OpenRa.Game.Graphics
this.bitmap = new Bitmap(size.Width, size.Height);
}
public Sheet(Renderer renderer, string filename)
{
this.renderer = renderer;
this.bitmap = (Bitmap)Image.FromStream(FileSystem.Open(filename));
}
void Resolve()
{
string filename = string.Format("../../../sheet-{0}.png", suffix++);