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

This commit is contained in:
(no author)
2007-07-23 15:55:06 +00:00
parent d94b589650
commit 74b4d5d455
22 changed files with 80 additions and 536 deletions

View File

@@ -9,9 +9,9 @@ namespace OpenRa.Game
{
static class SheetBuilder
{
public static void Initialize(GraphicsDevice d)
public static void Initialize(Renderer r)
{
device = d;
renderer = r;
}
public static Sprite Add(byte[] src, Size size)
@@ -30,12 +30,9 @@ namespace OpenRa.Game
return Add(data, size);
}
static Sheet NewSheet()
{
return new Sheet(new Size(512, 512), device);
}
static Sheet NewSheet() { return new Sheet(renderer, new Size(512, 512)); }
static GraphicsDevice device;
static Renderer renderer;
static Sheet current = null;
static int rowHeight = 0;
static Point p;