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.Video.VideoSource Class Referencesealed

A URI, borrowed/owned stream, or GAF asset to open with a video backend. More...

Static Public Member Functions

static VideoSource FromUri (Uri source)
 Creates a reusable URI source.
static VideoSource FromStream (Stream source, bool leaveOpen=false)
 Creates a stream source. Ownership transfers to the player on successful Open unless leaveOpen is true. Do not reuse an owned source after replacement/disposal. A borrowed stream must remain open and exclusively available to the player.
static VideoSource FromAsset (AssetsFile assets, string name)
 Creates a reusable GAF source. The archive must remain open until Open is called. Each Open obtains a fresh asset stream owned by the player; no temporary file is created.

Detailed Description

A URI, borrowed/owned stream, or GAF asset to open with a video backend.

Definition at line 6 of file VideoSource.cs.

Member Function Documentation

◆ FromAsset()

VideoSource Gondwana.Video.VideoSource.FromAsset ( AssetsFile assets,
string name )
static

Creates a reusable GAF source. The archive must remain open until Open is called. Each Open obtains a fresh asset stream owned by the player; no temporary file is created.

Parameters
assetsThe assets.
nameThe name.
Returns
The resulting video source.

Definition at line 39 of file VideoSource.cs.

◆ FromStream()

VideoSource Gondwana.Video.VideoSource.FromStream ( Stream source,
bool leaveOpen = false )
static

Creates a stream source. Ownership transfers to the player on successful Open unless leaveOpen is true. Do not reuse an owned source after replacement/disposal. A borrowed stream must remain open and exclusively available to the player.

Parameters
sourceThe source.
leaveOpenWhether to leave the supplied stream open after use.
Returns
The resulting video source.

Definition at line 27 of file VideoSource.cs.

◆ FromUri()

VideoSource Gondwana.Video.VideoSource.FromUri ( Uri source)
static

Creates a reusable URI source.

Parameters
sourceThe source.
Returns
The resulting video source.

Definition at line 15 of file VideoSource.cs.