C# Class OpenBve.OpenBVEGame

Inheritance: OpenTK.GameWindow
Mostrar archivo Open project: leezer3/OpenBVE Class Usage Examples

Public Methods

Method Description
OpenBVEGame ( int width, int height, OpenTK.Graphics.GraphicsMode currentGraphicsMode, GameWindowFlags @default ) : System

Protected Methods

Method Description
OnClosing ( CancelEventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Private Methods

Method Description
LoadingScreenLoop ( ) : void
RunInRenderThread ( ThreadStart job ) : void

This method is used during loading to run commands requiring an OpenGL context in the main render loop

SetupSimulation ( ) : void

This method is called once the route and train data have been preprocessed, in order to physically setup the simulation

Method Details

OnClosing() protected method

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
return void

OnLoad() protected method

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

OnRenderFrame() protected method

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OnResize() protected method

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

OnUpdateFrame() protected method

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
return void

OpenBVEGame() public method

public OpenBVEGame ( int width, int height, OpenTK.Graphics.GraphicsMode currentGraphicsMode, GameWindowFlags @default ) : System
width int
height int
currentGraphicsMode OpenTK.Graphics.GraphicsMode
@default GameWindowFlags
return System