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
EngineExtensions.cs
1using System.Runtime.Versioning;
4
5namespace Gondwana;
6
8[SupportedOSPlatform("browser")]
9public static class BrowserAudioEngineExtensions
10{
14 public static Engine UseBrowserAudio(this Engine engine)
15 {
16 ArgumentNullException.ThrowIfNull(engine);
17 AudioResourceManager.Instance.ConfigureBackend(BrowserAudioBackend.Instance);
18 return engine;
19 }
20
27 public static BrowserAudioManager GetBrowserAudioManager(this Engine engine)
28 {
29 engine.UseBrowserAudio();
30 return BrowserAudioManager.Instance;
31 }
32}
static Engine Instance
Gets the singleton instance of the Engine.
Definition Engine.cs:49