Gondwana Game Engine
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, mobile, and web platforms using SkiaSharp for graphics and NAudio for sound.
Loading...
Searching...
No Matches
Gondwana.Rendering.RenderSurfaceHostBindEventArgs Class Reference

Provides data for the RenderSurfaceHost<TBackbuffer>.BindToScene event. More...

Inheritance diagram for Gondwana.Rendering.RenderSurfaceHostBindEventArgs:

Public Member Functions

 RenderSurfaceHostBindEventArgs (Scene? oldScene, Scene? newScene)
 Initializes a new instance of the RenderSurfaceHostBindEventArgs class.

Properties

SceneOldScene [get]
 Gets the scene that was previously bound to the render surface host before the binding operation.
SceneNewScene [get]
 Gets the scene that is now bound to the render surface host after the binding operation.

Detailed Description

Provides data for the RenderSurfaceHost<TBackbuffer>.BindToScene event.

This event argument class contains information about scene binding operations, including references to both the previously bound scene (if any) and the newly bound scene. Use this to respond to scene changes in render surface hosts.

Constructor & Destructor Documentation

◆ RenderSurfaceHostBindEventArgs()

Gondwana.Rendering.RenderSurfaceHostBindEventArgs.RenderSurfaceHostBindEventArgs ( Scene? oldScene,
Scene? newScene )

Initializes a new instance of the RenderSurfaceHostBindEventArgs class.

Parameters
oldSceneThe scene that was previously bound to the render surface host, or null if no scene was previously bound.
newSceneThe scene that is now bound to the render surface host, or null if the scene was unbound without binding a new one.

Property Documentation

◆ NewScene

Scene? Gondwana.Rendering.RenderSurfaceHostBindEventArgs.NewScene
get

Gets the scene that is now bound to the render surface host after the binding operation.

The Scene instance that is now bound, or null if the scene was unbound without binding a new one.

◆ OldScene

Scene? Gondwana.Rendering.RenderSurfaceHostBindEventArgs.OldScene
get

Gets the scene that was previously bound to the render surface host before the binding operation.

The Scene instance that was previously bound, or null if no scene was previously bound.