C# Class Afterglow.Graphics.SlimDXRenderWindow

Encapsulates the SlimDX-device so that it renders in the given window.
Inheritance: IRenderWindow
Show file Open project: Christof/afterglow Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Render ( ) : void

Renders the current scene.

SlimDXRenderWindow ( IntPtr windowHandle ) : System

Initializes a new instance of the SlimDXRenderWindow class.

StartRendering ( ) : void

Starts the rendering of the scene by cleaning the render target.

SwitchFullscreen ( ) : void

Switches betwenn fullscreen and windowed mode.

TakeScreenshot ( string filename ) : void

Takes a screenshot.

Private Methods

Method Description
CreateDepthBuffer ( ) : void
CreateModeDescription ( ) : ModeDescription
CreateSwapChainDescription ( ) : SwapChainDescription
CreateSwapChainRenderTargetAndViewport ( ) : void
SetRasterizeStateDescription ( ) : void

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Render() public method

Renders the current scene.
public Render ( ) : void
return void

SlimDXRenderWindow() public method

Initializes a new instance of the SlimDXRenderWindow class.
public SlimDXRenderWindow ( IntPtr windowHandle ) : System
windowHandle System.IntPtr The window handle.
return System

StartRendering() public method

Starts the rendering of the scene by cleaning the render target.
public StartRendering ( ) : void
return void

SwitchFullscreen() public method

Switches betwenn fullscreen and windowed mode.
public SwitchFullscreen ( ) : void
return void

TakeScreenshot() public method

Takes a screenshot.
public TakeScreenshot ( string filename ) : void
filename string The filename.
return void