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
BlazorGameHost.cs
4using Microsoft.JSInterop;
5
7
15public abstract class BlazorGameHost : BlazorGameHostBase
16{
19
25 protected BlazorGameHost(
27 IJSRuntime jsRuntime)
28 : base(jsRuntime)
29 {
30 RenderSurface = renderSurface ?? throw new ArgumentNullException(nameof(renderSurface));
31 }
32
35
37 protected sealed override RenderSurfaceHostBase RenderSurfaceHost => RenderSurface.Host;
38
40 protected sealed override void BindSceneCore(Scene scene)
41 {
42 RenderSurface.Host.Bind(scene, false);
43 }
44}
BlazorGameHostBase(IJSRuntime jsRuntime)
Initializes a new instance of BlazorGameHostBase.
override RenderSurfaceHostBase RenderSurfaceHost
BlazorBitmapRenderSurfaceComponent RenderSurface
Gets the bitmap render surface used for displaying game content.
BlazorGameHost(BlazorBitmapRenderSurfaceComponent renderSurface, IJSRuntime jsRuntime)
Initializes a new instance of BlazorGameHost.
override BlazorRenderSurfaceComponentBase RenderSurfaceComponent
override void BindSceneCore(Scene scene)
A Blazor component that presents Gondwana game frames on an HTML <canvas> element and forwards keyboa...
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 ...