C# Class Afterglow.Graphics.OpenTKRenderWindow

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

Public Methods

Method Description
Dispose ( ) : void

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

OpenTKRenderWindow ( Control control ) : System

Initializes a new instance of the OpenTKRenderWindow class.

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.

Private Methods

Method Description
OnResize ( object sender, EventArgs e ) : void

Handler for a resize event of the gl control

Method Details

Dispose() public method

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

OpenTKRenderWindow() public method

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

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