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

@@ -39,7 +39,7 @@ namespace OpenRa.Game
Provider<Sheet> sheetProvider = delegate
{
Sheet t = new Sheet(new Bitmap(pageSize.Width, pageSize.Height), renderer.Device);
Sheet t = new Sheet(pageSize, renderer.Device);
sheets.Add(t);
return t;
};
@@ -90,7 +90,7 @@ namespace OpenRa.Game
if (!indexMap.TryGetValue(tile.sheet, out indexList))
indexMap.Add(tile.sheet, indexList = new List<ushort>());
Util.CreateQuad(vertices, indexList, new PointF(24 * i, 24 * j), tile);
Util.CreateQuad(vertices, indexList, new PointF(24 * i, 24 * j), tile, 0);
}
vertexBuffer = new FvfVertexBuffer<Vertex>(renderer.Device, vertices.Count, Vertex.Format);