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
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

Scene? OldScene [get]
 Gets the scene that was previously bound to the render surface host before the binding operation.
Scene? NewScene [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.

Definition at line 13 of file RenderSurfaceHostBindEventArgs.cs.

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.

Definition at line 48 of file RenderSurfaceHostBindEventArgs.cs.

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.

Definition at line 31 of file RenderSurfaceHostBindEventArgs.cs.

◆ 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.

Definition at line 22 of file RenderSurfaceHostBindEventArgs.cs.