Files
RobustToolbox/Robust.Client/Graphics/IRenderTarget.cs
Vera Aguilera Puerto c4946b8466 Viewport Improvements (#1528)
Co-authored-by: 20kdc <asdd2808@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
2021-04-19 09:47:20 +02:00

20 lines
546 B
C#

using System;
using Robust.Shared.Maths;
using SixLabors.ImageSharp.PixelFormats;
namespace Robust.Client.Graphics
{
/// <summary>
/// Represents something that can be rendered to.
/// </summary>
public interface IRenderTarget : IDisposable
{
/// <summary>
/// The size of the render target, in physical pixels.
/// </summary>
Vector2i Size { get; }
void CopyPixelsToMemory<T>(CopyPixelsDelegate<T> callback, UIBox2i? subRegion = null) where T : unmanaged, IPixel<T>;
}
}