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

This commit is contained in:
beedee
2007-07-14 07:20:45 +00:00
parent 9f1d288833
commit 1a80aca5e7
5 changed files with 4 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ using OpenRa.FileFormats;
namespace OpenRa.Game
{
class HardwarePalette
public class HardwarePalette
{
const int maxEntries = 16; // dont need anything like this many,
// but the hardware likes square textures better

View File

@@ -44,7 +44,7 @@ namespace OpenRa.Game
map = new Map(new IniFile(File.OpenRead("../../../" + settings.GetValue("map", "scm12ea.ini"))));
viewport = new Viewport(ClientSize, new float2(map.Size));
viewport = new Viewport(ClientSize, new float2(map.Size), renderer);
SheetBuilder.Initialize(renderer.Device);

View File

@@ -20,7 +20,7 @@ namespace OpenRa.Game
public void Draw(Renderer renderer, Viewport viewport)
{
renderer.Device.EnableScissor(location.X, location.Y, size.Width, size.Height);
renderer.Device.EnableScissor((int)location.X, (int)location.Y, size.Width, size.Height);
drawFunction(renderer, viewport);
renderer.Device.DisableScissor();
}

View File

@@ -8,7 +8,7 @@ using System.IO;
namespace OpenRa.Game
{
class Renderer
public class Renderer
{
readonly GraphicsDevice device;
readonly Effect shader;

View File

@@ -49,7 +49,6 @@ namespace OpenRa.Game
break;
case AnchorStyles.None:
throw new NotImplementedException();
break;
}
}