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
BlazorGpuGameHost.cs
1using System.Runtime.Versioning;
5using Microsoft.JSInterop;
6
8
18[SupportedOSPlatform("browser")]
20{
23
31 IJSRuntime jsRuntime)
32 : base(jsRuntime)
33 {
34 RenderSurface = renderSurface ?? throw new ArgumentNullException(nameof(renderSurface));
35 }
36
39
41 protected sealed override RenderSurfaceHostBase RenderSurfaceHost => RenderSurface.Host;
42
44 protected sealed override bool RenderSurfaceDrivesBrowserFrames => true;
45
47 protected sealed override void BindSceneCore(Scene scene)
48 {
49 RenderSurface.Host.Bind(scene, false);
50 }
51}
BlazorGameHostBase(IJSRuntime jsRuntime)
Initializes a new instance of BlazorGameHostBase.
BlazorGpuGameHost(BlazorGpuRenderSurfaceComponent renderSurface, IJSRuntime jsRuntime)
Initializes a new instance of BlazorGpuGameHost.
override RenderSurfaceHostBase RenderSurfaceHost
override BlazorRenderSurfaceComponentBase RenderSurfaceComponent
BlazorGpuRenderSurfaceComponent RenderSurface
Gets the WebGL render surface used for displaying game content.
A Blazor WebGL render surface that draws Gondwana scenes through an GpuBackbuffer without transferrin...
Provides the shared DOM input surface used by Gondwana's Blazor bitmap and GPU render components.
Scene? Scene
Gets the current active scene.
Represents a base class for hosting a render surface, providing functionality for managing rendering ...