mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Co-authored-by: 20kdc <asdd2808@gmail.com> Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
20 lines
546 B
C#
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>;
|
|
}
|
|
}
|