C# Class Afterglow.Graphics.XnaRenderWindow

Encapsulates the Xna-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.

StartRendering ( ) : void

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

TakeScreenshot ( string filename ) : void

Takes a screenshot.

XnaRenderWindow ( Control control ) : System

Initializes a new instance of the XnaRenderWindow class.

XnaRenderWindow ( IntPtr windowHandle ) : System

Initializes a new instance of the XnaRenderWindow class.

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

StartRendering() public method

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

TakeScreenshot() public method

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

XnaRenderWindow() public method

Initializes a new instance of the XnaRenderWindow class.
public XnaRenderWindow ( Control control ) : System
control System.Windows.Forms.Control The control.
return System

XnaRenderWindow() public method

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