23 RenderSurface = renderSurface ??
throw new ArgumentNullException(nameof(renderSurface));
76 ??
throw new InvalidOperationException(
77 $
"{nameof(BindScene)} cannot be called before {nameof(Scene)} has been created.");
122 base.OnInputConfigured();
override void ConfigureGamepads()
Configures gamepad support.
virtual void OnTouchAdapterInitialized()
Called after the touch adapter has been initialized.
override void OnInputConfigured()
Called after input is configured during engine startup to initialize widget input for the render surf...
override void ConfigureMouse()
Configures the mouse adapter for the Avalonia render surface.
override void BindScene()
Binds the current scene to the Avalonia render surface host.
override void ConfigurePlatform()
Configures Avalonia-specific platform features.
virtual void OnConfigureGamepads()
Provides a hook for configuring gamepad support.
AvaloniaBitmapRenderSurfaceControl RenderSurface
Gets the render surface control used for displaying game content.
AvaloniaBitmapGameHost(AvaloniaBitmapRenderSurfaceControl renderSurface)
Initializes a new instance of the AvaloniaBitmapGameHost class.
virtual void OnMouseAdapterInitialized()
Called after the mouse adapter has been initialized.
override void ConfigureTouch()
Configures the touch adapter for the Avalonia render surface.
virtual void OnConfigurePlatform()
Provides a hook for configuring additional Avalonia-specific platform settings during initialization.
override void ConfigureKeyboard()
Configures the keyboard adapter for the Avalonia render surface.
virtual void OnKeyboardAdapterInitialized()
Called after the keyboard adapter has been initialized.
An Avalonia Control that displays game frames produced by the Gondwana engine. Frames are received as...
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.