Table of Contents

Method Generate

Namespace
Bonsai.Shaders
Assembly
Bonsai.Shaders.dll

Generate()

Generates an observable sequence that returns a video texture initialized from the specified movie file.

public override IObservable<Texture> Generate()

Returns

IObservable<Texture>

A sequence containing a single instance of the Texture class representing the video texture.

Generate<TSource>(IObservable<TSource>)

Returns a video texture initialized from the specified movie file whenever an observable sequence emits a notification.

public IObservable<Texture> Generate<TSource>(IObservable<TSource> source)

Parameters

source IObservable<TSource>

The sequence containing the notifications used to start loading a new video texture.

Returns

IObservable<Texture>

The sequence of Texture objects initialized from the specified movie file whenever the source sequence emits a notification.

Type Parameters

TSource

The type of the elements in the source sequence.