mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
24 lines
530 B
C#
24 lines
530 B
C#
|
using SkiaSharp;
|
|||
|
using SkiaSharp.Views.Gtk;
|
|||
|
using System;
|
|||
|
|
|||
|
namespace Ryujinx.Debugger.UI
|
|||
|
{
|
|||
|
public class SkRenderer : SKDrawingArea
|
|||
|
{
|
|||
|
public event EventHandler DrawGraphs;
|
|||
|
|
|||
|
public SkRenderer()
|
|||
|
{
|
|||
|
this.PaintSurface += SkRenderer_PaintSurface;
|
|||
|
}
|
|||
|
|
|||
|
private void SkRenderer_PaintSurface(object sender, SkiaSharp.Views.Desktop.SKPaintSurfaceEventArgs e)
|
|||
|
{
|
|||
|
e.Surface.Canvas.Clear(SKColors.Black);
|
|||
|
|
|||
|
DrawGraphs.Invoke(this, e);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|