drop unused parameter on IGraphicsDevice.Clear()
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user