(bob) refactor input dispatch; remove public Dispatch*Input from game; (chris) fix build failures due to rebase past gecko
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Windows.Forms;
|
||||
using OpenRA.FileFormats.Graphics;
|
||||
using OpenRA.Graphics;
|
||||
|
||||
|
||||
[assembly: Renderer(typeof(OpenRA.Renderer.Null.NullGraphicsDevice))]
|
||||
|
||||
namespace OpenRA.Renderer.Null
|
||||
@@ -18,42 +16,23 @@ namespace OpenRA.Renderer.Null
|
||||
WindowSize = new Size(width, height);
|
||||
}
|
||||
|
||||
public void EnableScissor(int left, int top, int width, int height)
|
||||
{
|
||||
}
|
||||
|
||||
public void DisableScissor()
|
||||
{
|
||||
}
|
||||
public void EnableScissor(int left, int top, int width, int height) { }
|
||||
public void DisableScissor() { }
|
||||
|
||||
public void Begin() { }
|
||||
public void End() { }
|
||||
public void Clear(Color c) { }
|
||||
|
||||
public void Clear(Color c)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public void Present()
|
||||
public void Present(IInputHandler ih)
|
||||
{
|
||||
Game.HasInputFocus = false;
|
||||
Game.HandleModifierKeys(Modifiers.None);
|
||||
ih.ModifierKeys(Modifiers.None);
|
||||
}
|
||||
|
||||
public void DrawIndexedPrimitives(PrimitiveType pt, Range<int> vertices, Range<int> indices)
|
||||
{
|
||||
}
|
||||
|
||||
public void DrawIndexedPrimitives(PrimitiveType pt, int numVerts, int numPrimitives)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public IVertexBuffer<Vertex> CreateVertexBuffer(int size)
|
||||
{
|
||||
return new NullVertexBuffer<Vertex>();
|
||||
}
|
||||
public void DrawIndexedPrimitives(PrimitiveType pt, Range<int> vertices, Range<int> indices) { }
|
||||
public void DrawIndexedPrimitives(PrimitiveType pt, int numVerts, int numPrimitives) { }
|
||||
|
||||
public IVertexBuffer<Vertex> CreateVertexBuffer(int size) { return new NullVertexBuffer<Vertex>(); }
|
||||
public IIndexBuffer CreateIndexBuffer(int size) { return new NullIndexBuffer(); }
|
||||
public ITexture CreateTexture() { return new NullTexture(); }
|
||||
public ITexture CreateTexture(Bitmap bitmap) { return new NullTexture(); }
|
||||
|
||||
Reference in New Issue
Block a user