Merge pull request #7930 from Mailaender/screenshot

Added a hotkey to take screenshots
This commit is contained in:
Pavel Penev
2015-06-28 15:37:07 +03:00
10 changed files with 111 additions and 3 deletions

View File

@@ -57,6 +57,7 @@ namespace OpenRA
void Clear();
void Present();
Bitmap TakeScreenshot();
void PumpInput(IInputHandler inputHandler);
string GetClipboardText();
void DrawPrimitives(PrimitiveType type, int firstVertex, int numVertices);

View File

@@ -160,6 +160,11 @@ namespace OpenRA.Graphics
DrawBatch(tempBuffer, 0, numVertices, type);
}
public Bitmap TakeScreenshot()
{
return Device.TakeScreenshot();
}
public void DrawBatch<T>(IVertexBuffer<T> vertices,
int firstVertex, int numVertices, PrimitiveType type)
where T : struct