Interface IRenderSurface
- Namespace
- Gloam.Core.Interfaces
- Assembly
- Gloam.Core.dll
Interface representing a render surface that can be drawn to, supporting both cell-based and pixel-based rendering
public interface IRenderSurface
Properties
CellHeight
Gets the height of a single cell (1 for console-based rendering)
int CellHeight { get; }
Property Value
CellWidth
Gets the width of a single cell (1 for console-based rendering)
int CellWidth { get; }
Property Value
Height
Gets the height of the render surface in the current unit (cells or pixels)
int Height { get; }
Property Value
Unit
Gets the render unit type (Cells for console, Pixels for GPU)
RenderUnit Unit { get; }
Property Value
Width
Gets the width of the render surface in the current unit (cells or pixels)
int Width { get; }
Property Value
Events
Resized
Event triggered when the render surface is resized
event Action<int, int>? Resized