C# Class OpenBve.OpenBVEGame

Inheritance: OpenTK.GameWindow
Afficher le fichier Open project: leezer3/OpenBVE Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
OnClosing ( CancelEventArgs e ) : void
OnLoad ( EventArgs e ) : void
OnRenderFrame ( FrameEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnUpdateFrame ( FrameEventArgs e ) : void

Private Methods

Méthode 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 méthode

protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs
Résultat void

OnLoad() protected méthode

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

OnRenderFrame() protected méthode

protected OnRenderFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OnResize() protected méthode

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

OnUpdateFrame() protected méthode

protected OnUpdateFrame ( FrameEventArgs e ) : void
e FrameEventArgs
Résultat void

OpenBVEGame() public méthode

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