1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
Artemis/src/Artemis.Core/Events/FrameRenderingEventArgs.cs
Robert a3cd32f6c4 Core - Added XML comments to all remaining public members/methods
Core - Refactored a lot of code for nullable reference types
2020-11-16 20:16:06 +01:00

34 lines
922 B
C#

using System;
using RGB.NET.Core;
using SkiaSharp;
namespace Artemis.Core
{
/// <summary>
/// Provides data about frame rendered related events
/// </summary>
public class FrameRenderingEventArgs : EventArgs
{
internal FrameRenderingEventArgs(SKCanvas canvas, double deltaTime, RGBSurface rgbSurface)
{
Canvas = canvas;
DeltaTime = deltaTime;
RgbSurface = rgbSurface;
}
/// <summary>
/// Gets the canvas this frame is rendering on
/// </summary>
public SKCanvas Canvas { get; }
/// <summary>
/// Gets the delta time since the last frame was rendered
/// </summary>
public double DeltaTime { get; }
/// <summary>
/// Gets the RGB surface used to render this frame
/// </summary>
public RGBSurface RgbSurface { get; }
}
}