add a take screenshot hotkey

This commit is contained in:
Matthias Mailänder
2015-04-12 10:34:08 +02:00
parent fc7df415d7
commit 2763e26d23
10 changed files with 111 additions and 3 deletions

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