Gondwana Game Engine Development (master) - 2.6.1
Gondwana is a cross-platform 2.5D game and rendering engine written in C#/.NET 8. It provides fine-grained control over rendering, timing, and scene composition, with built-in support for parallax, z-ordering, pixel overhang, collision detection, and particle effects. Gondwana targets desktop and web platforms using SkiaSharp for graphics and pluggable audio backends for desktop and browser targets.
Loading...
Searching...
No Matches
RenderSurfaceHostRegistry.cs
1namespace Gondwana.Rendering;
2
13public static class RenderSurfaceHostRegistry
14{
15 private static readonly List<RenderSurfaceHostBase> _all = new();
16 private static readonly object _lock = new();
17
35 public static IReadOnlyList<RenderSurfaceHostBase> All => _all;
36
42 internal static RenderSurfaceHostBase[] Snapshot()
43 {
44 lock (_lock)
45 return _all.ToArray();
46 }
47
48 internal static void Register(RenderSurfaceHostBase host)
49 {
50 lock (_lock)
51 _all.Add(host);
52 }
53
54 internal static void Unregister(RenderSurfaceHostBase host)
55 {
56 lock (_lock)
57 _all.Remove(host);
58 }
59}