C# Class Examples.Tutorial.Picking

Inheritance: OpenTK.GameWindow
ファイルを表示 Open project: tpb3d/TPB3D Class Usage Examples

Public Methods

Method Description
Picking ( ) : System

Creates a 800x600 window with the specified title.

Protected Methods

Method 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

Method Description
Main ( ) : void

Method Details

OnLoad() protected method

Load resources here.
protected OnLoad ( EventArgs e ) : void
e System.EventArgs Not used.
return void

OnRenderFrame() protected method

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.
return void

OnResize() protected method

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.
return void

OnUnload() protected method

protected OnUnload ( EventArgs e ) : void
e System.EventArgs
return void

OnUpdateFrame() protected method

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.
return void

Picking() public method

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