C# Class Afterglow.Graphics.SlimDXRenderWindow

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

Méthodes publiques

Méthode 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

Méthode Description
CreateDepthBuffer ( ) : void
CreateModeDescription ( ) : ModeDescription
CreateSwapChainDescription ( ) : SwapChainDescription
CreateSwapChainRenderTargetAndViewport ( ) : void
SetRasterizeStateDescription ( ) : void

Method Details

Dispose() public méthode

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

Render() public méthode

Renders the current scene.
public Render ( ) : void
Résultat void

SlimDXRenderWindow() public méthode

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

StartRendering() public méthode

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

SwitchFullscreen() public méthode

Switches betwenn fullscreen and windowed mode.
public SwitchFullscreen ( ) : void
Résultat void

TakeScreenshot() public méthode

Takes a screenshot.
public TakeScreenshot ( string filename ) : void
filename string The filename.
Résultat void