Table of Contents

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

int

CellWidth

Gets the width of a single cell (1 for console-based rendering)

int CellWidth { get; }

Property Value

int

Height

Gets the height of the render surface in the current unit (cells or pixels)

int Height { get; }

Property Value

int

Unit

Gets the render unit type (Cells for console, Pixels for GPU)

RenderUnit Unit { get; }

Property Value

RenderUnit

Width

Gets the width of the render surface in the current unit (cells or pixels)

int Width { get; }

Property Value

int

Events

Resized

Event triggered when the render surface is resized

event Action<int, int>? Resized

Event Type

Action<int, int>