drop unused parameter on IGraphicsDevice.Clear()

This commit is contained in:
Chris Forbes
2011-07-28 23:12:03 +12:00
parent 2bf7cb1496
commit a79cc0a0e0
5 changed files with 5 additions and 5 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRA.FileFormats.Graphics
Size WindowSize { get; } Size WindowSize { get; }
int GpuMemoryUsed { get; } int GpuMemoryUsed { get; }
void Clear( Color color ); void Clear();
void Present(); void Present();
void PumpInput(IInputHandler inputHandler); void PumpInput(IInputHandler inputHandler);

View File

@@ -75,7 +75,7 @@ namespace OpenRA.Graphics
public void BeginFrame(float2 scroll, float zoom) public void BeginFrame(float2 scroll, float zoom)
{ {
device.Clear(Color.Black); device.Clear();
WorldLineRenderer.LineWidth = zoom; WorldLineRenderer.LineWidth = zoom;
float2 r1 = new float2(2f/Resolution.Width, -2f/Resolution.Height); float2 r1 = new float2(2f/Resolution.Width, -2f/Resolution.Height);

View File

@@ -99,7 +99,7 @@ namespace OpenRA.Renderer.Cg
ErrorHandler.CheckGlError(); ErrorHandler.CheckGlError();
} }
public void Clear( Color c ) public void Clear()
{ {
Gl.glClearColor( 0, 0, 0, 0 ); Gl.glClearColor( 0, 0, 0, 0 );
ErrorHandler.CheckGlError(); ErrorHandler.CheckGlError();

View File

@@ -79,7 +79,7 @@ namespace OpenRA.Renderer.Glsl
ErrorHandler.CheckGlError(); ErrorHandler.CheckGlError();
} }
public void Clear( Color c ) public void Clear()
{ {
Gl.glClearColor( 0, 0, 0, 0 ); Gl.glClearColor( 0, 0, 0, 0 );
ErrorHandler.CheckGlError(); ErrorHandler.CheckGlError();

View File

@@ -38,7 +38,7 @@ namespace OpenRA.Renderer.Null
public void EnableScissor(int left, int top, int width, int height) { } public void EnableScissor(int left, int top, int width, int height) { }
public void DisableScissor() { } public void DisableScissor() { }
public void Clear(Color c) { } public void Clear() { }
public void Present() { } public void Present() { }
public void PumpInput(IInputHandler ih) public void PumpInput(IInputHandler ih)