Remove legacy SetLineWidth methods.
This commit is contained in:
@@ -64,7 +64,6 @@ namespace OpenRA
|
|||||||
bool SetClipboardText(string text);
|
bool SetClipboardText(string text);
|
||||||
void DrawPrimitives(PrimitiveType type, int firstVertex, int numVertices);
|
void DrawPrimitives(PrimitiveType type, int firstVertex, int numVertices);
|
||||||
|
|
||||||
void SetLineWidth(float width);
|
|
||||||
void EnableScissor(int left, int top, int width, int height);
|
void EnableScissor(int left, int top, int width, int height);
|
||||||
void DisableScissor();
|
void DisableScissor();
|
||||||
|
|
||||||
|
|||||||
@@ -173,11 +173,6 @@ namespace OpenRA
|
|||||||
CurrentBatchRenderer = null;
|
CurrentBatchRenderer = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetLineWidth(float width)
|
|
||||||
{
|
|
||||||
Device.SetLineWidth(width);
|
|
||||||
}
|
|
||||||
|
|
||||||
public Size Resolution { get { return Device.WindowSize; } }
|
public Size Resolution { get { return Device.WindowSize; } }
|
||||||
|
|
||||||
public interface IBatchRenderer { void Flush(); }
|
public interface IBatchRenderer { void Flush(); }
|
||||||
|
|||||||
@@ -331,13 +331,6 @@ namespace OpenRA.Platforms.Default
|
|||||||
ErrorHandler.CheckGlError();
|
ErrorHandler.CheckGlError();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetLineWidth(float width)
|
|
||||||
{
|
|
||||||
VerifyThreadAffinity();
|
|
||||||
GL.LineWidth(width);
|
|
||||||
ErrorHandler.CheckGlError();
|
|
||||||
}
|
|
||||||
|
|
||||||
public Bitmap TakeScreenshot()
|
public Bitmap TakeScreenshot()
|
||||||
{
|
{
|
||||||
var rect = new Rectangle(Point.Empty, WindowSize);
|
var rect = new Rectangle(Point.Empty, WindowSize);
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ namespace OpenRA.Platforms.Null
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void DrawPrimitives(PrimitiveType pt, int firstVertex, int numVertices) { }
|
public void DrawPrimitives(PrimitiveType pt, int firstVertex, int numVertices) { }
|
||||||
public void SetLineWidth(float width) { }
|
|
||||||
|
|
||||||
public IVertexBuffer<Vertex> CreateVertexBuffer(int size) { return new NullVertexBuffer<Vertex>(); }
|
public IVertexBuffer<Vertex> CreateVertexBuffer(int size) { return new NullVertexBuffer<Vertex>(); }
|
||||||
public ITexture CreateTexture() { return new NullTexture(); }
|
public ITexture CreateTexture() { return new NullTexture(); }
|
||||||
|
|||||||
Reference in New Issue
Block a user