30 RenderSurface = renderSurface ??
throw new ArgumentNullException(nameof(renderSurface));
122 base.OnInputConfigured();
override void ConfigurePlatform()
Configures Avalonia-specific platform features.
virtual void OnKeyboardAdapterInitialized()
Called after the keyboard adapter has been initialized. Override to perform additional keyboard setup...
virtual void OnConfigurePlatform()
Provides a hook for configuring platform-specific settings during initialization.
override void BindScene()
Binds the current scene to the GPU render surface host.
override void ConfigureTouch()
Configures the touch adapter for the Avalonia GPU render surface.
virtual void OnMouseAdapterInitialized()
Called after the mouse adapter has been initialized. Override to perform additional mouse setup.
virtual void OnGamepadManagerInitialized()
Called after the gamepad manager has been initialized. Override to perform additional gamepad setup.
AvaloniaGpuGameHost(AvaloniaGpuRenderSurfaceControl renderSurface)
Initializes a new instance of the AvaloniaGpuGameHost class.
override void ConfigureGamepads()
Configures gamepad support. Override to provide platform-specific gamepad integration.
override void ConfigureKeyboard()
Configures the keyboard adapter for the Avalonia render surface.
AvaloniaGpuRenderSurfaceControl RenderSurface
Gets the GPU 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...
virtual void OnTouchAdapterInitialized()
Called after the touch adapter has been initialized. Override to perform additional touch setup,...
override void ConfigureMouse()
Configures the mouse adapter for the Avalonia render surface.
override void OnDisposing()
Runs before managed resources are disposed.
An Avalonia OpenGlControlBase that displays game frames produced by the Gondwana engine using GPU-acc...
Provides a base class for hosting and managing the lifecycle of a Gondwana game application.
Scene? Scene
Gets the current active scene.
void InitializeWidgetInput(RenderSurfaceHostBase renderSurfaceHost)
Initializes widget input routing for the supplied render surface host.
Engine Engine
Gets the singleton instance of the Gondwana engine.