Rename IGraphicsDevice to IPlatformWindow.

This commit is contained in:
Paul Chote
2018-06-05 19:07:26 +00:00
parent 72c0e344ad
commit 28c8089bc7
6 changed files with 11 additions and 11 deletions

View File

@@ -17,7 +17,7 @@ namespace OpenRA
{
public interface IPlatform
{
IGraphicsDevice CreateGraphics(Size size, WindowMode windowMode);
IPlatformWindow CreateWindow(Size size, WindowMode windowMode);
ISoundEngine CreateSound(string device);
}
@@ -34,7 +34,7 @@ namespace OpenRA
DoubleMultiplicative
}
public interface IGraphicsDevice : IDisposable
public interface IPlatformWindow : IDisposable
{
IVertexBuffer<Vertex> CreateVertexBuffer(int length);
ITexture CreateTexture(Bitmap bitmap);

View File

@@ -29,7 +29,7 @@ namespace OpenRA
public RgbaSpriteRenderer RgbaSpriteRenderer { get; private set; }
public IReadOnlyDictionary<string, SpriteFont> Fonts;
internal IGraphicsDevice Device { get; private set; }
internal IPlatformWindow Device { get; private set; }
internal int SheetSize { get; private set; }
internal int TempBufferSize { get; private set; }
@@ -51,7 +51,7 @@ namespace OpenRA
{
var resolution = GetResolution(graphicSettings);
Device = platform.CreateGraphics(new Size(resolution.Width, resolution.Height), graphicSettings.Mode);
Device = platform.CreateWindow(new Size(resolution.Width, resolution.Height), graphicSettings.Mode);
TempBufferSize = graphicSettings.BatchSize;
SheetSize = graphicSettings.SheetSize;