C# Class Examples.Tutorial.Picking

Inheritance: OpenTK.GameWindow
Afficher le fichier Open project: tpb3d/TPB3D Class Usage Examples

Méthodes publiques

Méthode Description
Picking ( ) : System

Creates a 800x600 window with the specified title.

Méthodes protégées

Méthode Description
OnLoad ( EventArgs e ) : void

Load resources here.

OnRenderFrame ( FrameEventArgs e ) : void

Called when it is time to render the next frame. Add your rendering code here.

OnResize ( EventArgs e ) : void

Called when your window is resized. Set your viewport here. It is also a good place to set up your projection matrix (which probably changes along when the aspect ratio of your window).

OnUnload ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Called when it is time to setup the next frame. Add you game logic here.

Private Methods

Méthode Description
Main ( ) : void

Method Details

OnLoad() protected méthode

Load resources here.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used.
Résultat void

OnRenderFrame() protected méthode

Called when it is time to render the next frame. Add your rendering code here.
protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs Contains timing information.
Résultat void

OnResize() protected méthode

Called when your window is resized. Set your viewport here. It is also a good place to set up your projection matrix (which probably changes along when the aspect ratio of your window).
protected OnResize ( EventArgs e ) : void
e System.EventArgs Contains information on the new Width and Size of the GameWindow.
Résultat void

OnUnload() protected méthode

protected OnUnload ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnUpdateFrame() protected méthode

Called when it is time to setup the next frame. Add you game logic here.
protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs Contains timing information for framerate independent logic.
Résultat void

Picking() public méthode

Creates a 800x600 window with the specified title.
public Picking ( ) : System
Résultat System