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
WinFormsBitmapGameHost.cs
2
4
9{
14
21 : this(new SurfaceInitialization(renderSurface))
22 {
23 }
24
25 private WinFormsGameHost(SurfaceInitialization initialization)
26 : base(initialization.RenderSurface, initialization.RenderSurface.Host.Bind)
27 {
28 RenderSurface = initialization.RenderSurface;
29 }
30
31 private sealed class SurfaceInitialization
32 {
37
42 public SurfaceInitialization(WinFormBitmapRenderSurfaceControl renderSurface)
43 {
44 RenderSurface = renderSurface ?? throw new ArgumentNullException(nameof(renderSurface));
45 }
46 }
47
51 protected sealed override void OnInputConfigured()
52 {
53 base.OnInputConfigured();
54
56 }
57}
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.
WinFormsGameHost(WinFormBitmapRenderSurfaceControl renderSurface)
Initializes a new instance of the WinFormsGameHost class.
WinFormBitmapRenderSurfaceControl RenderSurface
Gets the render surface control used for displaying game content.
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 bitmap-based Gondwana rendering.