C# Class WpfInteropSample.D3D11Host

Host a Direct3D 11 scene.
Inheritance: Image
显示文件 Open project: jmquigs/ModelMod

Public Methods

Method Description
D3D11Host ( ) : System

Initializes a new instance of the D3D11Host class.

Initialize ( ) : void
Render ( System.TimeSpan time ) : void
Uninitialize ( ) : void

Protected Methods

Method Description
OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void

Raises the FrameworkElement.SizeChanged event, using the specified information as part of the eventual event data.

Private Methods

Method Description
CreateBackBuffer ( ) : void
InitializeGraphicsDevice ( ) : void
InitializeImageSource ( ) : void
OnIsFrontBufferAvailableChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs eventArgs ) : void
OnLoaded ( object sender, RoutedEventArgs eventArgs ) : void
OnRendering ( object sender, EventArgs eventArgs ) : void
OnUnloaded ( object sender, RoutedEventArgs eventArgs ) : void
StartRendering ( ) : void
StopRendering ( ) : void
UninitializeGraphicsDevice ( ) : void
UnitializeImageSource ( ) : void

Method Details

D3D11Host() public method

Initializes a new instance of the D3D11Host class.
public D3D11Host ( ) : System
return System

Initialize() public method

public Initialize ( ) : void
return void

OnRenderSizeChanged() protected method

Raises the FrameworkElement.SizeChanged event, using the specified information as part of the eventual event data.
protected OnRenderSizeChanged ( System.Windows.SizeChangedInfo sizeInfo ) : void
sizeInfo System.Windows.SizeChangedInfo Details of the old and new size involved in the change.
return void

Render() public method

public Render ( System.TimeSpan time ) : void
time System.TimeSpan
return void

Uninitialize() public method

public Uninitialize ( ) : void
return void