C# Class OpenTK.Toolkit

Provides static methods to manage an OpenTK application.
Inheritance: IDisposable
Mostra file Open project: andykorth/opentk Class Usage Examples

Public Methods

Method Description
Init ( ) : IDisposable

Initializes OpenTK. This method is necessary only if you are using OpenTK alongside a different windowing toolkit (e.g. GTK#) and should be the very first method called by your application (i.e. calling this method should be the very first statement executed by the "Main" method).

Some windowing toolkits do not configure the underlying platform correctly or configure it in a way that is incompatible with OpenTK. Calling this method first ensures that OpenTK is given the chance to initialize itself and configure the platform correctly.

Private Methods

Method Description
Deinit ( object sender, EventArgs e ) : void
Toolkit ( ) : System

Method Details

Init() public static method

Initializes OpenTK. This method is necessary only if you are using OpenTK alongside a different windowing toolkit (e.g. GTK#) and should be the very first method called by your application (i.e. calling this method should be the very first statement executed by the "Main" method).
Some windowing toolkits do not configure the underlying platform correctly or configure it in a way that is incompatible with OpenTK. Calling this method first ensures that OpenTK is given the chance to initialize itself and configure the platform correctly.
public static Init ( ) : IDisposable
return IDisposable