Add Screenshot Feature (#2354)
* Add internal screenshot capabilities * update version notice
This commit is contained in:
parent
a79b39b913
commit
28618c58d7
12 changed files with 220 additions and 56 deletions
|
@ -28,6 +28,8 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
|
||||
private Sync _sync;
|
||||
|
||||
public event EventHandler<ScreenCaptureImageInfo> ScreenCaptured;
|
||||
|
||||
internal ResourcePool ResourcePool { get; }
|
||||
|
||||
internal int BufferCount { get; private set; }
|
||||
|
@ -196,5 +198,15 @@ namespace Ryujinx.Graphics.OpenGL
|
|||
{
|
||||
_sync.Wait(id);
|
||||
}
|
||||
|
||||
public void Screenshot()
|
||||
{
|
||||
_window.ScreenCaptureRequested = true;
|
||||
}
|
||||
|
||||
public void OnScreenCaptured(ScreenCaptureImageInfo bitmap)
|
||||
{
|
||||
ScreenCaptured?.Invoke(this, bitmap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue