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
WinFormsGpuGameHost.cs
2
4
10{
15
22 : this(new SurfaceInitialization(renderSurface))
23 {
24 }
25
26 private WinFormsGpuGameHost(SurfaceInitialization initialization)
27 : base(initialization.RenderSurface, initialization.RenderSurface.Host.Bind)
28 {
29 RenderSurface = initialization.RenderSurface;
30 }
31
32 private sealed class SurfaceInitialization
33 {
38
43 public SurfaceInitialization(WinFormGpuRenderSurfaceControl renderSurface)
44 {
45 RenderSurface = renderSurface ?? throw new ArgumentNullException(nameof(renderSurface));
46 }
47 }
48
52 protected sealed override void OnInputConfigured()
53 {
54 base.OnInputConfigured();
55
57 }
58}
void InitializeWidgetInput(RenderSurfaceHostBase renderSurfaceHost)
Initializes widget input routing for the supplied render surface host.
WinFormsGameHostBase(Control renderSurface, Action< Scene, bool > bindScene)
Initializes a new instance of the WinFormsGameHostBase class.
WinFormGpuRenderSurfaceControl RenderSurface
Gets the GPU render surface control used for displaying game content.
WinFormsGpuGameHost(WinFormGpuRenderSurfaceControl renderSurface)
Initializes a new instance of the WinFormsGpuGameHost class.
override void OnInputConfigured()
Called after input is configured during engine startup to initialize widget input for the render surf...
Provides a Windows Forms control that hosts GPU-accelerated Gondwana rendering.